Re: add lid status sensor to acpibtn

2013-08-14 Thread Vadim Zhukov
2013/8/13 Landry Breuil lan...@rhaalovely.net: On Mon, Aug 12, 2013 at 06:01:25PM +0200, David Coppa wrote: On Mon, Aug 12, 2013 at 5:40 PM, Landry Breuil lan...@rhaalovely.net wrote: Hi, this diff adds a sensor for acpibtn to show lid status. This allows userland to monitor/react on lid

Re: add lid status sensor to acpibtn

2013-08-14 Thread Landry Breuil
On Wed, Aug 14, 2013 at 01:55:27PM +0400, Vadim Zhukov wrote: 2013/8/13 Landry Breuil lan...@rhaalovely.net: On Mon, Aug 12, 2013 at 06:01:25PM +0200, David Coppa wrote: On Mon, Aug 12, 2013 at 5:40 PM, Landry Breuil lan...@rhaalovely.net wrote: * _LID method. 0 means

Re: add lid status sensor to acpibtn

2013-08-13 Thread Mark Kettenis
Date: Tue, 13 Aug 2013 00:00:19 +0200 From: Landry Breuil lan...@rhaalovely.net On Mon, Aug 12, 2013 at 06:01:25PM +0200, David Coppa wrote: On Mon, Aug 12, 2013 at 5:40 PM, Landry Breuil lan...@rhaalovely.net wrote: Hi, this diff adds a sensor for acpibtn to show lid status.

add lid status sensor to acpibtn

2013-08-12 Thread Landry Breuil
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

Re: add lid status sensor to acpibtn

2013-08-12 Thread David Coppa
On Mon, Aug 12, 2013 at 5:40 PM, Landry Breuil lan...@rhaalovely.net wrote: 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

Re: add lid status sensor to acpibtn

2013-08-12 Thread Landry Breuil
On Mon, Aug 12, 2013 at 06:01:25PM +0200, David Coppa wrote: On Mon, Aug 12, 2013 at 5:40 PM, Landry Breuil lan...@rhaalovely.net wrote: 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