View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#3
You can detect headphone plug/unplug events via D-Bus, so you could write a service that then notifies the media players.

BTW: On the N900, you can non-headphone and headphone volume independently, so if you set the volume to zero when the headphones are not plugged in, then connect the headphones and set some positive volume, if you accidentally unplug the headphones in a subway or bus, people won't be distracted by whatever fancy music you decided to listen to today.

That said, a mini-daemon that listens on D-Bus for headphone unplug changes and sets/remembers/restores the volume for each different mode would probably be easy to do and avoid what I call the "public transport situation" ("waiting in line situation" for you for all media players.
 

The Following 11 Users Say Thank You to thp For This Useful Post: