You are not logged in.

#1 2012-08-19 05:19:01

piaodan
Member
Registered: 2012-08-19
Posts: 14

[SOLVED] no sound with startx

Hi.
I use systemd and xmonad on my arch linux.
When starting xmonad with "startx" command, alsamixer doesn't work in urxvt while it works well under tty.
It seems to be a polkit problem.

My .xinitrc file has only one line:
exec xmonad

How can I make alsamixer work after "startx"?

Last edited by piaodan (2012-09-07 17:47:46)

Offline

#2 2012-08-19 05:23:27

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] no sound with startx

piaodan wrote:

It seems to be a polkit problem.

My .xinitrc file has only one line:
exec xmonad

I think you already have your answer...

Offline

#3 2012-08-19 05:43:27

piaodan
Member
Registered: 2012-08-19
Posts: 14

Re: [SOLVED] no sound with startx

WonderWoofy wrote:
piaodan wrote:

It seems to be a polkit problem.

My .xinitrc file has only one line:
exec xmonad

I think you already have your answer...

Actually I didn't find a way to have polkit work with systemd and startx.
When using sysvinit, "exec ck-launch-session xmonad" works well, but "ck-launch-session" reports an error with systemd.
What can replace "ck-launch-session" when using systemd?

Offline

#4 2012-08-19 12:26:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] no sound with startx

I don't use console-kit, but you should probably check the wiki.  The fist line of the console-kit page reads:

wiki wrote:

ConsoleKit is currently not actively maintained. The focus has shifted to the built-in seat/user/session management of Software/systemd called systemd-loginctl.

I also have no idea why you'd need any *-kit to use alsamixer.  I certainly don't.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-08-19 12:28:40

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] no sound with startx

I also had no sound when I tried systemd a few days ago. “systemctl” reported a failure with alsa. I couldn’t find anything about that problem on the wiki or in the forums. I’m also not using a login manager and launching Xfce with “exec startxfce4 --with-ck-launch” in .xinitrc.

Edit: The alsa.service error does not prevent sound from working. My problem was most likely that my music disk was not mounted when my system was started with systemd.

Last edited by stqn (2012-09-07 18:31:46)

Offline

#6 2012-09-07 17:46:32

piaodan
Member
Registered: 2012-08-19
Posts: 14

Re: [SOLVED] no sound with startx

Thanks for all replies.
The sound problem was solved by adding user into audio group:

#gpasswd -a username audio

Last edited by piaodan (2012-09-07 17:46:55)

Offline

Board footer

Powered by FluxBB