I'm using Tinyme and would like to make it work like Windows XP after standby, in other words it should show the user switching window (gdmflexiserver).

acpid calls sleep.sh which tries to start gdmflexiserver, but I get the error Gtk-WARNING: cannot open display:

How could I fix this?