Jaunty: No sound cards any more due to broken ACL management

Bug #334299 reported by Dave Morley
132
This bug affects 6 people
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Fix Released
High
Martin Pitt
Jaunty
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: pulseaudio

Jaunty has no audio output available on the 20090225 daily cd this work fine on the 20090224 cd though

Revision history for this message
Dave Morley (davmor2) wrote :
Revision history for this message
Dave Morley (davmor2) wrote :
Revision history for this message
Dave Morley (davmor2) wrote :

 0 [CK804 ]: NFORCE - NVidia CK804
                      NVidia CK804 with ALC850 at irq 22

Is the contents of /proc/asound/cards

Revision history for this message
Dave Morley (davmor2) wrote :

Screen shot of mixer control

Revision history for this message
Alan Jenkins (alan-james-jenkins) wrote :

This is the output of pulseaudio when it is ran:

Revision history for this message
Alan Jenkins (alan-james-jenkins) wrote :
Revision history for this message
Alan Jenkins (alan-james-jenkins) wrote :

alan@alan-laptop:~$ aplay -l
aplay: device_list:217: no soundcards found...

Revision history for this message
Alan Jenkins (alan-james-jenkins) wrote :

output of running aplay -l as root:

Revision history for this message
Alan Jenkins (alan-james-jenkins) wrote :

running pulseaudio under root and then using paplay to play a sound file works. Seems to be some kind of permission change somewhere preventing normal pulseaudio users from accessing the sound cards.

To test this yourself run:

sudo -i
pulseaudio &
paplay /usr/share/sounds/question.wav

You should hear a sound.

Revision history for this message
Martin Pitt (pitti) wrote : Re: Jaunty: No sound cards any more

It seems that suddenly hal's auto-ACLs got broken. I still have a ConsoleKit session, but I don't get any auto-ACLs any more, not on /dev/snd/*, and neither on /dev/dri/card0 (thus no hardware rendering any more either).

Weird, hal's ACL handling didn't really change in any way. I'll investigate.

Changed in pulseaudio:
assignee: nobody → pitti
importance: Undecided → High
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Seems the latest hal got misbuilt somehow:

Run started hal-acl-tool (20000) (0)
! full path is 'hal-acl-tool', program_dir is '(null)'

Revision history for this message
Martin Pitt (pitti) wrote :

This should be an alpha-5 blocker IMHO, since it doesn't just break sound, but also hardware rendering (/dev/dri), scanners, photo cameras, etc.

Changed in hal:
milestone: none → jaunty-alpha-5
Revision history for this message
Martin Pitt (pitti) wrote :

I confirmed that a manual setfacl invocation works, and sound devices are present, so it is not a kernel bug. Also, downgrading to the previous hal makes things work again.

Revision history for this message
Martin Pitt (pitti) wrote :

$ debdiff hal_0.5.12~rc1+git20090204-0ubuntu1_i386.deb hal_0.5.12~rc1+git20090204-0ubuntu2_i386.deb
[The following lists of changes regard files as different if they have
different names, permissions or owners.]

Files in first .deb but not in second
-------------------------------------
-rw-r--r-- root/root /usr/share/hal/fdi/policy/10osvendor/10-dell-laptop-brightness.fdi
-rwxr-xr-x root/root /usr/lib/hal/hal-acl-tool
-rwxr-xr-x root/root /usr/lib/hal/hald-addon-dell-backlight

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

This bug was fixed in the package hal - 0.5.12~rc1+git20090204-0ubuntu3

---------------
hal (0.5.12~rc1+git20090204-0ubuntu3) jaunty; urgency=low

  * 87_standalone_smbios.patch: Add missing bit from
    autoreconfiscation, which brings back the building and
    installation of hal-acl-tool. This repairs automatic ACLs, and
    thus sound card, camera, scanner, DRI, and other device access.
    Thanks to Mario Limonciello for the patch! (LP: #334299)

 -- Martin Pitt <email address hidden> Wed, 25 Feb 2009 15:54:09 +0100

Changed in hal:
status: In Progress → Fix Released
Revision history for this message
ruskie (ruzkie) wrote :

I also got hit by this, how do i fix this manually meanwhile?

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

@ruskie : Jaunty is in development and not for use. So please wait for the release of hal 0.5.12~rc1+git20090204-0ubuntu3

Revision history for this message
ruskie (ruzkie) wrote :

ok, i can confirm that the upload fixes this issue

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

The new iso alpha5 have the fix :
http://cdimage.ubuntu.com/daily-live/20090225.1/

Revision history for this message
eXlin (hirvonen-henri) wrote :

I tryed that package, downloaded it from:
https://launchpad.net/ubuntu/jaunty/amd64/hal/0.5.12~rc1+git20090204-0ubuntu3
but it didn't help with issue.

Revision history for this message
eXlin (hirvonen-henri) wrote :

nvm, noob me.

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

Confirming that the update is fixing this on my machine.

Kind regards,
Jan

Revision history for this message
Mangloid (jthoma2) wrote :

Came in and updated box this morning, now HDA intel is selectable and now works - looks like I missed this bug report and posted in an old one by mistake.

-Jeremy T.

Revision history for this message
ilf (ilf) wrote :

It seems I still experience this bug with hal 0.5.12~rc1+git20090403-0ubuntu1:

$ aplay -l
aplay: device_list:217: no soundcards found...

$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Revision history for this message
ilf (ilf) wrote :

Hm, downgraded hal to 0.5.12~rc1+git20090204-0ubuntu3, same thing.

Revision history for this message
ilf (ilf) wrote :

0.5.12~rc1-0ubuntu6 and 0.5.12~rc1+git20090120-0ubuntu1 don't work either.

But adjusting the ACLs by hand fixes it:

$ aplay -l
aplay: device_list:217: no soundcards found...

$ sudo setfacl -m u:ilf:rw /dev/snd/*

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Revision history for this message
ilf (ilf) wrote :

I'm surry if this is rude, but it seems noone looks at this bug, so I am reopening it.

Changed in hal (Ubuntu Jaunty):
status: Fix Released → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 334299] Re: Jaunty: No sound cards any more

ilf [2009-04-12 18:33 -0000]:
> It seems I still experience this bug with hal
> 0.5.12~rc1+git20090403-0ubuntu1:

That must be a different reason, since it works for many other people.
What's the output of ck-list-sessions?

If you see something like

Session2:
 unix-user = '1000'
 realname = 'Martin Pitt,,,'
 seat = 'Seat1'
 session-type = ''
 active = TRUE
 x11-display = ':0'
 x11-display-device = '/dev/tty7'
 display-device = ''
 remote-host-name = ''
 is-local = TRUE
 on-since = '2009-04-14T06:23:08.507567Z'
 login-session-id = ''

there, in particular "is-local = TRUE" and "/dev/tty7", then please
open a new bug against hal and do the steps on
https://wiki.ubuntu.com/DebuggingHal . Thanks!

Martin Pitt (pitti)
Changed in hal (Ubuntu Jaunty):
status: Confirmed → Fix Released
summary: - Jaunty: No sound cards any more
+ Jaunty: No sound cards any more due to broken ACL management
tags: added: iso-testing
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.