Re: Detecting headset button press

2009-05-07 Thread Marco Trevisan (Treviño)
arne anka wrote:
 fso framework detects headset plug-in and switches alsa stae accordingly  
 -- why don't you have a look at fso, how they do that?

In my qtopia-x11 version I've used this workaround [1] to do it.

Maybe it helps.

[1]
http://dev.3v1n0.net/gitweb/?p=qtopia-x11.git;a=commitdiff;h=ce3bcd11addffab7c3b1050f33ed8e67b0505740

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


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


Re: Detecting headset button press

2009-05-06 Thread Joerg Reisenweber
Am Fr  1. Mai 2009 schrieb Michael 'Mickey' Lauer:
 The headset button only gets sent when a certain alsa control is on, Werner 
 can fill you up on the details. After that, it should be possible to do a 
 simple fso rule for it.


please see
http://docs.openmoko.org/trac/ticket/2209#comment:8
/j


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


Re: Detecting headset button press

2009-05-01 Thread Johny Tenfinger
On Thu, Apr 30, 2009 at 10:36, arne anka openm...@ginguppin.de wrote:
 fso framework detects headset plug-in and switches alsa stae accordingly
 -- why don't you have a look at fso, how they do that?

frameworkd doesn't support button on headset. You misunderstood topic :P

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


Re: Detecting headset button press

2009-05-01 Thread Michael 'Mickey' Lauer
The headset button only gets sent when a certain alsa control is on, Werner 
can fill you up on the details. After that, it should be possible to do a 
simple fso rule for it.

:M:


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


Re: Detecting headset button press

2009-04-30 Thread arne anka
fso framework detects headset plug-in and switches alsa stae accordingly  
-- why don't you have a look at fso, how they do that?

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


Re: Detecting headset button press

2009-04-29 Thread Helge Hafting
Ruben Leote Mendes wrote:
 Hi,
 
 I followed the Freerunner schematics and the heaset button seems to be
 connected to EINT7/GPF7 so it seems it is possible to find out in software
 if the button is pressed.
 
 What is the best way to do it?

Check to see if it is interpreted as a normal key already.
enlightenment can assign some actions to keys, that is how the two 
regular buttons are handled. Go into that setup, press the key and see 
if you get a keycode.  If so, you can assign an enlightenment action.

If you want to use it outside of e, run something like xev to check 
what keycode is produced. Then write software to listen for it.

If you don't get any keycode at all (in xev), try talking to kernel 
developers about fixing that.

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


Re: Detecting headset button press

2009-04-29 Thread Rui Miguel Silva Seabra
On Tue, Apr 28, 2009 at 10:51:22PM +0100, Ruben Leote Mendes wrote:
 I followed the Freerunner schematics and the heaset button seems to be
 connected to EINT7/GPF7 so it seems it is possible to find out in software
 if the button is pressed.
 
 What is the best way to do it?

Hey finally playing with it? Cool! :D

Rui

-- 
Umlaut Zebra �ber alles!
Today is Prickle-Prickle, the 46th day of Discord in the YOLD 3175
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?

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


Re: Detecting headset button press

2009-04-29 Thread Ruben Leote Mendes

Em Qua, Abril 29, 2009 09:47, Helge Hafting escreveu:
 Ruben Leote Mendes wrote:
 Hi,

 I followed the Freerunner schematics and the heaset button seems to be
 connected to EINT7/GPF7 so it seems it is possible to find out in
 software
 if the button is pressed.

 What is the best way to do it?

 Check to see if it is interpreted as a normal key already.
 enlightenment can assign some actions to keys, that is how the two
 regular buttons are handled. Go into that setup, press the key and see
 if you get a keycode.  If so, you can assign an enlightenment action.

 If you want to use it outside of e, run something like xev to check
 what keycode is produced. Then write software to listen for it.

Thanks. I'll try that when I get my hands on a 2.5 4-ring jack.
I currently do not own a compatible headset, but have an application
in mind that needs a push button because touchscreen is not an option.

-- 
Rúben Leote Mendes -- ru...@nocturno.org


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


Re: Detecting headset button press

2009-04-29 Thread Ruben Leote Mendes

Em Qua, Abril 29, 2009 09:50, Rui Miguel Silva Seabra escreveu:
 On Tue, Apr 28, 2009 at 10:51:22PM +0100, Ruben Leote Mendes wrote:
 I followed the Freerunner schematics and the heaset button seems to be
 connected to EINT7/GPF7 so it seems it is possible to find out in
 software
 if the button is pressed.

 What is the best way to do it?

 Hey finally playing with it? Cool! :D

Sort of. It might seem strange but it's not for use as a phone that I
want to read the headset button. I still use another phone for that. :-(

-- 
Rúben Leote Mendes -- ru...@nocturno.org


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


Detecting headset button press

2009-04-28 Thread Ruben Leote Mendes
Hi,

I followed the Freerunner schematics and the heaset button seems to be
connected to EINT7/GPF7 so it seems it is possible to find out in software
if the button is pressed.

What is the best way to do it?

Thanks.
-- 
Rúben Leote Mendes -- ru...@nocturno.org


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