View previous topic :: View next topic |
Author |
Message |
zje n00b
Joined: 06 Sep 2012 Posts: 33
|
Posted: Sun Jan 25, 2015 6:42 pm Post subject: pulseaudio permissions |
|
|
I've followed the instructions for installing pulseaudio, but I only get the dummy output device. I'm using udev and have consolekit emerged with the acl USE flag, running, and added to the default runlevel:
Code: |
~ # rc-status |grep console
consolekit [ started ]
|
However, "getfacl" doesn't report anything:
Code: |
~ $ getfacl /dev/snd/controlC0 |grep user
getfacl: Removing leading '/' from absolute path names
user::rw-
|
and the audio group is empty:
Code: |
~ $ grep audio /etc/group
audio:x:18
|
Since this is a laptop, it has been rebooted a bunch of times so all of these changes (groups, consolekit, etc...) should definitely be working.
What else should I check?
Thanks! |
|
Back to top |
|
|
mrodrigues n00b
Joined: 26 Jan 2015 Posts: 7
|
Posted: Mon Jan 26, 2015 3:51 am Post subject: |
|
|
Are you running your WM with .
Run as root and see if your cards are even detected. If not, find the modules you need to add.
Do you have the proper kernel options? I had this problem last night and had to add CONFIG_PM_RUNTIME=y.
https://forums.gentoo.org/viewtopic-t-898974.html |
|
Back to top |
|
|
zje n00b
Joined: 06 Sep 2012 Posts: 33
|
Posted: Mon Jan 26, 2015 6:36 am Post subject: |
|
|
Thanks, somehow I missed adding the consolekit to my .xinitrc
I can see my session when I'm logged in:
Code: |
~ $ ck-list-sessions
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = FALSE
on-since = '2015-01-26T06:23:42.022789Z'
login-session-id = '3'
|
but I still don't see the permissions working properly. I can run aplay -l as root no problem:
Code: |
~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: ID 2808 Digital [ID 2808 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ID 292 Analog [ID 292 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
but not as a normal user:
Code: |
~ $ aplay -l
aplay: device_list:268: no soundcards found...
|
|
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jan 26, 2015 12:48 pm Post subject: Re: pulseaudio permissions |
|
|
zje wrote: | However, "getfacl" doesn't report anything:
Code: | ~ $ getfacl /dev/snd/controlC0 |grep user
getfacl: Removing leading '/' from absolute path names
user::rw- |
|
zje ... right, but if you'd looked at the full output you would have seen that its o-rwx
Code: | # ls -l /dev/snd/controlC0
crw-rw---- 1 root audio 116, 0 2015-01-26 03:49 /dev/snd/controlC0 |
so, the user will need to be in the audio group to access this device.
zje wrote: | and the audio group is empty:
Code: | ~ $ grep audio /etc/group
audio:x:18 |
|
... but they are not
Code: | # usermod -a -G audio zje |
HTH & best ... khay |
|
Back to top |
|
|
zje n00b
Joined: 06 Sep 2012 Posts: 33
|
Posted: Mon Jan 26, 2015 3:32 pm Post subject: |
|
|
Adding my user to the audio group allows audio to work and I can control it via pacmd/pavucontrol. I'm confused since I took the user out of the group per the instructions here:
http://wiki.gentoo.org/wiki/PulseAudio#Permissions
I thought consolekit was supposed to manage those permissions? I suppose it doesn't matter since this is a single user system. I am not using systemd.
Thanks again for all your help! This is my first gentoo desktop (been doing servers since 2006) |
|
Back to top |
|
|
mrodrigues n00b
Joined: 26 Jan 2015 Posts: 7
|
Posted: Tue Jan 27, 2015 5:39 am Post subject: |
|
|
If you cant `aplay -l` as a normal user and get devices, consolekit isn't setting the proper ACLs on your sound card devices.
Adding yourself to the `audio` group is not necessary if consolekit is working. See this for an explanation of the 3 ways to manage access to the audio devices. You're in group 1 right now. You sound like you want 2 or 3: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/
Quote: | # ls -l /dev/snd/controlC0
crw-rw---- 1 root audio 116, 0 2015-01-26 03:49 /dev/snd/controlC0 |
In the quote above, there's no "+" sign at the end of the permissions to indicate that any ACLs have been set. If you login as another user you'll see the dummy output until you add them to `audio` or fix consolekit.
Did you compile consolekit with the `acl` USE flag? You also need to make sure sys-auth/pambase is comipled with USE="consolekit". Also, did you check on those kernel options?:
Code: |
$ zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
|
|
|
Back to top |
|
|
|