You are not logged in.

#1 2013-06-12 02:35:09

royallthefourth
Member
From: North Carolina
Registered: 2011-02-26
Posts: 18
Website

ALSA device busy for normal user (not root) after systemd [resolved]

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 startlxde

I 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

#2 2013-06-12 05:13:54

liuzheng
Member
Registered: 2013-06-12
Posts: 1

Re: ALSA device busy for normal user (not root) after systemd [resolved]

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

#3 2013-06-12 07:19:34

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: ALSA device busy for normal user (not root) after systemd [resolved]

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 timer

Offline

#4 2013-06-12 11:56:49

royallthefourth
Member
From: North Carolina
Registered: 2011-02-26
Posts: 18
Website

Re: ALSA device busy for normal user (not root) after systemd [resolved]

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 timer

I ought to have access to these, right?

Offline

#5 2013-06-12 12:47:42

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: ALSA device busy for normal user (not root) after systemd [resolved]

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

#6 2013-06-12 16:26:29

royallthefourth
Member
From: North Carolina
Registered: 2011-02-26
Posts: 18
Website

Re: ALSA device busy for normal user (not root) after systemd [resolved]

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

Board footer

Powered by FluxBB