I removed myself from audio group under systemd after reading this advice:
Note: Adding your user to several groups (optical, audio, scanner, ...) is not necessary with systemd. It might even break the wanted functionality if you do so.
But now wine games have no sound and display this message in the logs:
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM defaultALSA lib confmisc.c:768:(parse_card) cannot find card
This only happens when I'm not in the audio group. I expected systemd to handle the permissions for me without needing my user in audio group, so I wonder why it isn't. I suspect the fact that I launch my games on a separate console without logging in prevents permissions getting resolved and disables sound. I launch games like this:
xinit /usr/local/bin/game-script -- :1
Does this mean that I need to be logged in with systemd to get access to my devices? Or is there a better way I should resolve this than adding myself back to audio?
Also, my sound card is detected ok:
aplay -l card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0
alsactl init Found hardware: "HDA-Intel" "Realtek ALC889A" "HDA:10ec0885,1458a002,00100101" "0x1458" "0xa022" Hardware is initialized using a generic method
I don't have pulse-audio installed. I'm using lib32-alsa-lib with multi-lib pacman repository. I'm also using pure systemd without consolekit or policykit (Edit: I do have polkit):
loginctl show-session $XDG_SESSION_ID Id=1 Timestamp=Sat, 2012-11-17 01:27:04 GMT TimestampMonotonic=8390125 DefaultControlGroup=name=systemd:/user/joe/1 VTNr=1 TTY=tty1 Remote=no Service=login Leader=323 Audit=1 Type=tty Class=user Active=yes State=active KillProcesses=no IdleHint=yes IdleSinceHint=1353115620572736 IdleSinceHintMonotonic=4762913 Name=joe
Last edited by rodyaj (2012-11-17 17:02:39)
I'm also using pure systemd without consolekit or policykit:
Really, you don't have policykit installed. Boy I'd love to get rid of that. I have to disable MPROTECT and RANDMMAP on polkitd. It is the only daemon running without full PaX protections, and it's a security daemon no less.
Can others confirm that I don't need policykit.
Darn... polkit-qt is Required By kdelibs
Last edited by hunterthomson (2012-11-17 10:39:59)
I do have policykit sorry. I removed the policykit package, but polkit is installed. I guess I need to read up on these things.
Last edited by rodyaj (2012-11-17 17:04:18)