Hi,

this diff adds a sensor for acpibtn to show lid status. This allows
userland to monitor/react on lid close/open events, in case one is not
using machdep.lidsuspend. I know sysutils/upower can make use of this, i
just need to add the corresponding code there.

comments ? I wonder if/how the case when aml_evalinteger() fails should
be handled in acpibtn_attach()..

Tests of course welcome, only tested on i386/MSI Wind U100 here where LID is 
acpibtn0.

Landry

Reply via email to