ALSA hangs on shutdown - Intrepid Ibex on Dell Inspiron 1525

Bug #294160 reported by pyjamashark
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Undecided
Ubuntu Audio Team

Bug Description

On a fresh install of Ubuntu Intrepid Ibex on a Dell Inspiron 1525, the audio worked well. However after applying the first updates received (to linux-base files, kernel etc) audio no longer works. Whenever a sound should be played the speakers/ earphones only make a crackling sound. Also, the shutdown process hangs - this occurs at the line 'shutting down ALSA'

My current kernel (with non working audio) is 2.6.27-7-generic.

Any help or advice would be very much appreciated,

Revision history for this message
pyjamashark (pyjamashark) wrote :

hmmm, this looks like it might be related to https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/274995
I'm not sure if the problem is related to ALSA, pulseaudio, network or the kernel! AAaahh

Revision history for this message
goto (gotolaunchpad) wrote :

I have exactly the same problem. I did not do anything extraordinary. Am I allowed to set the status to 'confirmed'?

Mainboard: Gigabyte GA-MA78G-DS3H (rev. 1.0)
$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (int gfx)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3200 Graphics
01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
03:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)

$ uname -a
Linux xxx-desktop.local 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux

Any questions?

Revision history for this message
pyjamashark (pyjamashark) wrote :

Hey bugmenot - ja confirm it if you can - I also assigned the bug to Luke Yelavich who seems to know alot about this stuff. I hope he can help. So I managed to fix the shuting down issue using the following (taken from another post):

Edit /etc/init.d/alsa-utils FIXED this bug for me.
The solution of Juliano in the answer: https://answers.launchpad.net/ubuntu/+question/49799 works for me.
Intrepid shut down fine now.
Thanks very much.

Solution in the answer:
sudo gedit /etc/init.d/alsa-utils

The file opens in Gedit and around the line 353 you'll find the
instruction "stop)". Below this instruction you should add these two
instructions:

ifconfig wlan0 down
ifconfig eth0 down

So, the file should be this way:

stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0

However I am still having the sound issue.
Chao Joe

Revision history for this message
pyjamashark (pyjamashark) wrote :

Just to clarify the sound problem in system>preferences>sound - if I put all options on
autodetect and press 'test sound' I hear a crackling/static sort of
noise, the same if I change sound playback to ALSA or pulseaudio.
However if sound playback is changed to OSS I hear a perfect test tone.

I have tried the methods described here: HOWTO: PulseAudio Fixes
(distilled) - *Updated, Call For Testing!* -
http://ubuntuforums.org/showthread.php?t=866965 which it seems Luke
is involved with. Alas this has not helped at all.

I'm currently using a dell inspiron 1525 - the ones dell ship with
ubuntu preinstalled so I imagine this could potentially effect quite a
few ubuntu users!

Revision history for this message
goto (gotolaunchpad) wrote :

Hey, thanks for the help!
I can shut down now, and with OSS it works in fact fine, but why is this the case? I never installed OSS or something like this? Even a sudo dpkg-reconfigure linux-sound-base did not help.
Hopefully this will be fixed soon.

Revision history for this message
pyjamashark (pyjamashark) wrote :

Ok I know this sounds weird but I recently installed kubuntu ontop of the gnome distribution.
ie in the terminal I typed: sudo apt-get install kubuntu

once that had been installed I restarted the laptop and logged into kde. (I made kdm the default display manager)
And the sound worked perfectly in that environment.
What is even stranger is that when I logged into gnome again all my sound issues had been fixed there too.
Very strange.
Cheers,
joe

Revision history for this message
goto (gotolaunchpad) wrote :

This is really strange! Does the sound still work after removing kubuntu again? :D

Revision history for this message
suhrawardi (jarra) wrote :

In reply to bug report #296486, which seems to be a duplicate of this one.
Yes, it seems to be the same problem, although the shutdown process doesn't hang when shutting down.

I changed the system sound preferences to OSS, and that does enable audio at least for VLC player, but the system sounds like login and logout are still a very soft crackling.
So, that is only a partial workaround.

Thanks

Revision history for this message
pyjamashark (pyjamashark) wrote :

ja the shutdown thing is sorted, so in terms of the sounds as I said above installing kubuntu on top of gnome seemed to sort that out - how I have no idea. Not exactly a fix and quite a drastic work around.
But if this is really irritating you I would suggest trying that.
Cheers,
Joe
 ps haven't tried unistalling kubuntu - kind of like having both around

Revision history for this message
suhrawardi (jarra) wrote :

It's a bit of a drastic workaround. I rather don't install Kubuntu. Like gnome better.
But thanks!

Btw, also flash sound is still not working.

Revision history for this message
pyjamashark (pyjamashark) wrote :

well I still use gnome - what i would do is install kubuntu - then uninstall it using synaptic after the sound has started working! otherwise wait around until someone in the know works out a proper solution

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 294160] Re: audio only crackles and ALSA hangs on shutdown - Intrepid Ibex on Dell Inspiron 1525

 assignee ubuntu-audio

Revision history for this message
goto (gotolaunchpad) wrote : Re: audio only crackles and ALSA hangs on shutdown - Intrepid Ibex on Dell Inspiron 1525

Any news on this?

I just found this in my /var/log/messages:
Nov 21 14:26:37 x-desktop kernel: [ 16.821311] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Nov 21 14:26:37 x-desktop kernel: [ 16.886865] HDA Intel 0000:01:05.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[...]
Nov 21 14:27:04 x-desktop pulseaudio[6074]: ltdl-bind-now.c: Failed to find original dlopen loader.
Nov 21 14:27:04 x-desktop pulseaudio[6076]: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
Nov 21 14:27:04 x-desktop pulseaudio[6076]: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
Nov 21 14:27:04 x-desktop kernel: [ 47.595881] hda-intel: Invalid position buffer, using LPIB read method instead.

On OSS (although I selected alsa) do many sounds not work (in different games), so I'd like to see this bug fixed. :$
If I can help, just say it! :)

Revision history for this message
Daniel T Chen (crimsun) wrote :

Please file separate bugs for the two issues in this report. I'm marking this one a duplicate of bug 274995, because it's the more serious one. As for the crackling, it's possibly a pulseaudio issue; need more info.

Revision history for this message
goto (gotolaunchpad) wrote :

I think those two issues have something to do with each other, because they were intruduced with the same update iirc.

Shall I really open a new bug report?

Revision history for this message
Robb Topolski (funchords) wrote :

@bugmenot,

I suggest a new bug report.

Bug 274995 is narrowing to an issue commonly seen during shutdown where 2-3 minute delays also sometimes occur. The crackling quality is usually not a symptom. Any fix for 274995 is unlikely to fix the crackling issue. Also, 274995 is a huge mess and introducing one more side issue to it would likely cause more harm than good.

You can certainly mention in a new bug report that you also suffered from the effects of 274995, but if you do, I suggest that you also mention that it is a different issue near resolution and the crackling sound is not fixed by it.

Thanks!

Robb Topolski

Revision history for this message
goto (gotolaunchpad) wrote :

I just found out that there are already a few entries about this bug, e.g. bug 288039.
There is also the solution (at least for me):
"alsamixer -Dhw" in a terminal and then set PCM from zero to something else (I set it to 100).
Hopefully this gets fixed soon, too. :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.