I am running Xubuntu 14.04 XFCE4 and experiencing similar problems.
I fixed issue by creating a file called /etc/pm/sleep.d/20_docky and making it executable with:
sudo chmod ugo+x /etc/pm/sleep.d/20_docky
#!/bin/sh
case $1 in
resume)
USER=`who | grep ":0" | head -1 | cut -d" " -f1`
USERHOME=/home/$USER
export XAUTHORITY="$USERHOME/.Xauthority"
export DISPLAY=":0"
su $USER - -c "dbus-launch /usr/bin/docky >/dev/null" &
exit 0;
;;
esac
I am running Xubuntu 14.04 XFCE4 and experiencing similar problems. sleep.d/ 20_docky and making it executable with: sleep.d/ 20_docky
I fixed issue by creating a file called /etc/pm/
sudo chmod ugo+x /etc/pm/
#!/bin/sh /home/$ USER "$USERHOME/ .Xauthority"
case $1 in
resume)
USER=`who | grep ":0" | head -1 | cut -d" " -f1`
USERHOME=
export XAUTHORITY=
export DISPLAY=":0"
su $USER - -c "dbus-launch /usr/bin/docky >/dev/null" &
exit 0;
;;
esac
So far, so good..