You are not logged in.

#1 2009-05-09 08:38:03

adamo
Member
Registered: 2008-10-18
Posts: 28
Website

Hibernation/sleep stopped working

After the recent updrade (with kdemod) on my laptop the hibernation stopped working (sleep also). I dont really know what could be the problem but I was working perfectly.

Now the sleep/hibernate buttons dont work also when i close the laptop lid nothing happens.


Asus K51AC PRO5EAC-SX070-4
AMD Athlon X2 Dual-Core QL-65 2,1 G 4GB radeon hd3200

Offline

#2 2009-05-09 10:13:57

audaly
Member
From: France
Registered: 2004-12-13
Posts: 60

Re: Hibernation/sleep stopped working

Same problem....

Offline

#3 2009-05-09 10:57:02

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: Hibernation/sleep stopped working

(My xfce standby too - could that be the policykit update or something else that they share? Ignore this post if it's not related, this is plain informational as I don't care much if my standby works ATM)

Last edited by whoops (2009-05-09 10:59:02)

Offline

#4 2009-05-12 01:20:58

Lux Perpetua
Member
From: The Local Group
Registered: 2009-02-22
Posts: 74

Re: Hibernation/sleep stopped working

Does it work if you sleep/hibernate from the command line as root? If your backend is pm-utils, then that would be pm-suspend (to sleep). That would help narrow the problem.

Offline

#5 2009-05-12 18:23:34

adamo
Member
Registered: 2008-10-18
Posts: 28
Website

Re: Hibernation/sleep stopped working

Yes, the pm-suspend method works the system went "to sleep".


Asus K51AC PRO5EAC-SX070-4
AMD Athlon X2 Dual-Core QL-65 2,1 G 4GB radeon hd3200

Offline

#6 2009-05-13 01:19:50

Lux Perpetua
Member
From: The Local Group
Registered: 2009-02-22
Posts: 74

Re: Hibernation/sleep stopped working

I'm not very knowledgeable about this, so hopefully someone else will weigh in on this. I have no idea how KDE does its thing; I set up suspend/resume independently of X. This method will not lock your session on resume (you won't be prompted for your password), but it is also possible to do that.

If you have acpid installed, in /etc/acpi/, you should have a script named handler.sh. Mine looks like this:

#!/bin/sh

.
.
.

set $*

case "$1" in
    .
    .
    .
    button/lid)
        #echo "LID switched!">/dev/tty5
        grep -q "open" < /proc/acpi/button/lid/LID/state
        if [ $? = 1 ];    
        then 
            #lid was closed
            logger "acpid: lid closed; suspending"
            /usr/sbin/pm-suspend
        else
            #lid was opened
            /usr/sbin/pm-resume
            logger "acpid: lid opened; resuming"
        fi
        ;;
    ibm/hotkey)
        case "$4" in
            00001003)
                logger "acpid: screen blank button (Fn+F3) pressed; ignoring"
            ;;
            00001004)
                logger "acpid: sleep button (Fn+F4) pressed; suspending"
                /usr/sbin/pm-suspend
            ;;
            *)
                logger "acpid: action $4 undefined or not implemented yet"
                ;;
        esac
        ;;
    *)
        logger "ACPI group/action undefined: $1 / $2"
        ;;
esac

(I cut out a lot of stuff that's irrelevant to suspend/resume.) You may be able to cut/paste the button/lid part directly. If you don't have an IBM computer, ibm/hotkey probably won't work for your sleep/hibernate buttons. However, what you can do is run the program acpi_listen from a terminal and press your sleep or hibernate button. If it prints something out, you can try replacing the "ibm/hotkey" and "00001004" with the appropriate fields. For reference, here is what I get when I run acpi_listen and press my sleep button:

ibm/hotkey HKEY 00000080 00001004

Offline

#7 2009-05-14 18:58:45

adamo
Member
Registered: 2008-10-18
Posts: 28
Website

Re: Hibernation/sleep stopped working

Sometimes the solution amazes me as soon as I made the command pm-suspend everything went back to normal neutral now when I close the lid the system goes to sleep.


Asus K51AC PRO5EAC-SX070-4
AMD Athlon X2 Dual-Core QL-65 2,1 G 4GB radeon hd3200

Offline

Board footer

Powered by FluxBB