You are not logged in.

#1 2010-02-16 01:06:57

djolk
Member
Registered: 2008-03-07
Posts: 59

[Solved]Xfce4 won't resume from lid swtich.

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

#2 2010-02-17 10:08:52

djselbeck
Member
Registered: 2008-03-04
Posts: 26

Re: [Solved]Xfce4 won't resume from lid swtich.

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

#3 2010-02-17 16:23:33

djolk
Member
Registered: 2008-03-07
Posts: 59

Re: [Solved]Xfce4 won't resume from lid swtich.

Unfortuntly that doesn't help.

xrandr is a good idea - I'm going to try a few things with it.

Thank you.

Offline

#4 2010-02-17 22:55:29

Grazz256
Member
Registered: 2009-06-28
Posts: 69

Re: [Solved]Xfce4 won't resume from lid swtich.

Are you using compositing? there are issues with hibernation and xgl.

check here...
http://wiki.archlinux.org/index.php/Pm-utils

Cheers

Offline

#5 2010-02-18 01:36:42

djolk
Member
Registered: 2008-03-07
Posts: 59

Re: [Solved]Xfce4 won't resume from lid swtich.

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

#6 2010-02-18 05:56:02

djolk
Member
Registered: 2008-03-07
Posts: 59

Re: [Solved]Xfce4 won't resume from lid swtich.

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

Board footer

Powered by FluxBB