View previous topic :: View next topic |
Author |
Message |
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sun Aug 18, 2013 10:52 pm Post subject: ALSA + mdev + *kitless = trouble? [solved] |
|
|
After the last update, ALSA stopped working for normal users. I discovered that everything in /dev/snd/ had permissions of root:root. I changed them to root:audio and now the system works again.
Was this the correct solution, or is there a better one? I assumed udev or some kit is supposed to do this. Was I correct? _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Last edited by The Doctor on Sun Aug 18, 2013 11:45 pm; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Aug 18, 2013 11:05 pm Post subject: |
|
|
Udev does it, in 50-udev-default.rules
Code: | SUBSYSTEM=="sound", GROUP="audio", \
OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer" |
_________________ Improve your font rendering and ALSA sound |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sun Aug 18, 2013 11:44 pm Post subject: |
|
|
Okay, it looks like udev should be doing this, but it isn't due to not being installed.
I whipped up a runscript that restores the group permissions in case anyone else finds they have need of it. Code: | #!/sbin/runscript
depend()
{
after alsasound
}
start()
{
# change the group permissions for alsa
ebegin "Setting ALSA permissions"
chgrp audio /dev/snd/*
eend $?
} |
_________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Aug 19, 2013 12:02 am Post subject: |
|
|
See previous thread - downgrade busybox to get an mdev that can handle audio rules? |
|
Back to top |
|
|
LoneFox n00b
Joined: 10 Jan 2012 Posts: 8
|
Posted: Mon Aug 19, 2013 2:09 am Post subject: |
|
|
With busybox 1.21.1, you need to add the subdirectory to the device name, like this:
Code: | snd/pcm.* root:audio 0660
snd/controlC.* root:audio 0660
snd/midi.* root:audio 0660
snd/seq root:audio 0660
snd/timer root:audio 0660
|
|
|
Back to top |
|
|
|