Comment 77 for bug 846878

Revision history for this message
In , Freddy (freddy-redhat-bugs) wrote :

I think I have found a workaround for the time being. Put the script below in /etc/pm/sleep.d dir (for example in 01powermanager). Put your own username in the right spot, maybe change your display number if applicable.

#!/bin/bash

case $1 in
    thaw|resume)
        su - <Your username> -c "export DISPLAY=:0 && /usr/bin/xfce4-power-manager --restart"
        exit 0
        ;;
    *) exit $NA
        ;;
esac