Re: [GTA02] disable resume on headphone jack removal?

2010-04-03 Thread Timo Juhani Lindfors
"Michael 'Mickey' Lauer"  writes:
>> 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.

Sure but for example to differentiate between incoming GPRS traffic
and incoming call as a wakeup reason you need to do it in userland
anyway.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [GTA02] disable resume on headphone jack removal?

2010-04-03 Thread Michael 'Mickey' Lauer
Am Samstag, den 03.04.2010, 13:21 +0300 schrieb Timo Juhani Lindfors:
> Paul Wise  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:


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [GTA02] disable resume on headphone jack removal?

2010-04-03 Thread Timo Juhani Lindfors
Paul Wise  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.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [GTA02] disable resume on headphone jack removal?

2010-04-02 Thread Paul Fertser
Paul Wise  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?

Of course it's configurable, but i'm not sure about proper
kernel-userspace api far that and if something is implemented.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[GTA02] disable resume on headphone jack removal?

2010-04-02 Thread Paul Wise
Hi all,

[Please CC me in reply]

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?

-- 
bye,
pabs

http://bonedaddy.net/pabs3/


signature.asc
Description: This is a digitally signed message part
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community