Multiseat fixes
Created by: ascent12
Fixes #1057 (closed)
Various little changes to get multi-seat working properly. We were already 99% of the way there.
To test:
- Two GPUs are required
- Another keyboard and mouse helps too, but is not strictly required
- Assign all of the devices to another seat with
loginctl assign seat1 /sys/path/to/device
logind:
- Start a display manager (I used GDM); it will appear on both seats
- Log in to both seats There is a limitation with GDM where it doesn't seem to want to start a wayland session on seat1 (the option is not given). I tested this successfully with sway on seat0 and i3 on seat1.
direct: GDM doesn't seem to like the direct session. It's probably related to their hard dependency on logind, and I don't care enough to look into it.
- From seat0, run
XDG_SEAT=seat1 sway
- From seat0, change VT and run
sway