![]() |
Do you want a headphone daemon? (actions based on headphone plugging)
Hi there!
I've been thinking for some time now for an application that controls certain aspects of my tablet when my headphone is plugged in or unplugged. I currently walk to university while listening to podcasts on my N800 (using headphones) and then when I get into the auditorium unplug the headphones - always then I want to mute the audio of my N800, so I don't disturbe the lecture. When I head for home again, I plug in my headphone and have to manually unmute my tablet's audio. I want to write an app that runs in the background and waits for some actions to happen (headphone plugged, unplugged - maybe others) and reacts to these by running certain actions that can either be pre-defined (mute audio, unmute audio) user customizable. The app would run in the background with no UI other than a control panel configuration screen and maybe an optional system notification icon. What do you think? Would something like this be useful to you? Do you have other suggestions for me that would be important to know before starting on this project? Does such a beast exist already? |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
im tempted to ask if not powerlaunch can already do this...
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
A clean documentation with examples for powerlaunch would be great :D
I know of things it can do but never managed to configure |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
id just be happy for the volume to not get turned down when i insert headphones....anyone know of anyway to do this?
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
heh, sounds like some kind of ear protection thing, so that people cant complain to nokia about the tablet damaging their hearing.
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
I use Sennheiser ear-plugs and they can go very loud (louder than I would ever want). |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Personally, I would not use such, but this should be part of HAL or the extended daemon of HAL don't have time now to search for this it might be listed at http://www.freedesktop.org/wiki/Software
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
If I may, I'll place a plug:
http://www.internettablettalk.com/fo...ad.php?t=21182 This one lets you use the headset button :D |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
multimediad (Nokia closed stuff) seems to handle at least some of this stuff. An open replacement for that would be awesome.
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
so you're suggesting that headset-control could be modified to monitor not just the headset button, but also the presence of earphones, and then to take some action on the plug/unplug events?
Sounds like a good idea to me. How will this effect power drain? |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Oh my god please not an other daemon !
:) |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Regarding your requirements in the first post, a location (GPS/wifi in sight) and time based system might suit you better (possibly along with the headphone behaviour too). Not that one exists (yet), but it would be cool, a Killer App even, to have the device do certain things depending on time and location contstraints.
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
Add "default_inherit common.headphone" to the end of main.on_init and add headphone_connected and headphone_disconnected handlers. The beginning of powerlaunch.conf would look like this: Code:
on_init = load common; load mce; load systemui; load alarm; inherit systemui.ui; call start_apps; default_inherit common.headphone |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Quote:
I just think of profile switching when near the office / near home. The pain is that GPS would have to be running always, so it might be better to deduct the location information also from bluetooth or wireless lan peripherals. 0.02€ ;) |
Re: Do you want a headphone daemon? (actions based on headphone plugging)
DeviceKit is the project I meant. It uses HAL, is under construction, and will be included in Fedora 11.
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
It would be great to also be able to launch a program automatically when plugging the headphones in. 9 out of 10 times I plug them in I want to listen to music with Canola, so launching it automatically would be great. There could be a few seconds of delay so it would be possible to cancel the launch.
|
Re: Do you want a headphone daemon? (actions based on headphone plugging)
Or it could trigger some voice-menu using flite to let you choose the application to launch by clicking the button. So that you can launch useful applications without taking your tablet out of your pocket.
|
| All times are GMT. The time now is 12:44. |
vBulletin® Version 3.8.8