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

From: Kemal Hadimli disqkk at gmail.com
Date: Wed Oct 17 23:26:00 EEST 2007
You could read/monitor "/sys/devices/platform/gpio-switch/headphone/state"

That's a good idea in fact, we'll try to integrate this functionality
in Kagu media player in the next release.

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

More information about the maemo-developers mailing list