You are not logged in.
Xfce4 will not resume properly on a dell laptop using the lid switch. On lid close it suspends fine but I am left with a black screen on resume. I can zap it or switch to console and restart the DM.
Suspend/resume works properly using power button or the 'Log Out' menu. Also, using KDE suspend/resume functions properly with the lid swtich.
djolk
Last edited by djolk (2010-11-02 22:38:35)
Offline
I had the same problem a few month ago. This is how i fixed it. Put this in /etc/pm/sleep.d/10-display.sh and make it executable with
chmod a+x /etc/pm/sleep.d/10-display.sh
/etc/pm/sleep.d/10-display.sh:
#!/bin/bash
case $1 in
hibernate)
echo "Hey guy, we are going to suspend to disk!"
;;
suspend)
echo "Suspend"
;;
thaw)
echo "oh, suspend to disk is over, we are resuming..."
DISPLAY=:0 xrandr --output LVDS1 --auto
;;
resume)
DISPLAY=:0 xrandr --output LVDS1 --auto
;;
*) echo "somebody is calling me totally wrong."
;;
esac
Offline
Unfortuntly that doesn't help.
xrandr is a good idea - I'm going to try a few things with it.
Thank you.
Offline
Are you using compositing? there are issues with hibernation and xgl.
check here...
http://wiki.archlinux.org/index.php/Pm-utils
Cheers
Offline
Xfce4 is the same whether compositing is on or off. Suspend and resume both work fine if called from a command line, using the run dialogue or with the exit dialogue. It's only when suspending via lid close that resume isn't working.
KDEmod everything works including suspend/resume via lid switch - with compositing on.
I have added the resume=/dev/.. to kernel command line and rebuilt mkinitcpio with resume added. I will try removing the autodetect as suggested...
I'm confused why this only happens with Xfce.
thanks
Offline
Okay update,
I added an exec pm-suspend line to /etc/acpi/handler.sh and it now works. I also told xfce4 power manager to not suspend on lid close.
I get some distortion on resume but everything functions.
Once I've looked into this I will mark as solved.
Offline