You are not logged in.

#1 2012-10-27 05:14:20

ParanoidAndroid
Member
Registered: 2012-10-14
Posts: 114

ALSA not working, can't be started with systemd

I have alsa and pulseaudio installed and configured properly. After a system upgrade, alsa ceased to work. Any attempts to load it manually through systemd resulted in an error "Unit alsa.service failed to load: No such file or directory."

I reinstalled alsa-utils, which should contain the necessary service files for systemd. pulseaudio works perfectly, but alsa won't recognize any  sound cards and pulseaudio registers a dummy output. Can anyone explain how to fix this? my card is an HDA Intel card, realtek drivers.

Offline

#2 2012-10-27 10:55:54

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

Re: ALSA not working, can't be started with systemd

there is no alsa.service, there is only alsa-store.service and alsa-restore.service which are both enabled by default but which you don't actually need if you use PulseAudio (meaning you could actually uninstall alsa-utils).

I assume this is a permission problem. You need to be in a proper logind or ConsoleKit session to access your sound devices. How do you login? Also check the output of

loginctl show-session $XDG_SESSION_ID

also check if "aplay -l" shows soundcards when run as root.

Offline

#3 2012-10-27 14:52:00

pgarner
Member
From: Martigny, Switzerland
Registered: 2006-12-29
Posts: 4

Re: ALSA not working, can't be started with systemd

This broke for me this morning too.  Solution was add the user to the audio group.
usermod -aG audio username
Somehow it never mattered before.

Offline

#4 2012-10-27 14:53:28

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

Re: ALSA not working, can't be started with systemd

this is not a solution but a workaround. If your session is properly set up you don't need the audio group.

Offline

#5 2012-11-01 05:07:36

pgarner
Member
From: Martigny, Switzerland
Registered: 2006-12-29
Posts: 4

Re: ALSA not working, can't be started with systemd

Ah, OK.
The problem seems to have been that I'd switched to systemd, but not updated gdm-old.  There are updates to the display manager to do with the ConsoleKit/systemd-logind thing.
For want of a pointer, it's all in the wiki
https://wiki.archlinux.org/index.php/Systemd

Last edited by pgarner (2012-11-01 05:30:38)

Offline

#6 2012-11-03 22:05:53

ParanoidAndroid
Member
Registered: 2012-10-14
Posts: 114

Re: ALSA not working, can't be started with systemd

problem solved! you were right 65kid, it was a permissions problem.

This all started with me trying to configure my joystick. I restarted X every time I altered the config files I was using, but in doing so I quit my authorized login, thus denying me access to the soundcard.

I finally got the dang thing set up properly and rebooted, and low and behold! my audio is working again. it took me a bit of digging to realize what had been happening, but I figured it out in the end.

I'll mark the thread as solved.

Offline

#7 2012-11-03 22:08:20

ParanoidAndroid
Member
Registered: 2012-10-14
Posts: 114

Re: ALSA not working, can't be started with systemd

assuming, of course, I can figure out how to do that... I'm new to the forums and I can't for the life of me figure out how. This isn't the topic under discussion, but could one of you fine folks give a hint to a helpless newbie?

Offline

#8 2012-11-04 00:23:47

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: ALSA not working, can't be started with systemd

Edit your initial post and prepend [Solved] to the title

Offline

#9 2012-11-04 20:34:55

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Re: ALSA not working, can't be started with systemd

Adding the user to the audio group helped me too to get audio back – but @65kid said this is only a workaround? Could you please explain, what is the real solution? I just want to make everything right. smile My DE is KDE SC and I have just made a complete system upgrade so KDM should be aware of the recent ConsoleKit/logind change. I have absolutely no knowledge about systemd or this permission stuff, please help me.

Offline

Board footer

Powered by FluxBB