On Tue, Feb 1, 2011 at 09:31, Thiago Macieira <[email protected]> wrote:
> On Monday, 31 de January de 2011 22:47:22 Shane Bryan wrote:
>> On Tue, Feb 01, 2011 at 01:58:36PM +0800, alexguitar wrote:
>> > Dear All,
>> >
>> > I want to develop a app to detect earphone with two features, including
>> > plug in and plug out earphone jack .
>> >
>> > Whether does the Qt and Qt mobility provide the API about earphone
>> > detection?
>>
>> If you get an answer off list, please let us know, as I need to monitor this
>> as well.
>
> I'm not sure if the info is available elsewhere, but there's a /dev/input
> interface usually associated with that. Even my Dell laptop has it.
>
> Event: time 1296545363.867189, type 5 (EV_SW), code 2 (Headphone insert),
> value 1
> Event: time 1296545363.867201, -------------- Report Sync ------------
> Event: time 1296545370.850146, type 5 (EV_SW), code 2 (Headphone insert),
> value 0
> Event: time 1296545370.850155, -------------- Report Sync ------------
>
> There might be a daemon already listening to this event and reporting it in
> contextkit.

Hi,

Resouce policy framework has accessories plugin for ohmd  to detect
headpohones etc. That information is used to route audio, but probably
that is not reported forward to contexkit.

Btw. Why you need that information on application?

-- 
Kalle Lampila
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to