speakers are unmuted after resume from suspend while headphones are plugged in
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Binary package hint: alsa-utils
Headphone jack sense doesn't work properly on HP Compaq nx6325. After resuming from suspend it leaves laptop speakers turned on, while headphones/external speakers are still connected to the headphone jack. Then the sound can be heard from both the speakers and the headphones. The problem appears after few suspend/resume cycles.
I tried putting
options snd-hda-intel model=hp position_fix=1 enable=yes
at the end of file
/etc/
but it didn't help much - the problem comes back after few suspend/resume cycles - then only system restart helps. (I don't use this trick currently)
I've noticed that when I close Amarok/
Brian Murray (brian-murray) wrote : Re: [Bug 101986] Headphone jack sense problem in HP laptop | #1 |
Changed in alsa-utils: | |
assignee: | nobody → brian-murray |
status: | Unconfirmed → Needs Info |
Przemek K. (azrael) wrote : Re: Headphone jack sense problem in HP laptop | #2 |
Przemek K. (azrael) wrote : | #3 |
Przemek K. (azrael) wrote : | #4 |
Sometimes I have a reverse problem - when I have a headphone plug plugged in to the headphone jack right from the beginning of the system boot, the headphones work ok but when I unplug them the laptop speakers are mute.
Przemek K. (azrael) wrote : | #5 |
Another problem: after returning from hibernation the laptop speakers were turned on even though the headphones were plugged in.
Changed in alsa-utils: | |
assignee: | brian-murray → ubuntu-audio |
status: | Needs Info → Confirmed |
Przemek K. (azrael) wrote : | #6 |
Also when I boot without headphones plugged, the laptop speakers stay turned on when I plug the headphones later (I can hear the sound in both the headphones and the speakers). This is very annoying.
Przemek K. (azrael) wrote : | #7 |
I've installed a ck-patched kernel from http://
I don't know which of the ck-patches is responsible for the fix.
Przemek K. (azrael) wrote : | #8 |
Ok, cancel that - the error still appears sometimes.
Przemek K. (azrael) wrote : | #9 |
I've finally found a solution - removing snd_hda_intel before sleep.
You have to put:
MODULES=
in /etc/default/
(near "# Add modules to this list to have them removed before suspend and reloaded" line)
Przemek K. (azrael) wrote : | #10 |
This solution still doesn't solve it completely - the problem is back after few suspendtoram/resume cycles.
Przemek K. (azrael) wrote : | #11 |
This problem still exists on gutsy.
Przemek K. (azrael) wrote : | #12 |
I don't think this bug is a duplicate of bug #94566 - my problem appears only after resuming from suspend.
description: | updated |
Changed in alsa-driver: | |
status: | Confirmed → New |
Przemek K. (azrael) wrote : | #13 |
Przemek K. (azrael) wrote : | #14 |
Przemek K. (azrael) wrote : | #15 |
description: | updated |
Przemek K. (azrael) wrote : | #16 |
I've added new logs to show the current image of my situation.
Przemek K. (azrael) wrote : | #17 |
Also I'm not unloading the snd-hda-intel module before sleep anymore - it didn't help.
Daniel T Chen (crimsun) wrote : | #18 |
Is this symptom still reproducible in 8.10 alpha?
Changed in alsa-driver: | |
status: | New → Incomplete |
Javier Jardón (jjardon) wrote : | #19 |
We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!
Changed in linux: | |
status: | Incomplete → Invalid |
Prunus dulcis (prunus-dulcis) wrote : | #20 |
- audio-debug-messages.txt Edit (11.4 KiB, text/plain)
I have the same problem on a Thinkpad X41 tablet with Ubuntu 8.10.
Attached are the hopefully sufficient logs from https:/
Changed in linux: | |
status: | Invalid → New |
NicoLehmann (ekorn) wrote : | #21 |
- alsa-info.txt Edit (29.6 KiB, text/plain)
I have a similar problem on a Thinkpad X41 with 8.10 and also with 9.10. After suspending two times the headphone jack is not functional any more. All sound is played throw the laptop speaker.
Should I open a new bug for this?
peteoheat (mark-thestevensons) wrote : | #22 |
I have exactly the same problem on my Thinkpad X41. I had it in 8.10 and still have it in Jaunty. It's reproducible that on the 2nd resume from suspend the sound fails to go to the headphones when they are connected and remains coming out of the speakers.
My alsa info output..
http://
Changed in linux (Ubuntu): | |
assignee: | Ubuntu Audio Team (ubuntu-audio) → nobody |
xteejx (xteejx) wrote : | #23 |
In Jaunty, please run "apport-collect 101986" without quotes, and let it pull in the required information. This should help in debugging the problem. Thank you.
Changed in linux (Ubuntu): | |
status: | New → Incomplete |
peteoheat (mark-thestevensons) wrote : apport-collect data | #24 |
Architecture: i386
Dependencies:
DistroRelease: Ubuntu 9.04
Package: linux None [modified: /var/lib/
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=en_GB.UTF-8
Uname: Linux 2.6.28-11-generic i686
UserGroups:
peteoheat (mark-thestevensons) wrote : Re: [Bug 101986] Re: speakers are unmuted after resume from suspend while headphones are plugged in | #25 |
I've run that.
Regards
mark
On Thu, 2009-06-04 at 09:46 +0000, Teej wrote:
> apport-collect 101986
xteejx (xteejx) wrote : | #26 |
Setting Triaged, Low. There should be enough information now so I'll let the developers handle this from here. If they need any more information do not hesitate to supply it to them. Thank for reporting this.
Changed in linux (Ubuntu): | |
importance: | Undecided → Low |
status: | Incomplete → Triaged |
Luke Yelavich (themuso) wrote : Re: [Bug 101986] Re: speakers are unmuted after resume from suspend while headphones are plugged in | #27 |
You should actually run apport-collect -p alsa-base 101986
peteoheat (mark-thestevensons) wrote : apport-collect data | #28 |
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'ICH6'/'Intel ICH6 with AD1981B at irq 22'
Mixer name : 'Analog Devices AD1981B'
Components : 'AC97a:41445374'
Controls : 26
Simple ctrls : 18
DistroRelease: Ubuntu 9.04
Package: alsa-base 1.0.18.
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=en_GB.UTF-8
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
peteoheat (mark-thestevensons) wrote : | #29 |
peteoheat (mark-thestevensons) wrote : | #30 |
peteoheat (mark-thestevensons) wrote : | #31 |
peteoheat (mark-thestevensons) wrote : | #32 |
peteoheat (mark-thestevensons) wrote : | #33 |
peteoheat (mark-thestevensons) wrote : | #34 |
peteoheat (mark-thestevensons) wrote : | #35 |
peteoheat (mark-thestevensons) wrote : | #36 |
peteoheat (mark-thestevensons) wrote : | #37 |
peteoheat (mark-thestevensons) wrote : | #38 |
Witold Baryluk (baryluk) wrote : | #39 |
Just wanted to add that i have the same problem on Debian Lenny, with custom 2.6.30-rc2 kernel. After fresh reboot everything works, after resume headphone output is not functionall, sound is going throught internal speaker.
Henk Boom (henk) wrote : | #40 |
I have the same problem, Thinkpad X41 Tablet with Jaunty, after suspending even once all sound is emitted through the internal speakers, headphones are completely ignored (as in, no sound at all). Rebooting or hibernating to disk/resuming fix the issue.
Henk Boom (henk) wrote : apport-collect data | #41 |
Architecture: i386
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/
Card0.Amixer.info:
Card hw:0 'ICH6'/'Intel ICH6 with AD1981B at irq 22'
Mixer name : 'Analog Devices AD1981B'
Components : 'AC97a:41445374'
Controls : 26
Simple ctrls : 18
DistroRelease: Ubuntu 9.04
Package: alsa-base 1.0.18.
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_CA.UTF-8
Uname: Linux 2.6.28-13-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Henk Boom (henk) wrote : | #42 |
Henk Boom (henk) wrote : | #43 |
Henk Boom (henk) wrote : | #44 |
Henk Boom (henk) wrote : | #45 |
Henk Boom (henk) wrote : | #46 |
Henk Boom (henk) wrote : | #47 |
Henk Boom (henk) wrote : | #48 |
Witold Baryluk (baryluk) wrote : | #49 |
I forgot to add in my comment #39 that problem is with IBM Thinkpad X41 Tablet. I yestarday installed 2.6.31-rc6 and will test it on Debian Lenny.
Özgür (ozgurkinaci) wrote : | #50 |
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: AD198x Analog [AD198x Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: AD198x Analog [AD198x Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: neresis 2030 F...m pulseaudio
/dev/snd/pcmC0D0c: neresis 2030 F...m pulseaudio
Card0.Amixer.info:
Card hw:0 'SB'/'HDA ATI SB at 0xc8100000 irq 16'
Mixer name : 'Analog Devices AD1981'
Components : 'HDA:11d41981,
Controls : 11
Simple ctrls : 9
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: alsa-base 1.0.20+
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
ProcVersionSign
Uname: Linux 2.6.31-13-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Özgür (ozgurkinaci) wrote : AlsaDevices.txt | #51 |
Özgür (ozgurkinaci) wrote : BootDmesg.txt | #52 |
Özgür (ozgurkinaci) wrote : Card0.Amixer.values.txt | #53 |
Özgür (ozgurkinaci) wrote : Card0.Codecs.codec.0.txt | #54 |
Özgür (ozgurkinaci) wrote : Card0.Codecs.codec.1.txt | #55 |
Özgür (ozgurkinaci) wrote : CurrentDmesg.txt | #56 |
Özgür (ozgurkinaci) wrote : Dependencies.txt | #57 |
Özgür (ozgurkinaci) wrote : PciMultimedia.txt | #58 |
Özgür (ozgurkinaci) wrote : XsessionErrors.txt | #59 |
tags: | added: apport-collected |
Brandon Sandrowicz (bsandrow) wrote : | #60 |
I can confirm that I have the exact same problem with the headphones jack. After a fresh reboot it continue to work after a suspend-
My laptop is a Thinkpad X41 (non-tablet version). To be specific, I'm using the snd-intel8x0 driver, *not* the snd-hda-intel driver. Currently running Jaunty.
Through searching I have found this: https:/
There is no mention of *why* it needs to be blacklisted. Is it possible that due to changes in the past 3+ years this blacklisting is no longer necessary? At one point I pulled down the alsa source and trying to grok it for some sort of obvious error, but I couldn't make heads or tails of it.
My suspicion is that this is a hardware/driver issue. The kernel isn't issuing any errors or warnings, so maybe after waking up the second time some module isn't sending the right messages/flipping the right bits with respect to the hardware?
Daniel T Chen (crimsun) wrote : Re: [Bug 101986] Re: speakers are unmuted after resume from suspend while headphones are plugged in | #61 |
On Fri, Oct 16, 2009 at 6:40 PM, Brandon Sandrowicz <email address hidden> wrote:
> Through searching I have found this: https:/
> /kernel-
>
> There is no mention of *why* it needs to be blacklisted. Is it possible
> that due to changes in the past 3+ years this blacklisting is no longer
> necessary? At one point I pulled down the alsa source and trying to
> grok it for some sort of obvious error, but I couldn't make heads or
> tails of it.
Well, I'll explain here (that's my patch):
Many of those AD19xxB codecs erroneously expose X Jack Sense mixer
elements via the driver. You have to disable them (or mute them using
alsamixer if they're exposed) to get ANY audible analog output. As far
as I know, that remains the case and is completely orthogonal to your
issue, BUT I can't tell without seeing the contents of your
/proc/asound/
Brandon Sandrowicz (bsandrow) wrote : | #62 |
I'll look into getting you that output sometime this weekend.
Brandon Sandrowicz (bsandrow) wrote : | #63 |
Brandon Sandrowicz (bsandrow) wrote : | #64 |
- 0-fresh-reboot-unmuted-volume-up.txt Edit (1.6 KiB, text/plain)
The volume had been previously muted, so I unmuted it and turned it up so I could here my test mp3 through vlc. (note that I axed VLC before each sleep-wake cycle just in case access to the driver was the cause, but pulse audio was still running so I don't think that it would have mattered without shutting down pulse audio)
Brandon Sandrowicz (bsandrow) wrote : | #65 |
- 1-after-first-sleep-wake-cycle.txt Edit (1.6 KiB, text/plain)
I got an empty 'diff -U10' between this one and the previous one.
Brandon Sandrowicz (bsandrow) wrote : | #66 |
- 2-after-second-sleep-wake-cycle.txt Edit (1.6 KiB, text/plain)
Here is the output of 'diff -U10 /home/bjs/
--- /home/bjs/
+++ /home/bjs/
@@ -23,21 +23,21 @@
PCM front DAC : 44100Hz
PCM ADC : 44100Hz
AD18XX configuration
Unchained : 0x1000,
Chained : 0x0000,
/proc/
0:00 = 0090
- 0:02 = 0b0b
+ 0:02 = 0909
0:04 = 0505
0:06 = 0006
0:08 = 0000
0:0a = 0000
0:0c = 801f
0:0e = 801f
0:10 = 9f9f
0:12 = 0606
0:14 = 0000
0:16 = 9f9f
Looks like one of the registers was changed.
Brandon Sandrowicz (bsandrow) wrote : | #67 |
is there any way for me to cat something to ac97#0-0+regs to flip that value back and see if it 'magically' works?
Brandon Sandrowicz (bsandrow) wrote : | #68 |
After a little more digging, answered my own question. I would need to recompile the kernel with ALSA debugging enabled to be able to mess with the registers.
[Source] Search for "AC97 Sound" here: http://
Brandon Sandrowicz (bsandrow) wrote : | #69 |
Just discovered that suspend-to-disk 'fixes' this (headphones start working again) but it immediately stops working again after the first suspend-to-ram that I do (unlike from a fresh boot).
I'm suspecting something like Bug 151111 might be at fault. I tried to follow the directions for compiling the modules against the current kernel, but ended up with a 'invalid module format' when trying to insert them. I had to revert to my previous stock copies.
Why the initial s2ram after a fresh boot works is still up in the air, but it seems like this could be an issue with powering something down/up that gets lost and a complete power down/up of the system is needed (cold boot/reboot/s2disk) to reset it.
mohannad (lenpath) wrote : | #70 |
I have the same problem with a Thinkpad x41 tablet and Ubuntu 9.04.
As hibernating fixes the problem till the next suspend, I swapped off my swap partition to prevent the complete hibernating and the complete power down.
Hibernating still fixes the problem without a power down.
the contents in /proc/asound/
this means that changing the values of the registers wont be the solution of the problem.
I can't follow what is the difference between a suspend/resume and a not-complete hibernating for the hardware or the kernel module.
inspecting the kernel messages doesn't show strange behavior between suspend/resume and not-complete hibernating thus the headphone jack is working (and repaired) after hibernating and not functional after the suspend/resume !
Brandon Sandrowicz (bsandrow) wrote : | #71 |
> I can't follow what is the difference between a suspend/resume and a
> not-complete hibernating for the hardware or the kernel module.
Not sure, but I'm sure that preparing for a s2disk is quite different
than a s2ram since the kernel shuts down (as the computer is
completely off) and dumps its state to disk.
If I have some time I'll look at the alsa code, but last time I
attempted to do so I couldn't make heads or tails of it which is why
I'm hoping someone knowledgeable can help out on this issue.
Özgür (ozgurkinaci) wrote : apport-collect data | #72 |
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: AD198x Analog [AD198x Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: AD198x Analog [AD198x Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: neresis 2578 F...m pulseaudio
/dev/snd/pcmC0D0c: neresis 2578 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'SB'/'HDA ATI SB at 0xc8100000 irq 16'
Mixer name : 'Analog Devices AD1981'
Components : 'HDA:11d41981,
Controls : 11
Simple ctrls : 9
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=
MachineType: Hewlett-Packard HP Compaq 6715s (GR654EA#ACB)
NonfreeKernelMo
Package: linux (not installed)
PccardctlIdent:
Socket 0:
no product info available
PccardctlStatus:
Socket 0:
no card
ProcCmdLine: root=UUID=
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
ProcVersionSign
RelatedPackageV
linux-
linux-firmware 1.24
RfKill:
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin netdev plugdev sambashare
WpaSupplicantLog:
dmi.bios.date: 07/16/2007
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68YTT Ver. F.07
dmi.board.name: 30C2
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 71.28
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP Compaq 6715s (GR654EA#ACB)
dmi.product.
dmi.sys.vendor: Hewlett-Packard
Özgür (ozgurkinaci) wrote : AlsaDevices.txt | #73 |
Özgür (ozgurkinaci) wrote : BootDmesg.txt | #74 |
Özgür (ozgurkinaci) wrote : Card0.Amixer.values.txt | #75 |
Özgür (ozgurkinaci) wrote : Card0.Codecs.codec.0.txt | #76 |
Özgür (ozgurkinaci) wrote : Card0.Codecs.codec.1.txt | #77 |
Özgür (ozgurkinaci) wrote : CurrentDmesg.txt | #78 |
Özgür (ozgurkinaci) wrote : IwConfig.txt | #79 |
Özgür (ozgurkinaci) wrote : Lspci.txt | #80 |
Özgür (ozgurkinaci) wrote : Lsusb.txt | #81 |
Özgür (ozgurkinaci) wrote : PciMultimedia.txt | #82 |
Özgür (ozgurkinaci) wrote : ProcCpuinfo.txt | #83 |
Özgür (ozgurkinaci) wrote : ProcInterrupts.txt | #84 |
Özgür (ozgurkinaci) wrote : ProcModules.txt | #85 |
Özgür (ozgurkinaci) wrote : UdevDb.txt | #86 |
Özgür (ozgurkinaci) wrote : UdevLog.txt | #87 |
Özgür (ozgurkinaci) wrote : WifiSyslog.txt | #88 |
Özgür (ozgurkinaci) wrote : XsessionErrors.txt | #89 |
Daniel T Chen (crimsun) wrote : Re: [Bug 101986] apport-collect data | #90 |
@neresis Are you sure this is the same bug involving the same
hardware? If in doubt, please file a separate bug.
Thomas Hotz (thotz-deactivatedaccount) wrote : | #91 |
Your Ubuntu version is EOL. Does this still happen under supported Ubuntu versions?
Changed in linux (Ubuntu): | |
status: | Triaged → Incomplete |
Launchpad Janitor (janitor) wrote : | #92 |
[Expired for linux (Ubuntu) because there has been no activity for 60 days.]
Changed in linux (Ubuntu): | |
status: | Incomplete → Expired |
Thanks for taking the time to report this bug and helping to make Ubuntu /help.ubuntu. com/community/ DebuggingSoundP roblems ? Thanks in
better. Could you please add the output requested at
https:/
advance.
status needsinfo
assignee <email address hidden>