{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/11296","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/11296/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/11296/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/11296/events","html_url":"https://github.com/systemd/systemd/issues/11296","id":394866467,"node_id":"MDU6SXNzdWUzOTQ4NjY0Njc=","number":11296,"title":"Hibernation sometimes freezes","user":{"login":"MikkoMMM","id":1288722,"node_id":"MDQ6VXNlcjEyODg3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1288722?v=4","gravatar_id":"","url":"https://api.github.com/users/MikkoMMM","html_url":"https://github.com/MikkoMMM","followers_url":"https://api.github.com/users/MikkoMMM/followers","following_url":"https://api.github.com/users/MikkoMMM/following{/other_user}","gists_url":"https://api.github.com/users/MikkoMMM/gists{/gist_id}","starred_url":"https://api.github.com/users/MikkoMMM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikkoMMM/subscriptions","organizations_url":"https://api.github.com/users/MikkoMMM/orgs","repos_url":"https://api.github.com/users/MikkoMMM/repos","events_url":"https://api.github.com/users/MikkoMMM/events{/privacy}","received_events_url":"https://api.github.com/users/MikkoMMM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-30T11:58:48Z","updated_at":"2018-12-30T13:45:49Z","closed_at":null,"author_association":"NONE","body":"**systemd version the issue has been seen with**\r\n> [mikko@localhost lvdata]$ systemctl --version\r\n> systemd 239\r\n> +PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid\r\n\r\n**Used distribution**\r\n > Arch Linux\r\n> [mikko@localhost lvdata]$ uname -a\r\n> Linux localhost 4.19.12-arch1-1-ARCH #1 SMP PREEMPT Fri Dec 21 13:56:54 UTC 2018 x86_64 GNU/Linux\r\n\r\n**Expected behaviour you didn't see**\r\n > Hibernation successful\r\n\r\n**Unexpected behaviour you saw**\r\n > The computer stays fully powered but the screen turns black and doesn't respond to input.\r\n> Here's what journalctl -b -1 says:\r\n> [hibernate-journalctl.txt](https://github.com/systemd/systemd/files/2717095/hibernate-journalctl.txt)\r\n> I can still log in through ssh but calling killall systemd-sleep doesn't return a picture on the screen. This is what journalctl has to say about that:\r\n> [killall-systemd-suspend.txt](https://github.com/systemd/systemd/files/2717097/killall-systemd-suspend.txt)\r\n> After forcing a shutdown, fsck starts and gives me some \"print_req_error: I/O error, dev sdf\" messages which is atypical. The sdf drive is an encrypted ext4 external USB drive that is used by automatic backup through rsnapshot and, after that has ended, hdparm -y is called on the drive.\r\n\r\n**Steps to reproduce the problem**\r\n> I've had this happen two times with different versions of systemd. The last one was with the latest systemd version available on my platform. However, the freezing happens only sometimes; not every time I try to hibernate.\r\n> I've used a script that waits for inactivity, then calls \"xset dpms force off\" and after some more inactivity it calls \"systemctl hibernate\". However, it's worked fine when I have used systemctl suspend in it so I don't think the script is the problem."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/450561811","html_url":"https://github.com/systemd/systemd/issues/11296#issuecomment-450561811","issue_url":"https://api.github.com/repos/systemd/systemd/issues/11296","id":450561811,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDU2MTgxMQ==","user":{"login":"MikkoMMM","id":1288722,"node_id":"MDQ6VXNlcjEyODg3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1288722?v=4","gravatar_id":"","url":"https://api.github.com/users/MikkoMMM","html_url":"https://github.com/MikkoMMM","followers_url":"https://api.github.com/users/MikkoMMM/followers","following_url":"https://api.github.com/users/MikkoMMM/following{/other_user}","gists_url":"https://api.github.com/users/MikkoMMM/gists{/gist_id}","starred_url":"https://api.github.com/users/MikkoMMM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikkoMMM/subscriptions","organizations_url":"https://api.github.com/users/MikkoMMM/orgs","repos_url":"https://api.github.com/users/MikkoMMM/repos","events_url":"https://api.github.com/users/MikkoMMM/events{/privacy}","received_events_url":"https://api.github.com/users/MikkoMMM/received_events","type":"User","site_admin":false},"created_at":"2018-12-30T13:45:49Z","updated_at":"2018-12-30T13:45:49Z","author_association":"NONE","body":"> Does it happen after you set `HibernateMode=` to shutdown as per https://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html?\r\n\r\nIt just might have helped. I noticed that there are also [instructions regarding that on the Arch wiki as well](https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#System_does_not_power_off_when_hibernating) and followed those. Then I rebooted and tried systemctl hibernate five times in a row (two of which were done after calling hdparm -y on my external drive). The hibernation was successful each time. Of course I can't say it definitely is working now seeing how it didn't occur every time before."}}
{"actor":{"display_login":"MikkoMMM"}}