You are not logged in.

#1 2011-11-15 20:21:59

arctor
Member
Registered: 2011-10-22
Posts: 21

Laptop Suspend Borked

Aspire One D250

After the updates I recently installed a few days ago, my suspend is not working properly. When I close my laptop lid it suspends as normal then it resumes as normal when I open the lid, but after about 10 seconds the laptop goes back to sleep and I need to wake it again. It then runs normal from then on.

I dont see any errors in pm-suspend.log... where else should I be looking?

Offline

#2 2011-11-15 20:28:13

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Laptop Suspend Borked

I've noticed the same on my laptop. Kernel 3.0, no problems. 3.1 breaks suspend. I think it's due to ACPI being unable to tell the difference between lid open and close events. If you run "acpi_listen" and then close and open the lid, as soon as lid open registers, it suspends again. So far, I've been unable to fix this. I'm stumped as well. sad


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#3 2011-11-15 20:41:39

arctor
Member
Registered: 2011-10-22
Posts: 21

Re: Laptop Suspend Borked

TheHebes wrote:

I've noticed the same on my laptop. Kernel 3.0, no problems. 3.1 breaks suspend. I think it's due to ACPI being unable to tell the difference between lid open and close events. If you run "acpi_listen" and then close and open the lid, as soon as lid open registers, it suspends again. So far, I've been unable to fix this. I'm stumped as well. sad


Yup just tested that and as soon as lid open registered it went back to sleep... hope someone has a quick solution :\

Offline

#4 2011-11-15 21:28:12

arctor
Member
Registered: 2011-10-22
Posts: 21

Re: Laptop Suspend Borked

I added "close" to the end of the event and it no longer wakes up when the lid is opened which helps a ton. Going to try to find a way to make it wake on lid open later tonight. :\

event=button/lid (LID close)
action=/usr/sbin/pm-suspend

Offline

#5 2011-11-15 23:27:08

SternGerlachExperiment
Member
Registered: 2009-10-11
Posts: 51

Re: Laptop Suspend Borked

I just downgraded back to 3.0.7 for the time being.

Offline

#6 2011-11-16 02:09:45

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Laptop Suspend Borked

I believe that acpi registers the state of the lid into "/proc/acpi/button/LID" or something like that, if that helps. I tried setting up an if/than command using awk in the handler.sh that looks for opened/closed in this file and handles the event based on that. It didn't work.

Last edited by TheHebes (2011-11-16 02:11:40)


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#7 2011-11-16 03:14:31

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Laptop Suspend Borked

Sounds very similar to a problem I used to have.  The solution is likewise similar.

http://forums.fedoraforum.org/showthread.php?t=228242

Offline

#8 2011-11-16 18:46:01

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: Laptop Suspend Borked

This is how I changed my /etc/acpi/handler.sh:

...
    button/lid)
	case $(cat /proc/acpi/button/lid/LID0/state | awk '{print $2}') in
	    closed) pm-suspend ;;
	    open) ;;
        esac
        #echo "LID switched!">/dev/tty5
        ;;
...

Works OK now.

Offline

#9 2011-11-16 20:36:40

CanadaRox
Member
Registered: 2006-08-06
Posts: 19

Re: Laptop Suspend Borked

I had the same issue with my laptop.  The problems seems to be that they changed the "button/lid" event to run twice, once for "closed" and once for "open".

button/lid)
        case $3 in
            close)
                pm-suspend
        esac
        ;;

That is my "button/lid" event.  (The awk in the previous post would only be required if acpi_listen doesn't have anything to specify whether the laptop is being opened or closed)

Offline

#10 2011-11-17 06:04:43

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Laptop Suspend Borked

CanadaRox wrote:

I had the same issue with my laptop.  The problems seems to be that they changed the "button/lid" event to run twice, once for "closed" and once for "open".

button/lid)
        case $3 in
            close)
                pm-suspend
        esac
        ;;

That is my "button/lid" event.  (The awk in the previous post would only be required if acpi_listen doesn't have anything to specify whether the laptop is being opened or closed)

I can confirm that this fixes the issue.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

Board footer

Powered by FluxBB