No sound after startup (audio device shown as Dummy Output)

Bug #933209 reported by prusswan
68
This bug affects 14 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Invalid
Undecided
Unassigned
dbus (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

(testing from the ubuntu audio dev ppa)

Running sudo alsa force-reload (or sudo killall pulseaudio) seems to be current workaround to get it to work

hardware info (when sound is working):
Code:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
 Subsystem: Dell Device 02bb
 Flags: bus master, fast devsel, latency 0, IRQ 48
 Memory at f6500000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: snd_hda_intel
 Kernel modules: snd-hda-intel
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf6500000 irq 49'
   Mixer name : 'IDT 92HD81B1C5'
   Components : 'HDA:111d76d5,102802bb,00100402'
   Controls : 17
   Simple ctrls : 9
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 10.04.3 LTS "Lucid Lynx" - Release amd64 (20110720.1)
Package: alsa-driver (not installed)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_SG.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-16.25-generic 3.2.6
Tags: precise
Uname: Linux 3.2.0-16-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-02-06 (10 days ago)
UserGroups: adm admin cdrom dialout lpadmin netdev plugdev sambashare
dmi.bios.date: 12/17/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 0T052J
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnDellInc.:bvrA06:bd12/17/2009:svnDellInc.:pnVostro1320:pvrNull:rvnDellInc.:rn0T052J:rvr:cvnDellInc.:ct8:cvrN/A:
dmi.product.name: Vostro 1320
dmi.product.version: Null
dmi.sys.vendor: Dell Inc.

prusswan (prusswan)
tags: added: alsa-1.0.25
description: updated
Revision history for this message
Luke Yelavich (themuso) wrote :

Please run apport-collect 933209 so we can get some information about your hardware, preferably before you reload ALSA to get audio working again.

Please also get a log from PulseAudio: https://wiki.ubuntu.com/PulseAudio/Log.

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
prusswan (prusswan) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected precise
description: updated
Revision history for this message
prusswan (prusswan) wrote : AplayDevices.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : ArecordDevices.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : BootDmesg.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : CurrentDmesg.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : PciMultimedia.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : PulseSinks.txt

apport information

Revision history for this message
prusswan (prusswan) wrote : PulseSources.txt

apport information

Revision history for this message
prusswan (prusswan) wrote :

added pulseaudio log (following the steps to produce the log actually got the sound working)

prusswan (prusswan)
Changed in alsa-driver (Ubuntu):
status: Incomplete → New
Revision history for this message
prusswan (prusswan) wrote :

recently discovered that `sudo killall pulseaudio` seems to get the sound back somehow. Not sure if problem lies with pulseaudio or alsa-driver

prusswan (prusswan)
description: updated
Revision history for this message
David Henningsson (diwic) wrote :

My suspicion about this is that, at startup, some other program (i e, not pulseaudio) is locking the sound card. As a result, pulseaudio does not detect the card correctly.

Not sure how to figure this out in the best way though.

What about the login session (lightdm/gdm/etc) - does sound work there?

Revision history for this message
prusswan (prusswan) wrote :

nope, no sound in login session. I do hope this gets fixed (I agree it is probably a matter of looking into the right places) even though the crude workaround is available

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
David Henningsson (diwic) wrote :

Could you see if it's possible to run "sudo fuser -v /dev/snd/*" right after startup, or maybe switch to a VT and execute it there? With some luck we might catch the offending application.

Changed in alsa-driver (Ubuntu):
status: Confirmed → Incomplete
affects: pulseaudio → null
Revision history for this message
prusswan (prusswan) wrote :

This is what I see when I had to do a killall, I thought the pcm devices are interfering but they seem to be started again after the killall, with sound playing.

/dev/snd/controlC0: 11048
/dev/snd/pcmC0D0c: 11048m
/dev/snd/pcmC0D0p: 11048m
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo killall pulseaudio
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
/dev/snd/controlC0: 11079
/dev/snd/pcmC0D0c: 11079m
/dev/snd/pcmC0D0p: 11079m
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
/dev/snd/controlC0: 11079
/dev/snd/pcmC0D0c: 11079m
/dev/snd/pcmC0D0p: 11079m
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
/dev/snd/controlC0: 11079
/dev/snd/pcmC0D0c: 11079m
/dev/snd/pcmC0D0p: 11079m
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
/dev/snd/controlC0: 11079
user@user-laptop:~/Desktop/Support/r8168-8.027.00$ sudo fuser -f /dev/snd/*
/dev/snd/controlC0: 11079

Changed in alsa-driver (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
prusswan (prusswan) wrote :

I also tried to hunt down the errant process (using the idea from http://askubuntu.com/questions/25622/my-sound-stopped-working-today-how-can-i-fix-it):

user@user-laptop:~/Desktop$ sudo fuser -f /dev/snd/*
/dev/snd/controlC0: 1075
/dev/snd/pcmC0D0p: 1075m
user@user-laptop:~/Desktop$ ps aux | grep 1075
106 1075 0.8 0.1 330812 5220 ? Sl 11:18 0:04 /usr/bin/pulseaudio --start --log-target=syslog

so I didn't find any other process name there, and below is a snippet of what I think would be relevant from /var/log/syslog:

Apr 12 11:18:46 user-laptop NetworkManager[651]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Apr 12 11:18:46 user-laptop NetworkManager[651]: <info> Policy set 'user (eth1)' (wlan0) as default for IPv4 routing and DNS.
Apr 12 11:18:46 user-laptop NetworkManager[651]: <info> Activation (wlan0) successful, device activated.
Apr 12 11:18:46 user-laptop NetworkManager[651]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) complete.
Apr 12 11:18:46 user-laptop dbus[625]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Apr 12 11:18:46 user-laptop dbus[625]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 12 11:18:46 user-laptop avahi-daemon[652]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::c617:feff:fea4:a3dc.
Apr 12 11:18:46 user-laptop avahi-daemon[652]: New relevant interface wlan0.IPv6 for mDNS.
Apr 12 11:18:46 user-laptop avahi-daemon[652]: Registering new address record for fe80::c617:feff:fea4:a3dc on wlan0.*.
Apr 12 11:18:55 user-laptop ntpdate[1263]: adjust time server 91.189.94.4 offset -0.105939 sec
Apr 12 11:19:07 user-laptop dbus[625]: [system] Failed to activate service 'org.freedesktop.ConsoleKit': timed out
Apr 12 11:19:07 user-laptop rtkit-daemon[1077]: Warning: PolicyKit call failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Apr 12 11:19:07 user-laptop accounts-daemon[1153]: started daemon version 0.6.15
Apr 12 11:19:07 user-laptop pulseaudio[1075]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 12 11:19:07 user-laptop pulseaudio[1075]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

Revision history for this message
prusswan (prusswan) wrote :

I noted that pulseaudio is started by 106 on startup, is this normal? After the kill it is started by my userid:

user 3404 4.2 0.1 399304 5576 ? S<l 11:41 0:01 /usr/bin/pulseaudio --start --log-target=syslog

Revision history for this message
prusswan (prusswan) wrote :

If it matters, the lines below were added to /var/log/syslog after kill pulseaudio (new process is 3404)

Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Successfully made thread 3397 of process 1758 (n/a) owned by '1000' RT at priority 5.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Supervising 2 threads of 1 processes of 1 users.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Successfully made thread 3398 of process 1758 (n/a) owned by '1000' RT at priority 5.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Supervising 3 threads of 1 processes of 1 users.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Successfully made thread 3404 of process 3404 (n/a) owned by '1000' high priority at nice level -11.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Supervising 1 threads of 1 processes of 1 users.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Successfully made thread 3405 of process 3404 (n/a) owned by '1000' RT at priority 5.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Supervising 2 threads of 1 processes of 1 users.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Successfully made thread 3406 of process 3404 (n/a) owned by '1000' RT at priority 5.
Apr 12 11:41:30 user-laptop rtkit-daemon[1077]: Supervising 3 threads of 1 processes of 1 users.

Revision history for this message
David Henningsson (diwic) wrote :

Yes, that's helpful. This one seems to be the first sign of failure:

> dbus[625]: [system] Failed to activate service 'org.freedesktop.ConsoleKit': timed out

Without consolekit, PulseAudio won't have access to sound cards.

Second, this:

> pulseaudio[1075]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to
> autolaunch a dbus-daemon without a $DISPLAY for X11

It looks like pulseaudio is first being started inside a console, or some other context that can't access X.

I'm really not an expert on the consolekit/dBus stuff, but it looks like PulseAudio is not the primary source of failure here.

> I noted that pulseaudio is started by 106 on startup, is this normal?

It would be normal to have it started by lightdm at startup, but I don't know if this is the same as "106".

prusswan (prusswan)
affects: null → dbus
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
prusswan (prusswan)
affects: dbus → ubuntu
Changed in dbus (Ubuntu):
status: New → Confirmed
prusswan (prusswan)
affects: ubuntu → dbus (Ubuntu)
Changed in dbus (Ubuntu):
status: New → Confirmed
Revision history for this message
David Henningsson (diwic) wrote :

I'm marking this as invalid (for alsa-driver, not for dbus) based on the original reporter's feedback - if you're not having the same dbus problems, please file a new bug instead. Thanks.

Changed in alsa-driver (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
manzur (sl-solaris) wrote :

no audio

Revision history for this message
Vladimir (neutravlad) wrote :
Revision history for this message
no!chance (ralf-fehlau) wrote :

After upgrade to Ubuntu14.04 the sound device is broken. There is only a dummy output available. Ubuntu12.04 worked fine.

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.