You are not logged in.
I'm not able to get audio when using a normal user (device or resource busy) but root works just fine. I think I've messed something up since I just removed consolekit and switched to systemd.
Here's what my .xinitrc looks like
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#exec gnome-session
#exec startkde
#exec startxfce4
#exec enlightenment_start
# ...or the Window Manager of your choice
#exec ck-launch-session startlxde
exec dbus-launch startlxdeI use LightDM via systemd service and LXDE. My devices in /dev/snd aren't actually busy. Nobody is using them and they work fine for root.
Where else should I be looking for trouble? Anyone have a similar experience?
Last edited by royallthefourth (2013-06-12 17:32:20)
Offline
first:check your normal user's group
$ groups
then if the normal isn't in audio group
$ gpasswd -a username audio
generally it works
Offline
Notice the permissions:
$ ls -l /dev/snd
total 0
drwxr-xr-x 2 root root 60 Jun 12 09:47 by-path
crw-rw---- 1 root audio 116, 6 Jun 12 09:47 controlC0
crw-rw---- 1 root audio 116, 5 Jun 12 09:47 hwC0D0
crw-rw---- 1 root audio 116, 4 Jun 12 09:47 pcmC0D0c
crw-rw---- 1 root audio 116, 3 Jun 12 14:15 pcmC0D0p
crw-rw---- 1 root audio 116, 2 Jun 12 09:47 pcmC0D1p
crw-rw---- 1 root audio 116, 1 Jun 12 09:47 seq
crw-rw---- 1 root audio 116, 33 Jun 12 09:47 timerOffline
It says I'm in the audio group. Here's the permission on the audio devices:
crw-rw----+ 1 root audio 116, 6 Jun 12 03:45 controlC0
crw-rw----+ 1 root audio 116, 9 Jun 12 03:45 controlC1
crw-rw----+ 1 root audio 116, 11 Jun 12 03:45 controlC2
crw-rw----+ 1 root audio 116, 8 Jun 12 03:45 hwC1D0
crw-rw----+ 1 root audio 116, 5 Jun 12 03:45 pcmC0D0c
crw-rw----+ 1 root audio 116, 4 Jun 12 03:45 pcmC0D0p
crw-rw----+ 1 root audio 116, 3 Jun 12 03:45 pcmC0D1c
crw-rw----+ 1 root audio 116, 2 Jun 12 03:45 pcmC0D1p
crw-rw----+ 1 root audio 116, 7 Jun 12 03:45 pcmC1D3p
crw-rw----+ 1 root audio 116, 10 Jun 12 03:45 pcmC2D0c
crw-rw----+ 1 root audio 116, 1 Jun 12 03:45 seq
crw-rw----+ 1 root audio 116, 33 Jun 12 03:45 timerI ought to have access to these, right?
Offline
remove dbus-launch from the exec line, dbus is already launched from the /etc/X11/xinit/xinitrc.d/* loop. If this doesn't help, lightDM is probably screwing something up.
and no, you do not need to be in the audio group.
Offline
Removing dbus-launch didn't change anything.
Switching away from LightDM (to KDM) has got my audio back, though. Thanks. I never would've figured that on my own.
Offline