Where do i read the lid state ?


Linux-SWAT

Forum Addict!
Joined
Feb 13, 2010
Messages
9,195
Hi !


I'd like to start a custom command when closing the lid.


I'd also like to know when the lid is closed or open.


I took a look at /usr/pandora/scripts/ lid-related stuff, but i don't understand.


Also checked http://pandorawiki.o...interface#Input ... don't get it...
 
Last edited by a moderator:
I'm more looking for something looking like i.e. /proc/pandora/lidstate
 
Last edited by a moderator:
It's not readable from /proc or /sys, you have to write a program for this.


op_lid is called by pndevmapperd, you can try configuring it.
 
Back
Top