Re: Allow resuming with closed lid

2015-01-31 Thread Theo de Raadt
> What Ted says makes sense. Unfortunately, it's a bit more difficult than > it seems to obtain the wake source. > > 1. Not all machines (very few in fact) implement _SWS > > 2. Instrumenting a few machines to check GPEs on wake, I found that none > of them were asserted in the lid-open case, the

Re: Allow resuming with closed lid

2015-01-31 Thread Mike Larkin
On Fri, Jan 30, 2015 at 05:44:25PM -0500, Ted Unangst wrote: > On Sat, Jan 31, 2015 at 00:24, Ville Valkonen wrote: > > Hello Mike and Max, > > > > my work laptop is running Windows and on there one must press power button > > to wake up the machine. If I connect the dots right, current behaviour

Re: Allow resuming with closed lid

2015-01-30 Thread Ted Unangst
On Sat, Jan 31, 2015 at 00:24, Ville Valkonen wrote: > Hello Mike and Max, > > my work laptop is running Windows and on there one must press power button > to wake up the machine. If I connect the dots right, current behaviour was > implemented to prevent a "hot bag" problem. Mimicking the Windows

Re: Allow resuming with closed lid

2015-01-30 Thread Ville Valkonen
Hello Mike and Max, my work laptop is running Windows and on there one must press power button to wake up the machine. If I connect the dots right, current behaviour was implemented to prevent a "hot bag" problem. Mimicking the Windows behaviour would also prevent laptop wake ups on a bumpy road.

Re: Allow resuming with closed lid

2015-01-29 Thread Mike Larkin
On Fri, Jan 30, 2015 at 12:42:04AM +0100, Max Fillinger wrote: > Currently, there's code in acpi.c that sends the system back to sleep > when resuming with closed lid and machdep.lidsuspend=1. I often use my > laptop in a docking station with an external monitor and keep the lid > closed, and I'd l

Allow resuming with closed lid

2015-01-29 Thread Max Fillinger
Currently, there's code in acpi.c that sends the system back to sleep when resuming with closed lid and machdep.lidsuspend=1. I often use my laptop in a docking station with an external monitor and keep the lid closed, and I'd like to be able to resume just by pushing the power button on the dockin