You are not logged in.
Each time I resume from hibernation I get a black screen. I know the computer is on because I've already tried executing commands after resuming, and they work. What does work is running
xset dpms force off
And then pressing spacebar, but this is obviously not the best solution.
Last edited by berocs (2018-10-23 22:19:19)
Offline
I made a hacky workaround of this by making a systemd script that runs that command and then turns on the screen again.
I created the file
/etc/systemd/system/root-resume.service
, as it said in https://wiki.archlinux.org/index.php/Po … vice_files, with these contents:
[Unit]
Description=Local system resume actions
After=hibernate.target
[Service]
Type=forking
Environment=XAUTHORITY=/home/YOUR_USER/.Xauthority DISPLAY=:0.0
ExecStart=/usr/bin/xset dpms force off
ExecStartPost=/usr/bin/xset dpms force on
[Install]
WantedBy=hibernate.target
Then, I run
> systemctl enable root-resume.service
, and when I went to hibernation and rebooted, it turned on the screen.
Offline