Monday, July 6, 2015

X11 Desktop: xdotool: stop Virtual Box VM from activating its screen saver


In the environment where I work, we can not easily change the Windows 8.1 screen saver time-outs due to group policies being in place, however, since the VM is just a window in my Linux desktop, surely I can just simulate the mouse moving to trick the screen saver into not activating.

The idea here is that the Windows VM window is open in my second screen, so moving the mouse into that screen and then moving it back again should stop the screen saver from ever activating. The TARGET X/Y co-ordinates below are the co-ordinates close to the centre of my Windows VM window.

The program that does the actual moving of the mouse pointer is called "xdotool".