Mer/Headset switch events
m (Mer/Status/Headset switch events moved to Mer/Headset switch events: Move to a different location - it's more a tutorial of how to get it working than a status report.) |
({{Mer}}) |
||
Line 1: | Line 1: | ||
+ | {{Mer}} | ||
+ | |||
On Maemo 4, this can be triggered by plugging in the headphone that has been supplied with the N8x0 tablet and then running: | On Maemo 4, this can be triggered by plugging in the headphone that has been supplied with the N8x0 tablet and then running: | ||
Line 14: | Line 16: | ||
# http://talk.maemo.org/showthread.php?p=194256 - HeadsetControl - a python program that monitors DBus for this signal and runs an arbitrary, user-specified, command. | # http://talk.maemo.org/showthread.php?p=194256 - HeadsetControl - a python program that monitors DBus for this signal and runs an arbitrary, user-specified, command. | ||
# https://bugs.maemo.org/attachment.cgi?id=1131 - a C program, by Santtu Lakkala (inz), that monitors DBus and pauses the built in [Maemo] media player, again, using DBus. | # https://bugs.maemo.org/attachment.cgi?id=1131 - a C program, by Santtu Lakkala (inz), that monitors DBus and pauses the built in [Maemo] media player, again, using DBus. | ||
- | |||
- |
Latest revision as of 09:47, 22 September 2010
Mer is back : Please visit http://www.merproject.org to learn more about this news. |
On Maemo 4, this can be triggered by plugging in the headphone that has been supplied with the N8x0 tablet and then running:
dbus-monitor --system
Pressing the button should result in the following D-Bus signal to be sent:
signal sender=:1.1 -> dest=(null destination) path=/org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition string "ButtonPressed" string "phone"
This is used by several media players (e.g. Panucci) to support Play/Pause or Next Track from the headphone switch.
Examples of standalone programs:
- http://talk.maemo.org/showthread.php?p=194256 - HeadsetControl - a python program that monitors DBus for this signal and runs an arbitrary, user-specified, command.
- https://bugs.maemo.org/attachment.cgi?id=1131 - a C program, by Santtu Lakkala (inz), that monitors DBus and pauses the built in [Maemo] media player, again, using DBus.
- This page was last modified on 22 September 2010, at 09:47.
- This page has been accessed 7,145 times.