![]() |
2010-01-19
, 12:05
|
|
Posts: 559 |
Thanked: 1,017 times |
Joined on May 2008
@ Finland
|
#41
|
![]() |
2010-01-19
, 12:24
|
|
Posts: 81 |
Thanked: 109 times |
Joined on Apr 2009
@ Brasov/Cluj, Romania
|
#42
|
![]() |
2010-01-19
, 12:31
|
|
Posts: 559 |
Thanked: 1,017 times |
Joined on May 2008
@ Finland
|
#43
|
The problem is not to send a pause message to Mediaplayer, but to catch the signal emitted when the button on the headset is pressed.
![]() |
2010-01-19
, 13:31
|
|
Posts: 559 |
Thanked: 1,017 times |
Joined on May 2008
@ Finland
|
#44
|
![]() |
2010-01-19
, 17:35
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#45
|
![]() |
2010-01-19
, 17:40
|
Posts: 296 |
Thanked: 47 times |
Joined on Oct 2009
|
#46
|
![]() |
2010-01-26
, 17:51
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#47
|
![]() |
2010-01-28
, 19:51
|
Posts: 2 |
Thanked: 4 times |
Joined on Oct 2009
|
#48
|
![]() |
2010-01-29
, 10:24
|
|
Posts: 81 |
Thanked: 109 times |
Joined on Apr 2009
@ Brasov/Cluj, Romania
|
#49
|
Judging by Bec's dumps and having a quick look at the original code, it looks like the HID device for the headset changed from platform_retu_headset_logicaldev_input on pre N900 to computer_logicaldev_input_1 , which would stop the original code working.
Running something like this python script hacked from the code in kagu[1] would confirm this change, and what to listen for in an updated version of headset-control, or some new app: http://gist.github.com/289070
I also don't see any button messages in the dbus-monitor dump, however I'm not sure how dbus works - maybe items like this which are 'watched' won't show there?
Note this is just a theory, and untested - I don't have access to a N900 or know anything about dbus, just interested in buying one and concerned about getting the button to work with the media player!
([1] http://kagumedia.com/projects/kagu/b.../kagu/maemo.py)
![]() |
2010-01-29
, 12:43
|
Posts: 2 |
Thanked: 4 times |
Joined on Oct 2009
|
#50
|
I've tried something similar with your code but didn't work. In fact it worked only during a phone call, so the phone application somehow activates the button.
The Following User Says Thank You to lstoll For This Useful Post: | ||
![]() |
Tags |
ad-54/hs-45, headset button |
|