Strange problem when hibernating using the power button

Hi all,

I’m not sure if this is a distribution-specific or a Plasma problem. However, maybe, somebody could give me a hint on how to debug this.

I just did a fresh Artix Linux installation on a new Lenovo ThinkPad E14. I configured and set up Suspend to Disk, and it works as expected: The notebook goes to sleep and wakes up as it should when being powered on again. On my old ThinkPad, I configured hibernation to happen when the power button is pressed. I wanted to do this for the new one, too.

Now, something quite strange happens:

The default Power Management setting is to show the Logout Screen when the power button is pressed. If I choose “Hibernate” there, everything works: The power LED flashes for a few seconds, then, it stays on a short time, and then, the system turns off completely – as it should. After pressing the power button again, it starts to boot, and then wakes up as it should. Same as when I choose “Hibernate” from the start menu.

But when I change the power button press action from “Show logout screen” to “Hibernate” in the Power Management settings and press the button, the process does not work when actually pressing the button: The power LED flashes for a few seconds, then turns on again – and stays on. The system does not turn off. It stays on and becomes unresponsive: I can’t wake it up again. Nothing happens. Screen off, but system on. Only way is to keep the power button pressed to hard-reset the system. After that, it reboots again, and repairs orphan inodes (due to the power loss).

What’s wrong here? How can directly invoking hibernation through the power button even yield a different behavior than hibernating through a mouse click?!

I have no idea how to debug this. Thanks in advance for all hints and all help!

Cheers, Tobias

no idea, since my energy management settings don’t offer hibernate i can’t test it.

examine your cat /proc/acpi/wakeup to see which S4 modes are enabled

mine shows

AWAC S4 *enabled platform:ACPI000E:00

and i can still hibernate with secure boot turned off in the bios, but i need to use a script to do it that calls sudo systemctl suspend-then-hibernate instead of using the plasma GUI.

using the “sleep” option as shown above does work tho without having to click on the logout screen.

The strange thing is that hibernation works – but only if I click on hibernate. I would have supposed that triggering the action by pressing the power button does the very same thing?!

I experienced pretty the same using a X13 Gen. 6 with MANJARO KDE, ref here.

BUT: I never used the power button for that, nor clicked on hibernate. My procedures were th wait for the defined time or closed the lid. Would you please try this and report your expereience here?

Thanks for the ref! But again: Hibernate does work – it only does, weirdly enough, behave differently (or better said: it does not work at all), depending on how it’s triggered.

So I suppose this could be a Plasma/KDE issue?!

I only have no idea on how to debug this … can I get some output/log/whatever info, to track down what’s different when it’s invoked through the power button?!