Where do i read the lid state ?


Linux-SWAT

Forum Addict!
Joined
Feb 13, 2010
Messages
9,184
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:
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...

If you tell me which script does that and what exactly you don't understand I could maybe explain to you.
 
It's the op_lid* .


I don't know how they get the lid information.
 
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