2009 / Your phriendly headphone daemon

Headphone daemon for Maemo

The headphone daemon sits in the background and watches the connection state of headphones on the N800, N810 or N900. Whenever the headphones are unplugged (or disconnected in the case of Bluetooth headphones), headphoned will send a "pause" signal to all supported media players to avoid "public transport situations".

Versions

headphoned started out as a project for Maemo 4 (OS2008 aka Diablo), but quickly became interesting for Maemo 5 as well, and so starting with 1.5, Maemo 5 is supported and development is focused on Maemo 5 at the moment.

The Maemo 4 version is also updated every now and then and new features are added or bugs are fixed. As these updated are forked from version 1.4 of headphoned, these releases will be named 1.4.x.

  • Maemo 4 (OS2008) releases are named 1.4.x
  • Maemo 5 releases are named 1.x (x > 4)

Features

  • Detect unplug events on the headphone jack
  • Send "pause" signal to the built-in Media Player
  • Send "pause" signal to Panucci (new in 1.3)
  • Send "pause" signal to MPlayer (new in 1.4)

Features specific to the Maemo 5 version (1.x)

  • Support for Maemo 5 + MAFW (new in 1.5)
  • Support for Bluetooth headsets (new in 1.6)
  • Version 1.7 adds the mandatory bug tracker URL field
  • Support for pausing FM Radio (new in 1.8)
  • Support for pausing MediaBox (new in 1.9)
  • Libplayback and whitelisting support (new in 1.9)
  • Pause on hangup for disconnect-on-active-call (new in 1.9)

Features specific to the Maemo 4 version (1.4.x)

  • Support for pausing mpd via mpc (new in 1.4.1)

Supported applications

  • Media Player for OS2008 (OSSO Media Server)
  • Media Player for Maemo 5 (MAFW backend)
  • Panucci
  • MPlayer
  • FM Radio (Maemo 5 only)
  • MediaBox (Maemo 5 only)
  • mpd (Maemo 4 only)

If you want your media player application to be supported by headphoned, please provide the pause and play features via a D-Bus API and contact the author of headphoned.

Credits / Thanks

Thanks to the following people who have contributed to the greatness called headphoned:

  • Joost Kop (initial patch for MAFW pausing)
  • Faheem Pervez (patch for Hal-based disconnect detection)
  • Alan Peery (donated a Bluetooth headset for development)

The code

git clone git://repo.or.cz/headphoned.git

Links

Download now: OS2008 (Diablo) or Maemo 5 (Fremantle).

Headphone Daemon on repo.or.cz


Thomas Perl (m at thp io), jabber: thp@jabber.org