Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA + mdev + *kitless = trouble? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Sun Aug 18, 2013 10:52 pm    Post subject: ALSA + mdev + *kitless = trouble? [solved] Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Aug 18, 2013 11:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Sun Aug 18, 2013 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Aug 19, 2013 12:02 am    Post subject: Reply with quote

See previous thread - downgrade busybox to get an mdev that can handle audio rules?
Back to top
View user's profile Send private message
LoneFox
n00b
n00b


Joined: 10 Jan 2012
Posts: 8

PostPosted: Mon Aug 19, 2013 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum