This document provides a complete setup for automating two separate X sessions for different users on two displays without using `systemd` or `loginctl`.
This document provides a unified setup for automating two separate X sessions for different users on two displays without using `systemd` or `loginctl`. It covers Single-GPU (AMD/Intel/Nvidia) and Dual-GPU configurations.
## 1. Hardware Identification
## 1. Hardware Identification
Before applying the configurations, identify your hardware IDs:
Before configuring, run these commands to identify your hardware IDs:
-**GPU BusID:** Run `lspci | grep -E "VGA|3D"`. (Example: `01:00.0` becomes `PCI:1:0:0` in Xorg).
-**Input Isolation:** If one mouse moves both cursors, verify `AutoAddDevices` is `false` in both Xorg files.
echo "contain the correct PCI BusIDs and USB IDs for your hardware."
-**Nvidia Single GPU:** Nvidia does not support `ZaphodHeads`. You must use `Screen 0` and `Screen 1` syntax as shown in the comments above.
echo "Restart LightDM to apply: 'service lightdm restart' or '/etc/init.d/lightdm restart'"
-**Audio:** Since `logind` is absent, use a system-wide [PipeWire](https://pipewire.org) instance or [ALSA dmix](https://alsa.opensrc.org) to prevent one user from locking the sound card.
-**Documentation:** Refer to the [Xorg Multi-seat ArchWiki](https://wiki.archlinux.org) for driver-specific flags.