|
2012-06-23
, 18:03
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#22
|
The Following User Says Thank You to biketool For This Useful Post: | ||
|
2012-06-24
, 18:17
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#23
|
|
2012-06-26
, 09:31
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#24
|
The Following User Says Thank You to biketool For This Useful Post: | ||
|
2012-06-26
, 10:29
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#25
|
Question,
Where does Headset Button Enabler package grab the wired headset signal so it can be sent to dbus? I imagine the bluetooth answer button sends to the same process.
This for the N810 seems obsolete for the N900/Maemo5 but I could be wrong. http://talk.maemo.org/archive/index.php/t-21182.html Still waiting for my N900 so I cant check.
signal sender=:1.0 -> dest=(null destination) path=/com/nokia/osso_hp_ls_controller; interface=com.nokia.osso_hp_ls_controller.headset; member=button_pressed
signal sender=:1.0 -> dest=(null destination) path=/com/nokia/osso_hp_ls_controller; interface=com.nokia.osso_hp_ls_controller.headset; member=button_released
|
2012-06-26
, 12:03
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#26
|
|
2012-06-26
, 16:09
|
Posts: 435 |
Thanked: 769 times |
Joined on Apr 2010
|
#27
|
On n900 if I don't remember wrong the wired button is disabled but you may enable it just with an amixer command. You don't need anything else, just to enable the wired button and listen to dbus events.
//To connect to wired headset button: QDBusConnection::systemBus().connect(QString(), "/org/freedesktop/Hal/devices/computer_logicaldev_input_1", "org.freedesktop.Hal.Device", "Condition", this, SLOT(headSetButtonPressed())); //to enable headset button, it's a shell command amixer -qc0 cset iface=MIXER,name='Jack Bias Switch' on //to disable: amixer -qc0 cset iface=MIXER,name='Jack Bias Switch' off
The Following User Says Thank You to gionni88 For This Useful Post: | ||
|
2012-07-08
, 18:55
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#28
|
|
2012-12-14
, 11:11
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#30
|
So it seems that the information is gathered here to build a bluetooth version of HeadsetButtonEnabler for general purpose control of ausio in addition to applications in Saera. Now someone needs to change a few lines of code and rename the package to reflect bluetooth rather than wired headset and compile it to get the bluetooth headset presses to show up in dbus for apps to see?
https://github.com/gpodder/gpodder/b...mlui/helper.py
You can even remove all the Qt stuff around it, and just use the "dbus" module (be sure to use a GLib or Qt main loop though, as you are connecting to signals).
HTH