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 <mlar...@azathoth.net>
> > 
> > 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
> > > 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 then
> > > decides to deactivate my screen when an external monitor is plugged in.
> > > 
> > > Diff below fixes that by adding a resume hook to acpibtn(4) in order to
> > > re-evaluate the "_LID" status of the node.
> > > 
> > > ok?
> > 
> > no objections, but i wonder if we should include the other button
> > types as well?
> 
> The others don't have state.
> 

Ah, sure. It was late when I wrote that :)

Reply via email to