3

After some time the monitor goes to standby mode. I want to wake up the monitor by a shell script. I already can wake up the monitor itself by xset -display "$DISPLAY" dpms force on. But I only see a black screen with the mouse pointer. And as side effect it does not go to sleep after another couple of minutes.

What I want is to wake the monitor and Ubuntu like when I move the mouse or press any key but without really doing this! So xdotool is not a solution. I see whats going on on the screen and after some minutes it goes to sleep again.

How to get this done?

7
  • Do you have wired USB keyboard and mouse? – WinEunuuchs2Unix Nov 16 '16 at 11:27
  • Yes. I'm currently trying a solution by using the mouse using xdotool. But this could cause side effects. – Michael Nov 16 '16 at 11:37
  • I've favorited your question and will try to look at xdotool tonight. – WinEunuuchs2Unix Nov 16 '16 at 12:20
  • xdotool works. The side effect: It is a user input. I need a solution that doesn't use mouse or keyboard. – Michael Nov 16 '16 at 12:57
  • I took a quick peek at xdotool. It's not a package I want to install and learn. Hopefully someone else here is using it and can provide support, alternatively you might want to post your question to the developer (if possible). – WinEunuuchs2Unix Nov 17 '16 at 0:06
4

The only thing I could find on your situation was this webpage (Can't wake up monitor once dpms put it into sleep) from Archlinux. It's a long read but at the very bottom one poster recommends your script say this:

sleep 1 && xset dpms force standby && sleep 8 && xset dpms force on

Note this user tip implies it is based on having turned off DRI3 in /etc/X11/xorg.conf.d/20-intel.conf and using DRI2:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option "DRI" "2"
EndSection

Please note this is the best I could come up with for your problem and felt compelled to post it because there have been no other answers. Since I can't reproduce your problem I have no idea if it will work for you as it has for others.

If it doesn't work I encourage you to google as much as you can using appropriate keywords.

1
  • As it is a generic OS image for different PC hardware this is not a way I want to go. – Michael Dec 2 '16 at 8:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.