Reply
Thread Tools
Posts: 16 | Thanked: 0 times | Joined on Dec 2007
#1
Some of you have probably experienced this problem:
You're listening to music with your tablet, and the headphone jack comes out. Voila, now the library, your class, or just the general public are forced upon your blaring and horrendous music taste. Is there any way to spare this incident from occuring again? Maybe an applet for switching between headphones and speakers? Or a hack to pause the music if you headphones come out, like the iPod? I really don't want to have to get another music player, and will have to if I can't solve this.
Any ideas out there guys?
 
Posts: 1,213 | Thanked: 356 times | Joined on Jan 2008 @ California and Virginia
#2
I know this is possible. Don't have the skill to make it.

Is this already done somewhere? For example, the FM radio apps can select between speakers and headphones...
__________________
----------------------------------------------------

www.ezschool.com - The best online educational experience.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#3
Definitely possible - I'm sure that someone implemented a daemon to change volume when the head-set is plugged in.

I think someone implemented something similar with powerlaunch, too.
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#4
You could monitor /sys/devices/platform/gpio-switch/headphone/state for detecting plugging in the headset. It also generates some D-Bus event, IIRC.

Here's some code for headset stuff:

https://garage.maemo.org/plugins/scm...ox&view=markup
 
dfinch's Avatar
Posts: 362 | Thanked: 82 times | Joined on Jan 2008
#5
Depending upon how you are using the tablet, can you loop the cable around the stand one time to provide a strain relief?

A more elegant solution would be a strip of (soft side) self adhesive velcro on the back of the tablet. Then plug in, pass the cable over the soft velcro and hold in place with the grippy velcro strip. This would put a 180 deg bend in the cable (make the loop gentle) and any tug would not pull the plug.

Not quite the solution you were after but simple, quick and certainly do-able.
__________________
N810, OS 2008 5.2008.43-7 (Diablo)
Nobody can accuse me of not contradicting the invalid arguments of the opposition!
Derek
 
Sevanteri's Avatar
Posts: 48 | Thanked: 10 times | Joined on Jun 2008 @ Oulu, Finland
#6
Originally Posted by dfinch View Post
A more elegant solution would be a strip of (soft side) self adhesive velcro on the back of the tablet. Then plug in, pass the cable over the soft velcro and hold in place with the grippy velcro strip. This would put a 180 deg bend in the cable (make the loop gentle) and any tug would not pull the plug.
Ha... Never thought that either. :P

I also had the same idea some time ago. But I too don't have the skill to do even that simple app.
I can make an app that checks the /sys/devices/platform/gpio-switch/headphone/state
but... how do I make it mute my tablet and other way; how to make an background app; and how to make it start when the tablet starts.
__________________

Jolla, The First One TOH
N9, black 16GB
N810
 
Posts: 16 | Thanked: 0 times | Joined on Dec 2007
#7
Originally Posted by codeMonkey View Post
Definitely possible - I'm sure that someone implemented a daemon to change volume when the head-set is plugged in.
That would be awesome if you could find that daemon..
I'm surprised this isn't ever brought up.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#8
There were discussions here.
 

The Following User Says Thank You to codeMonkey For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:02.