FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 01-18-2010, 06:28 PM
"Gav Ford"
Default acpi scripts for Lenny on EeePC 701SD


I'm trying to figure out which script should be called by acpi when the lid closes
on my EeePC 701SD netbook.

It's running Lenny and I keep it up to date with regular a dist-upgrade.

Under Gnome, closing the lid causes the machine to suspend, which is what I hope to

Under Fluxbox, with no gnome-power-manager running, the screen just blanks, not what
I'd like to happen.

Now I can see one solution would be to just run Gnome, another would be to run the
gnome-power-manager from .xinit or ~/.fluxbox/startup, but I'm hoping I can make
acpi do this for me without Gnome stuff.

dmesg seems to be telling me it's found the lib stitch here:

[ 8.256170] ACPI: Lid Switch [LID]

So I had a look in proc and sure enough there it is:

$ cat /proc/acpi/button/lid/LID/state
state: open

So I can see two events that trigger different scripts to do with the lid:

$ cat /etc/acpi/events/lid
event=button/lid LID [^o]

$ cat /etc/acpi/events/lidbtn
# /etc/acpi/events/lidbtn
# Called when the user closes or opens the lid

event=button[ /]lid

So as far as I can tell, it should be one of these:


Now, I've added my own script to both locations, not knowing which one I'm
going to need and hoping that covering both would cover everything, but
it's just not working out for me.

Here is my simple script:

$ cat /etc/acpi/lid.sh

grep -q closed /proc/acpi/button/lid/LID/state
if [ $? = 0 ]

But it's not getting called when I close the lid.

I did check that the lid sensor is being read with this simple script:

$ cat lidtest.sh

for i in {1..100}
grep -q open /proc/acpi/button/lid/LID/state
if [ $? = 0 ]
echo Open

grep -q closed /proc/acpi/button/lid/LID/state
if [ $? = 0 ]
echo Closed

Which reports Open when the lid is open, I close the lid while it's
running and when I check back, it was reporting Closed when the lid was

So I don't think it's a problem with the lid sensor, it's just I can't
figure out why the scripts:


Aren't being called.

Sorry I've rambled on a bit, I'm just a bit lost and hoping someone can
point me onto the right path.


Gav Ford
I think we need to: Attach the radar deflector

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Thread Tools

All times are GMT. The time now is 05:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org