[Nix-dev] Pulseaudio broken in 14.12: Daemon already running

Peter Jones mlists at pmade.com
Mon Jan 26 16:46:06 CET 2015


Kirill Elagin <kirelagin at gmail.com> writes:
> Do you use a desktop manager or start your X session manually? The
> important thing is to make sure that your X server is running on _the same
> virtual terminal_ your logind session was opened on, otherwise you won’t
> get permissions to access hardware. Desktop managers take care of this and
> recent versions of `startx` (starting from xinit-1.3.4 IIRC) also do.
> `loginctl show-session <session-id> -p VTNr` tells you what logind thinks
> is your session’s terminal. I believe that the default of X is still to
> choose the first available terminal, so you have to explicitly pass it
> `vt<your-session-terminal-number>` (`startx` does exactly this).

>From what I understand, there's no way to use `startx' with systemd.
That's my preference, but I don't know how to configure NixOS to allow
that.  For DMs, I've tried both slim and lightdm.  I have the same
pulseaudio issues under both.

`loginctl' reports that I have a seat and that my session's terminal is
7.  X is also running on VT 7, but it's running as *root*!

Could X running as root be the problem here?

$ nixos-version
14.12.343.47c741f (Caterpillar)

$ X -version
X.Org X Server 1.16.2.901 (1.16.3 RC 1)

-- 
Peter Jones, Founder, Devalot.com
Defending the honor of good code



More information about the nix-dev mailing list