Moto Hell - The Motorola Modding Community

Motorola Phone Models => Software (Phone) => Topic started by: fedegil69 on May 09, 2008, 09:49:00 am



Title: [E2] how to detect plug and unplug headset by software?
Post by: fedegil69 on May 09, 2008, 09:49:00 am

i know than the way to do for example a rsa adapter to listen music by a stereo or tv with the e2 is adding a resistor in the rsa plug..

today i make one to my stereo and i dont use the resistor (obiusly the phone do not detect the cable)
i run rockbox and go to settings - sound configuration - audio output selection and select "headset"

and sorprise! without a resistor the stereo play the phone´s music!

here is the question: is any way to do a script to choose speaker/ headset output?
 it will be great when you go a party with no music and connect you rokr to ROCK-ON!


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: steel00 on May 09, 2008, 07:39:17 pm
hell yeah youre right!!!! thx a lot!!!! gr8 way to get music and listen it everywhere


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: error398 on May 09, 2008, 11:54:58 pm
nice idea.. hope someone can make it soon... K+ to u


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: keaglez on May 12, 2008, 08:52:40 am
Only rockbox can do that...maybe... :)


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: fedegil69 on May 12, 2008, 11:50:06 am
maybe but when i close rockbox in headset mode, the phone stell thinking than he has a headset plugged in:p and you can use the stock player too..

so.. in keaglez we trust jejej!


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: ecmperalta on May 17, 2008, 05:59:53 pm
youre right....in katze 2 i do somethink similar, i conect the handset for e2 entry to handset mode and very fast disconect the handset and conect the rsa

sorry for my bad english


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: vhugobr on June 08, 2008, 10:23:45 am
Where's the Rockbox source code? Let's take a look, maybe we find the code and port it standalone.


Title: Re: [E2] how to detect plug and unplug headset by software?
Post by: fedegil69 on June 08, 2008, 07:03:10 pm
HERE from rockbox page the source code (http://build.rockbox.org/dist/build-source/rockbox.7z)