[GTA02] disable resume on headphone jack removal?

Michael 'Mickey' Lauer mickey at vanille-media.de
Sat Apr 3 12:30:59 CEST 2010


Am Samstag, den 03.04.2010, 13:21 +0300 schrieb Timo Juhani Lindfors:
> Paul Wise <pabs3 at bonedaddy.net> writes:
> > My FreeRunner resumes from suspend-to-memory if I remove the headphones
> > from the headphone socket. Does anyone know if that is configurable or
> > if the hardware just doesn't allow it to be changed?
> 
> Just check the resume reason and put the phone back to suspend if the
> reason is headphone. Having the phone unsuspend for 1 second can't be
> that bad for energy consumption.

While that is true, in my opinion the proper way to do it is to expose
the wakeup reasons we're interested in to userland.

-- 
:M:




More information about the community mailing list