Skip to main content
Topic: Can't get elogind to launch Wayland or X session with s6 (Read 674 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can't get elogind to launch Wayland or X session with s6

I can get Wayland compositors to open with seatd, but not X wm's. And further, I can get neither to work with elogind. However, both work with elogind just fine with openrc as my init system. I followed the migration guide on the wiki, with the following being every service I have installed.

Code: [Select]
alsa-utils-s6
apparmor-s6
bluez-s6
cronie-s6
cryptsetup-s6
dbus-s6
device-mapper-s6
dhcpcd-s6
elogind-s6
haveged-s6
libvirt-s6
nftables-s6
s6
tor-s6
transmission-s6
wpa_supplicant-s6

I have greetd + tuigreet as my greeter, with a custom service with `exec greetd` and `longrun` as type.

The services I have as part of the `default` bundle are

Code: [Select]
s6rc-oneshot-runner
s6rc-fdholder
cronie
dbus-log
dbus-srv
dhcpcd-log
dhcpcd-srv
dmesg-log
dmesg-srv
haveged-log
haveged-srv
seatd-log
seatd-srv
tty2
tty3
tty4
tty5
tty6
ttyS
udevd-log
udevd-srv
wpa_supplicant-log
wpa_supplicant-srv
greetd
alsa
binfmt
cleanup
console-setup
cryptsetup
hostname
hwclock
kmod-static-nodes
locale
modules
mount-cgroups
mount-devfs
mount-net
mount-procfs
mount-sysfs
mount-tmpfs
net-lo
network-detection
nftables
random-seed
remount-root
sysctl
sysusers
tmpfiles-dev
tmpfiles-setup
udevadm
mount-filesystems
rc-local

My xinitrc is
Code: [Select]
xrdb ~/.Xresources
sh -c ~/.xprofile &
exec dbus-launch --exit-with-session WM

(and my xprofile is)
Code: [Select]
#!/bin/sh
xrdb ~/.Xresources &
setxkbmap -option "caps:escape" &
xwallpaper --center ~/background.jpg &
picom &

with WM being whatever window manager I try.

Re: Can't get elogind to launch Wayland or X session with s6

Reply #1
You'll need to take seatd out of your default bundle and instead use elogind. Also check your xorg logs.

 

Re: Can't get elogind to launch Wayland or X session with s6

Reply #2
I did that, the issue was that elogind wasn't creating any sessions. I ended up switching to openrc so I could have a GUI.