Lubuntu 18.04 (lxde) here, upon AMD Epyc 7282. Kernel 4.15. The system is stable and works flawlessly, but id does refuse to suspend.
If I try to suspend it, the screen blanks, but the system does not power off.
At this point, if I hit a key or move the mouse, nothing happens. If I hit the power button, the system "wakes up", presenting the login screen, and then all the applications as I left them.
Hibernation is absent alltogether.
Note that Epyc Rome is not affected by the notorious RDRAND bug which affects Ryzen 3000 and causes problems with suspend to ram.
EDIT: I used the system for days with high load, and can confirm rock stability, but if I leave it blanking the monitor, there is no way to wake it up.. One has to connect via ssh and reset the system.
EDIT(II): Example output for journalctl -u systemd-suspend.service
:
gen 25 04:33:52 epyc systemd[1]: Starting Suspend...
gen 25 04:33:52 epyc systemd-sleep[1743]: Suspending system...
gen 25 04:34:36 epyc systemd-sleep[1743]: System resumed.
gen 25 04:34:36 epyc systemd-sleep[1743]: /dev/sda:
gen 25 04:34:36 epyc systemd-sleep[1743]: setting Advanced Power Management level to 0xfe (254)
gen 25 04:34:36 epyc systemd-sleep[1743]: APM_level = 254
EDIT (III): I actually managed to hibernate the system using uswsusp
, by specifying explicitly the resume device, that is, the swap partition:
sudo s2disk -r /dev/sda1
In such condition the system does shut down visualizing SNAPSHOTTING THE SYSTEM...
If I power on, the system does boot saying RESUMING FROM HIBERNATION...
but then, it just displays the desktop, with no trace of any application left open. I will investigate the logs and report back.
systemctl suspend
does it suspend correctly? – guiverc Jan 25 '20 at 22:57gsettings get org.gnome.desktop.screensaver ubuntu-lock-on-suspend
tell you? – starkus Feb 01 '20 at 09:32sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
give you any errors? And does unmasking it withsudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
give you some hints to solve your issues? – starkus Feb 01 '20 at 09:37/var/log/syslog
. Orjournalctl --since 9:00 --until "1 minute ago"
--since time system went to sleep --until time system woke up or tried to anyway. – da_kingpin Feb 02 '20 at 17:54journalctl -u systemd-suspend.service
– da_kingpin Feb 02 '20 at 18:21sudo systemctl unmask...
command. So it could be an answer I will upvote. – Gryu Feb 03 '20 at 20:20gsettings [...]
gives metrue
. Masking just creates a symlinkCreated symlink /etc/systemd/system/sleep.target → /dev/null.
, while unmasking saysRemoved /etc/systemd/system/sleep.target.
. Does this say anything to you? – MadHatter Feb 03 '20 at 21:12gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
a try to disable the lock screen after suspend. You can undo that withgsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true
. – starkus Feb 04 '20 at 18:05/etc/systemd/system/resume@.service
. – starkus Feb 04 '20 at 18:17end
key in gedit – WinEunuuchs2Unix Feb 04 '20 at 22:54