[Pkg-xfce-devel] Bug#866162: Workaround for this bug

Brock Cochran brock.cochran at gmail.com
Wed Jul 5 18:48:40 UTC 2017

Install xdotool from the repository with sudo apt install xdotool if not
already installed. Make a note of the keyboard shortcut you use for "Show
Desktop." It is under Window Manager > Keyboard. Mine is ctrl+alt+d. Create
the following two scripts:

 ~$ cat bin/graphics-workaround

export DISPLAY=:0.0
export XAUTHORITY=/home/brock/.Xauthority

xdotool key ctrl+alt+d
xdotool key ctrl+alt+d
~$ cat /lib/systemd/system-sleep/graphics-workaround
if [ $1 = post ] && [ $2 = suspend ]; then

Edit export XAUTHORITY=/home/brock/.Xauthority to correspond to your home
directory path. Also edit /home/brock/bin/graphics-workaround to the path
to your script. Don't forget to mark both scripts as executable with chmod
+x script-name

You can also create a systemd service if you prefer that method. I've
tested both methods, and both work. Here is more information setting a
command or script to run upon resume from suspend.

Feel free to email me if you have any difficulty in getting it set up.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20170705/50c7282a/attachment.html>

More information about the Pkg-xfce-devel mailing list