Posts by pgzh

    You can change that behavior by creating a /storage/.config/logind.conf.d/disable-suspend.conf file with the following contents and reboot:

    Code
    [Login]
    HandleSuspendKey=ignore
    HandleHibernateKey=ignore

    Thank you so much HiassofT, that did the trick!

    Meanwhile I only manged to stop the power menu from showing by also adding <sleep>noop</sleep> to my keymap, which was not my goal...

    And changing the tag to remote stopped the keymap from working, the correct tag for my device is definitely keyboard.

    But thank you too for your advice Da Flex, I really appreciate it.

    Peter

    You can change the power button behavior by key mapping. Create a keyboard.xml file.

    I tried adding <power>noop</power> in the keyboard section of my keyboard.xml without any change in behaviour...

    Are you serious? As I already stated, that had no effect at all.

    Here's the contents of my keymap:

    Hi,

    I recently upgraded to LE 12.0 nightly 20240713 amd64 legacy.

    Before I was running 12.0 non-legacy, but had some issues.

    The device is a HP SFF with a Ryzen 3400G.

    Before the update the power menu showed when I pressed the power button in my Orbsmart AM1 remote (which shows up as keyboard and mouse).

    Now the device immediately goes into suspend without the possibility to select something from the power menu, but the menu is shown after resuming.

    Also the network is not working after resume, so I have to reboot again.

    This is super annoying if I accidentally press the power button on the remote or just wanting to power it off.

    I tried adding <power>noop</power> in the keyboard section of my keyboard.xml without any change in behaviour...


    How can I get back to the old behaviour or disable suspend for good?

    Thanks in advance,

    Peter

    Hi,

    I just installed LE 9.0 on an Intel NUC and have the following problem:

    When I press the power button of my USB remote (air mouse + keyboard, it is detected as a USB keyboard and mouse) the system immediately suspends.

    I can see the power menu popping up and then the screen goes blank. After powering up again, the shutdown menu is still displayed and I can shutdown the system.

    Is there any way to prevent the immediate suspend so I can use the shutdown menu?

    I guess the remote triggers a suspend event and brings up the power menu, but I have no idea where to disable the suspend.

    It would also be okay for me to disable suspend completely if it helps.

    Thanks.