Just recently I have been having a problem with my TW KDE system hibernating OK but immediately powering the PC back on and resuming. If I’m quick I can hit the power button for 4 seconds and power off without messing up a resume. Next time I power it up it resumes OK. This is somewhat annoying as it used to hibernate and power off and stay off until I tweaked the USB mouse and up it came. Anyone any ideas please? TW is fully updated btw.
No it still fails. The journal shows a failure to hibernate as a dependency issue although not sure what that means. Strange that if I hit the power key to force it off it seems to resume OK. Swap is 10gb memory is 8gb.
Jun 26 20:59:36 Tumbleweed.Crowhill systemd-sleep: INFO: running /usr/lib/systemd/system-sleep/grub2.sleep for hibernate
Jun 26 21:00:03 Tumbleweed.Crowhill systemd: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 21:00:03 Tumbleweed.Crowhill systemd: systemd-hibernate.service: Failed with result 'exit-code'.
Jun 26 21:00:03 Tumbleweed.Crowhill systemd: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Jun 26 21:02:24 Tumbleweed.Crowhill systemd-sleep: INFO: running /usr/lib/systemd/system-sleep/grub2.sleep for hibernate
Jun 26 21:03:13 Tumbleweed.Crowhill systemd-sleep: INFO: running /usr/lib/systemd/system-sleep/grub2.sleep for hibernate
Jun 26 21:03:14 Tumbleweed.Crowhill systemd: hibernate.target: Unit not needed anymore. Stopping.
Been doing a bit more testing. Last night I did a hibernate from the menu but using the keyboard windows key and pointer keys rather than the mouse and it worked perfectly and resumed this morning no problem. Both keyboard and mouse are USB, and the system wakes up using the mouse OK providing the power has not been turned off at the wall socket, if it has I need to use the power button. So now even more puzzled as no errors shown in journal from the hibernate.
Spoke too soon. Using the keyboard does not always work, sometimes it still resumes immediately. It does power down OK all the time whichever method I use but immediately powers back up and resumes. This has to be something to do with USB. Both keyboard and mouse are USB and connect via a KVM switch. When it was working OK prior to this happening I could get it to come back on and resume by moving the mouse. It always resumes OK if I hit the power key to force it off so the hibernate was indeed working. This is minor I know but annoying just the same.
Yes, it’s not clear to me what might have changed here, but often these things are hardware specific and perhaps changes in the kernel expose these quirks unintentionally sometimes. A bug report might be required to help progress this.
BIOS and motherboard info might be relevant here
sudo dmidecode -t BIOS -t 2
Also, check the following perhaps
sudo /usr/sbin/ethtool eth0 | grep Wake-on
FWIW, I wanted to share this archlinux thread with you, only because similar symptoms were being described, and it was found that buggy BIOS was the underlying cause (and a subsequent BIOS upgrade was needed to resolve), although there were some other workarounds discussed as well. In particular, read post #36 onwards.
For various reasons I had not been able to follow up on this for a couple of weeks. After updating my TW install earlier this week my hibernate now works as before with no immediate restarts. So I’m guessing that something has changed somewhere which fixed it. Not easy to tell what as it was not updated for a couple of weeks and so when I did update it there were several hundred fixes!