Bug 6360 - Headset problems
: Headset problems
Status: RESOLVED INVALID
Product: System software
general
: 5.0/(1.2009.42-11)
: N900 Maemo
: Medium normal with 1 vote (vote)
: ---
Assigned To: unassigned
: system-software-general-bugs
: http://talk.maemo.org/showthread.php?...
:
:
:
  Show dependency tree
 
Reported: 2009-11-27 13:59 UTC by Claudio Mezzasalma
Modified: 2013-02-03 00:46 UTC (History)
9 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Claudio Mezzasalma (reporter) 2009-11-27 13:59:49 UTC
SOFTWARE VERSION: 1.2009.42-11
(Settings > General > About product)

EXACT STEPS LEADING TO PROBLEM: 
(Explain in detail what you do (e.g. tap on OK) and what you see (e.g. message
Connection Failed appears))
1. Plug in the headset that comes along with N900 package (Nokia WH-205)

EXPECTED OUTCOME: An icon appearing on the status bar which states that the
headphones are recognized, all audio (system, multimedia, etc.) routed to the
headphones, headset's microphone working

ACTUAL OUTCOME: No icon on the status bar, sound not routed to the headphones
nor microphone working.

REPRODUCIBILITY: always

EXTRA SOFTWARE INSTALLED:

OTHER COMMENTS: Before everyone says that I have a faulty headset/telephone,
let me tell you some results I got.

1. Tried WH-205 on an N95: works flawlessly.
2. Tried N95's headset on N900: works flawlessly, except that there's no icon
on the status bar unless i power on the device with the headset plugged in. In
that case I have an icon, but if I plug out and in again the icon won't
reappear. The headset, however, continues to be ok (both headphones and mic).

dmesg always shows a headphone (GPIO 177) is now connected/disconnected with
both of the headsets. With N95's also shows input: headset button as
/class/input/input5 (maybe music controls?)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; it;
rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Comment 1 Andre Klapper maemo.org 2009-11-28 02:14:18 UTC
Thanks for reporting this.

Can you please plug in and remove again the Nokia WH-205 headset, then open "X
Terminal", enter the command "dmesg | tail" and post any lines that contain the
word "headphone"?

When plugging my AKG K 512 headphones and remove them I see the icon in the
statusbar and get two lines in the X Terminal.
Comment 2 Claudio Mezzasalma (reporter) 2009-11-28 02:22:59 UTC
(In reply to comment #1)
> Thanks for reporting this.
> 
> Can you please plug in and remove again the Nokia WH-205 headset, then open "X
> Terminal", enter the command "dmesg | tail" and post any lines that contain the
> word "headphone"?
> 
> When plugging my AKG K 512 headphones and remove them I see the icon in the
> statusbar and get two lines in the X Terminal.
> 

As said in the previous post, I only get:

headphone (GPIO 177) is now connectede

(or disconnected, if I unplug them).
Comment 3 Claudio Mezzasalma (reporter) 2009-11-28 12:34:59 UTC
I should add another detail: plugging WH-205 WITH HANGUP BUTTON PRESSED makes
the phone to route audio to the headphones, but mic is still not working (the
standard microphone remains active). However, no heaphone icon is show on
status bar.
Comment 4 Claudio Mezzasalma (reporter) 2009-11-28 13:38:26 UTC
(In reply to comment #1)

> When plugging my AKG K 512 headphones and remove them I see the icon in the
> statusbar and get two lines in the X Terminal.

The same with my Creative HN700 headphones. It seems that I have problem only
with headsets (4-pin 3.5mm jack, headphones + microphone) and not with standard
headphones (3-pin 3.5mm jack, only headphones). Same dmesg messages, too:
headphone (GPIO 177) is now connected/disconnected.
Comment 5 Paul Fertser 2009-11-29 14:28:21 UTC
So i downloaded the sources and now have additional ideas about the headset
detection routine. In short, it's all in the kernel, understandable and
debuggable. Relevant files are drivers/misc/nokia-av.c and
sound/soc/omap/rx51.c .

To understand what's going on in details i think it would be nice to log
contents of all the files in /sys/devices/platform/nokia-av/ for all possible
cases.

The fact you see an additional message about headset button registered as input
device when you plug N95 HS says that the headset got detected as
BASIC_HEADSET, just as it should be. WH-205 results will be explained after you
post the information from the files mentioned.

And i've no idea yet about how the statusbar icon is supposed to work, probably
that's totally irrelevant even.
Comment 6 John 2009-11-29 15:13:29 UTC
(In reply to comment #5)

I've looked at this bug a little, and I can definitely reproduce some
interesting situations. By plugging in a set of very standard headphones, very
slowly and carefully I can end up with a situation where the headphones are
fully plugged in, but without the "headphones" icon appearing in the status
area and with sound still routed to the N900's internal speakers. I can also
reproduce this situation by plugging in the N810's and N900's bundled headsets
into my N900 very slowly.

> To understand what's going on in details i think it would be nice to log
> contents of all the files in /sys/devices/platform/nokia-av/ for all possible
> cases.

Here is the output from files in "/sys/devices/platform/nokia-av" while
plugging  in standard 3.5mm stereo headphones.
Unplugged (No icon in status bar, sound playing through speakers):
/sys/devices/platform/nokia-av $ for n in autodetect detect eci0 eci1 madc ; do
echo -n $n: ; cat $n ; done
autodetect:1
detect:3
eci0:1
eci1:1
madc:1023
Half plugged in (Outermost black ring on the headphone still shows outside the
N900):
/sys/devices/platform/nokia-av $ for n in autodetect detect eci0 eci1 madc ; do
echo -n $n: ; cat $n ; done
autodetect:1
detect:3
eci0:1
eci1:1
madc:1023
"3/4" plugged in or so (maybe 2mm of the 3.5mm plug show outside the N900,
sound is routed to speakers, no icon in status bar):
/sys/devices/platform/nokia-av $ for n in autodetect detect eci0 eci1 madc ; do
echo -n $n: ; cat $n ; done
autodetect:1
detect:1
eci0:0
eci1:1
madc:6
Plugged in all the way (sound still routed to speakers, no headphones icon in
status bar, FM transmitter will start without complaining but I haven't tested
if it's actually transmitting)
/sys/devices/platform/nokia-av $ for n in autodetect detect eci0 eci1 madc ; do
echo -n $n: ; cat $n ; done
autodetect:1
detect:1
eci0:0
eci1:1
madc:5

If I then unplug the headphones, and plug them back in quickly, sound routes to
the headphones, icon appears in status area:
/sys/devices/platform/nokia-av $ for n in autodetect detect eci0 eci1 madc ; do
echo -n $n: ; cat $n ; done
autodetect:1
detect:1
eci0:0
eci1:1
madc:7

If you'd like me to test specific things, please tell me.

-John
Comment 7 Claudio Mezzasalma (reporter) 2009-11-29 22:04:07 UTC
Here are my outputs.

No headphones:

autodetect:1
detect:3
eci0:1
eci1:1
madec:1023

Creative headphones:

autodetect:1
detect:1
eci0:0
eci1:1
madec:7

Nokia WH-205 (N900 headset):
autodetect:1
detect:3
eci0:1
eci1:1
madec:439

Nokia HS-45 (N95 headset):
autodetect:1
detect:3
eci0:1
eci1:1
madec:655
Comment 8 Claudio Mezzasalma (reporter) 2009-11-29 22:08:23 UTC
(In reply to comment #7)

> Nokia HS-45 (N95 headset):
> autodetect:1
> detect:3
> eci0:1
> eci1:1
> madec:655

Sorry, there's a type here. Correct one is:
autodetect:1
detect:0
eci0:1
eci1:1
madc:655
Comment 9 Claudio Mezzasalma (reporter) 2009-11-29 22:33:32 UTC
Kernel version is Linux Nokia-N900-42-11 2.6.28-omap1
Comment 10 Claudio Mezzasalma (reporter) 2009-11-30 01:17:21 UTC
I managed to put input-events in the phone, and so intercepting events when
plugging various headphones. Here are the results.

Nokia WH-205:
EV_SW code=7 value=1
EV_SYN code=0 value=0

Creative HN-700:
EV_SW code=2 value=1
EV_SW code=7 value=1
EV_SYN code=0 value=0

Nokia HS-45 (N95 headset):
EV_SW code=2 value=1
EV_SW code=4 value=1
EV_SW code=7 value=1
EV_SYN code=0 value=0
Comment 11 Kasper Souren 2009-12-05 01:11:52 UTC
My DVD audio set is not giving sound through the original AV cable.  The N900
keeps on giving audio.  It seems related, but maybe this should be another bug?

dmesg|tail gives me stuff like:
[  157.307495] headphone (GPIO 177) is now disconnected
[  205.666900] headphone (GPIO 177) is now connected
[  380.330902] headphone (GPIO 177) is now disconnected
[  387.049682] headphone (GPIO 177) is now connected
Comment 12 Claudio Mezzasalma (reporter) 2009-12-05 01:21:01 UTC
(In reply to comment #11)
> My DVD audio set is not giving sound through the original AV cable.  The N900
> keeps on giving audio.  It seems related, but maybe this should be another bug?
> 
> dmesg|tail gives me stuff like:
> [  157.307495] headphone (GPIO 177) is now disconnected
> [  205.666900] headphone (GPIO 177) is now connected
> [  380.330902] headphone (GPIO 177) is now disconnected
> [  387.049682] headphone (GPIO 177) is now connected
> 


Let me understand: are you trying to see a DVD via N900 by connecting a DVD
Player output to the N900 jack via the A/V cable? If so, forget it: the jack is
supposed to output N900 audio and video to a screen, not the opposite
Comment 13 Kasper Souren 2009-12-05 01:27:40 UTC
Sorry, no, I'm just trying to get sound.  The DVD set is only connected to
speakers (and electricity).   (I worked around with the FM receiver right now
:)
Comment 14 Claudio Mezzasalma (reporter) 2009-12-07 15:06:30 UTC
Today I got a new N900 in replacement for the old one and the bundled headset
works perfectly, so I think it was an hardware related problem. I think we can
close this bug.
Comment 15 Anthony 2009-12-12 03:31:10 UTC
Is there a fix or workaround for this bug?

I'm having the same problem now and it may be a while before they have any more
in stock for me to exchange.
Comment 16 ShotWithAnSLR 2009-12-28 02:37:02 UTC
I have this same issue, my headset (OEM) works fine on other devices, but only
is detected in the x-terminal of the phone (no icon, no sound) How is this
listed as "resolved invalid"? It seems that multiple people have this issue.
Comment 17 Claudio Mezzasalma (reporter) 2009-12-28 02:47:22 UTC
This is not a software bug. It's most likely an hardware (phone or headset)
fault, since I resolved it returning the phone and having Nokia send me a new
one.
Comment 18 lancelot mak 2010-06-17 09:59:52 UTC
(In reply to comment #17)
> This is not a software bug. It's most likely an hardware (phone or headset)
> fault, since I resolved it returning the phone and having Nokia send me a new
> one.
> 

i guess this is always reproducible
pls try
settings => tv out => save

then your headset is gone
untill you re-flash

there is NOWAY to clear tv out state/setting
so n900 cannot differentiate between tv out cable or headset cable
thus, it's locked and become problematic
Comment 19 Andre Klapper maemo.org 2010-06-17 12:42:45 UTC
(In reply to comment #18)
> i guess this is always reproducible
> pls try
> settings => tv out => save

Not very helpful... If you have exact steps and exact information (hardware
etc) please check https://bugs.maemo.org/page.cgi?id=bug-writing.html .
Comment 20 Karsten / MrPingu 2013-02-03 00:46:14 UTC
I experienced this issue for the first time in ~2 years.
Dmesg showed exactly what it should: Headphones connected/disconnected
However audio wasn't routed through headphones, nor the icon in statusbar
showed up. So higher-level sw didn't recognize the headphones. These headphones
worked before and a power cycle of the device, made it function like expected.
Something in this bug is not invalid...