Re: Fix acpibtn(4) LID sensor

2016-01-06 Thread Mark Kettenis
> Date: Wed, 6 Jan 2016 10:05:48 +0100 > From: Martin Pieuchot > > My x220 never generates an event when the LID opens. So after > suspending by closing the lid the corresponding sensors will always > report a closed lid: > > $ sysctl hw.sensors.acpibtn0 >

Fix acpibtn(4) LID sensor

2016-01-06 Thread Martin Pieuchot
My x220 never generates an event when the LID opens. So after suspending by closing the lid the corresponding sensors will always report a closed lid: $ sysctl hw.sensors.acpibtn0 hw.sensors.acpibtn0.indicator0=Off (lid open) This confuses programs like upowerd(8) used at least by GNOME which

Re: Fix acpibtn(4) LID sensor

2016-01-06 Thread Mark Kettenis
> Date: Wed, 6 Jan 2016 01:16:38 -0800 > From: Mike Larkin > > On Wed, Jan 06, 2016 at 10:05:48AM +0100, Martin Pieuchot wrote: > > My x220 never generates an event when the LID opens. So after > > suspending by closing the lid the corresponding sensors will always > >

Re: Fix acpibtn(4) LID sensor

2016-01-06 Thread Mike Larkin
On Wed, Jan 06, 2016 at 10:33:58AM +0100, Mark Kettenis wrote: > > Date: Wed, 6 Jan 2016 01:16:38 -0800 > > From: Mike Larkin > > > > On Wed, Jan 06, 2016 at 10:05:48AM +0100, Martin Pieuchot wrote: > > > My x220 never generates an event when the LID opens. So after > > >