Hello, I am using CentOS 5.1 on a toshiba tecra 8000 notebook. That works great so far. The only thing I could not realize is to shutdown the notebook if closing the lid. Therefor I need the current status (open or close) of the lid, but I don't know how. Is there any way to get this status, maybe under /proc/ or by some command? [root at beutelsend ~]# uname -a Linux beutelsend 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:36:49 EST 2008 i686 i686 i386 GNU/Linux [root at beutelsend ~]# chkconfig --list apmd apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root at beutelsend ~]# service apmd status apmd (PID 1760) wird ausgef?hrt... thank you very much Olaf
On Tue, 2008-04-08 at 08:54 +0200, Olaf Mueller wrote:> Is there any way to get this status, maybe under /proc/ or by some > command?Look under /proc/acpi/button/lid/. On one of my notebooks, this works: [ksandhu at krs ~] cat /proc/acpi/button/lid/LID/state info state Regards, Ranbir -- Kanwar Ranbir Sandhu Linux 2.6.22.14-72.fc6 i686 GNU/Linux 21:08:42 up 10 days, 50 min, 2 users, load average: 0.58, 0.34, 0.20