/dev/snd/* permissions/ownership incorrect

Dennis J. dennisml at conversis.de
Sat Oct 11 22:40:32 UTC 2008


On 10/11/2008 10:55 PM, Adam Pribyl wrote:
> On Sat, 11 Oct 2008, Rahul Sundaram wrote:
>
>> Dennis J. wrote:
>>> Since I updated to the latest packages in koji a few days ago the
>>> device nodes in /dev/snd/* no longer seem to have the right
>>> ownership/permissions which causes audio playback through alsa to
>>> fail. Doing a "chmod o+rw /dev/snd/*" makes audio work again.
>>>
>>> What package is responsible for setting this up correctly so I can
>>> file bug against it?
>>
>> My guess would be ConsoleKit
>
> Yes and no. In past this happend to several sound cards too, root cause
> was that kernel /sys structure had changed, the HAL was not able to find
> the hardware, and the sound devices were not set correctly. CosoleKit
> takes the info from HAL, which is not aware of the card and does not set
> the permissions. Quick try: lshal | grep alsa

HAL seems to detect the card correctly:

udi = '/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_playback_0'
   alsa.card = 0  (0x0)  (int)
   alsa.card_id = 'M Audio Audiophile 24/96'  (string)
   alsa.device = 0  (0x0)  (int)
   alsa.device_file = '/dev/snd/pcmC0D0p'  (string)
   alsa.device_id = 'ICE1712 multi'  (string)
   alsa.originating_device = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0'  (string)
   alsa.pcm_class = 'generic'  (string)
   alsa.type = 'playback'  (string)
   info.capabilities = {'alsa', 'access_control'} (string list)
   info.category = 'alsa'  (string)
   info.udi = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_playback_0' 
(string)
udi = '/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_capture_0'
   alsa.card = 0  (0x0)  (int)
   alsa.card_id = 'M Audio Audiophile 24/96'  (string)
   alsa.device = 0  (0x0)  (int)
   alsa.device_file = '/dev/snd/pcmC0D0c'  (string)
   alsa.device_id = 'ICE1712 multi'  (string)
   alsa.originating_device = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0'  (string)
   alsa.pcm_class = 'generic'  (string)
   alsa.type = 'capture'  (string)
   info.capabilities = {'alsa', 'access_control'} (string list)
   info.category = 'alsa'  (string)
   info.udi = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_capture_0' 
(string)
udi = '/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_midi_0'
   alsa.card = 0  (0x0)  (int)
   alsa.card_id = 'M Audio Audiophile 24/96'  (string)
   alsa.device = 0  (0x0)  (int)
   alsa.device_file = '/dev/snd/midiC0D0'  (string)
   alsa.originating_device = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0'  (string)
   alsa.type = 'midi'  (string)
   info.capabilities = {'alsa', 'access_control'} (string list)
   info.category = 'alsa'  (string)
   info.udi = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_midi_0'  (string)
udi = '/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_control__1'
   alsa.card = 0  (0x0)  (int)
   alsa.card_id = 'M Audio Audiophile 24/96'  (string)
   alsa.device_file = '/dev/snd/controlC0'  (string)
   alsa.originating_device = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0'  (string)
   alsa.type = 'control'  (string)
   info.capabilities = {'alsa', 'access_control'} (string list)
   info.category = 'alsa'  (string)
   info.udi = 
'/org/freedesktop/Hal/devices/pci_1412_1712_sound_card_0_alsa_control__1' 
(string)

BTW I found this bug: https://bugzilla.redhat.com/show_bug.cgi?id=332781
and when I apply the changes in comment #17 things are set up correctly 
once I log into my X session. That bug is quite old though and I'm not sure 
if this way of fixing this has been supplanted by ConsoleKit in the mean time.

Regards,
   Dennis




More information about the fedora-test-list mailing list