Executing Gummiworms The trials and tribulations of a grumpy curmudgeonly old git

21Oct/100

Debian binaries of my lid, acpower and powerbtn utilities

[ Eleventh in a series recreating the lost posts -- This was originally posted 23/04/10]

Thanks to dTal from the irc who very kindly compiled my little utilities on his debian based zipit (aliosa27 debian, rootnexus, sidetrack) I now have binaries of my lid, acpower and powerbtn programs. They are compiled static so are a little large but they work. Basically they return 0, 1 or 255, where 255 means that there was an error opening /dev/mem, which normally means you need to run them as root.

lid returns 0 for closed and 1 for open, powerbtn returns 1 for unpressed and 0 for currently pressed (this is currently pressed, not has been pressed) and acpower returns 0 for on battery and 1 for on mains.

thanks dTal

Share
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

 

No trackbacks yet.