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 <[EMAIL PROTECTED]> 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 _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers