spanezz / nodm

Automatic display manager
GNU General Public License v2.0
141 stars 21 forks source link

PulseAudio won't start after autologin with nodm #2

Closed kilbith closed 7 years ago

kilbith commented 8 years ago

Title says it all. I'm using Arch + i3.

paulstelian97 commented 8 years ago

I always start pulseaudio manually in my .xinitrc script

sunweaver commented 7 years ago

pulseaudio startup is not the job of the display manager, but should be handled by the launched session manager. Thus closing this and tagging as invalid.

kilbith commented 7 years ago

We can autologin as well with a agetty service alone, and pulseaudio starts fine.

sunweaver commented 7 years ago

Hi kilbith

On Mo 23 Jan 2017 13:49:37 CET, kilbith wrote:

We can autologin as well with a agetty service alone, and
pulseaudio starts fine.

can you please provide more setup details and track down why
pulseaudio gets started with agetty?

It is well possible, that systemd launched pulseaudio. There has just
been a patch for nodm that adds systemd support.

Mike --

DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby mobile: +49 (1520) 1976 148 landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

kilbith commented 7 years ago

If you want to test :

sudo mkdir /etc/systemd/system/getty@tty1.service.d/

sudo sh -c "cat >> /etc/systemd/system/getty@tty1.service.d/override.conf <<_EOF_
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin $USER --noclear %I \$TERM
_EOF_"

cat >> ~/.bash_profile <<_EOF_
if [[ -z \$DISPLAY ]] && [[ \$(tty) = /dev/tty1 ]]; then exec startx; fi
_EOF_

Then of course disable nodm before rebooting.