[maemo-developers] how to detect if the headphones are plugged?

From: Daniel M German dmg at uvic.ca
Date: Thu Oct 18 02:14:52 EEST 2007

I am starting to use the N800 in my car, and I think this would be a
great feature. When I get off my car the last thing I want to do is
switch to the music playing application and then hit pause. perhaps
the opposite (plug headphones in, continue playing) option can also be
implemented.


--dmg



 Kemal> You could read/monitor "/sys/devices/platform/gpio-switch/headphone/state"
 Kemal> That's a good idea in fact, we'll try to integrate this functionality
 Kemal> in Kagu media player in the next release.

 Kemal> On 10/17/07, Daniel M German <dmg at uvic.ca> wrote:
 >> 
 >> 
 >> Hi everybody,
 >> 
 >> is there a way to detect if the headphones are plugged?
 >> 
 >> I am irritated that music playing software does not pause when the
 >> headphones are removed (like the ipod) and would like to write a patch
 >> to make it an option.
 >> 
 >> thanks a lot!
 >> 
 >> --daniel


 Kemal> -- 
 Kemal> Kemal


-- 
--
Daniel M. German                  
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

More information about the maemo-developers mailing list