Speakers Stay On When Headphones Are Plugged In


ggi

Still Fresh
Joined
Dec 7, 2005
Messages
9
Location
Scotland
Website
Visit site
When I connect headphones to my GP2X they work, but sound continues to come from the speakers built into the unit. This has been reported in a couple of other threads, with the speculated cause being either poor soldering on the headphone jack or firmware problems.

I noticed the 'Headphone jack detect' GPIO connection on the wiki page, so I started mucking around with the example GPIO-using program this afternoon and produced a program that tests the 'Headphone jack detect' connection. I'm hoping someone with a GP2X (firmware 1.0.1 preferred, as that's what I'm using) and a nearby pair of headphones can test it for me and report back with the output. It's just a console program, so you'll need to run it in STerm.

Headphone test program
C source code

I've included a link to the source just so you can be sure that there's no chicanery afoot. I compiled the binary with
Code:
arm-linux-gcc -Wall headphone-test.c -o headphone-test.gpe -lm -lg -static -pthread

When I run it I get
Code:
/dev/mem opened successfully - fd = 9
mmap(0, 10000, 3, 1, 9, C0000000) ... OK! (40001000)
Headphones unplugged...
2048 (unplugged)
Please plug in some headphones and press  X.
Headphones plugged in...
2048 (unplugged)
test complete

Showing that the headphone jack detect isn't working for me, providing my test program is correct. I'm not really a capable solderer*, so I guess I'll have to send it back to GBAX if it turns out to be a problem with the soldering on the headphone jack.

Thanks in advance to anyone who tests this.

* Well, my Xbox / Modchip / Solder / Blu-tac experience has given me a pathological fear of solder.
 
grahf posted on Dec 28 2005 at 12:30 AM said:
Im sure you checked, but are the headphones firmly seated? They will work if plugged in halfway (in mono only), but have to be pretty firmly seated to work correctly in stereo.

Yeah, stereo works fine, and I can't see any way to push the plug in further. I've tried with about five pairs of headphones now, with no luck. I'll upgrade my firmware once I get an AC adapter, then e-mail GBAX if that doesn't change things.
 
Last edited by a moderator:
Dont we have another topic bout this?
I got the same stuff, worked right but now it always comes out of the speakers, no matter how good I plug it in...
I request a manual way to turn the main speakers off.... firmware if possible...
 
Hi, I had this myself yesterday.

I switched from one pair of headphones to another. The first pair worked the second didn't,

The reason .. the connectors were a slightly different size and only the larger connector worked.

According to "wikipedia" there are two sizes in circulation 3.5mm & 2.5mm.

Perhaps you have a <3.5mm plug on your headphones?
 
theGerbil posted on Dec 28 2005 at 04:18 PM said:
Hi, I had this myself yesterday.

I switched from one pair of headphones to another. The first pair worked the second didn't,

The reason .. the connectors were a slightly different size and only the larger connector worked.

According to "wikipedia" there are two sizes in circulation 3.5mm & 2.5mm.

Perhaps you have a <3.5mm plug on your headphones?

Well, I always used the same headphones... but they worked for some time... so couldnt it be another problem as well??
 
Last edited by a moderator:
I've created a workaround that I'm happy with. It's a program that switches the speakers off when they're on, and on when they're off. It can be run from the 'Utility' section of the GP2X menu. When run, it'll just dump you back to the main menu, but your speakers should be off/on as appropriate. It works for me, anyway.

You can get it here:
speaker-toggle-1.0.zip

I'm a bit of a novice GP2X programmer, so I've just statically compiled it as described on the GP2X wiki. This makes the binary a bit large for what it does. It would be nice if the program could be run with a button combination, but I'm not sure how to do that. Improvements welcome.
 
ggi, you OWN! Now I don't have to send my GP2X back, I'm over the moon with the system now I don't have to wait for it to come back!
Great system, and great programers well done lads!
 
At first the speaker toggle thing wasn't working for me, then I copied the files over again, and now it's working great! Thanks a bunch ggi!
 
ha
awesome
thank you
its a mized blessing
this works as a stop gap measure, it works now
it be better if my unit wasnt broken and gph wasnt shipping more units with this problem
but on the other sides its relatively minor, and i'd hate to have gph have to replace tons of the units. it's been a hard launch partly because of minor bugs, but I want the company to go on and continue making these awesome linux devices. I hope they learn from this and make better ones in the future, not get crushed by minor bugs costing tons in replacement units.
So thanks.
 
Is there any way to get this to work with the new firmware? :unsure:
 
djchk posted on May 8 2006 at 04:10 AM said:
Is there any way to get this to work with the new firmware? :unsure:

Yeah it doesn't seem to run with the new firmware version is there even a line of code we could just cut and paste our self to fix this problem?
 
Last edited by a moderator:
Back
Top