Multi-seat setup with GPU passthrough, part 2

Small post about creating TV seat on integrated graphics card. To do that I had to make few changes!

For Xorg I had to append following section to /etc/X11/xorg.conf.d/99-seats.conf file:

Section "Device"
    MatchSeat  "seat2"
    Identifier "device2"
    Driver     "intel"
    VendorName "Intel Corporation"
    BoardName  "Intel UHD Graphics 630"
    BusID      "PCI:0:2:0"
EndSection

For LightDM I appended following section to /etc/lightdm/lightdm.conf.d/99-seats.conf file:

[Seat:seat2]
#xserver-command=X -core -s 120
autologin-user-timeout=30
autologin-user=tv

Above configuration also enables autologin but is not necessarily.

For udev I added following rules to /etc/udev/rules.d/99-seats.rules file:

TAG=="seat", DEVPATH=="/devices/pci0000:00/0000:00:02.0/*", ENV{ID_SEAT}="seat2", TAG+="seat2"
TAG=="seat", DEVPATH=="/devices/pci0000:00/0000:00:1f.3/*", ENV{ID_SEAT}="seat2", TAG+="seat2"
TAG=="seat", DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-3", ENV{ID_SEAT}="seat2", TAG+="seat2"
TAG=="seat", DEVPATH=="/devices/platform/i8042/serio0/*", ENV{ID_SEAT}="seat2", TAG+="seat2"

First line tags integrated graphics card for use with seat2. This line should be enough for seat to be created. Last two lines assigns mouse and keyboard to this new seat. But most interesting line is second line... It is integrated sound card and there is small problem with it! It is not possible (at least with my motherboard) to assign only HDMI part for sound output, I have to assign whole sound card meaning that now I have to search for other ways to get sound on my main seat!

For that I decided to buy two cheapest usb sound cards I could find - one for main seat0 and other for seat1. Later I did remember that my main monitor had sound output so teoretically I did not need two usb sound cards.

Extra line was added to udev rules to assign usb sound card to seat1:

TAG=="seat", DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-4", ENV{ID_SEAT}="seat1", TAG+="seat1"

Now after reboot I have 3 independent seats. TV seat is now used quite often for watching Netflix or YouTube.

For part 1, see here.

1 Comment
Joe Vaidyason

Joe Vaidyason says

July 26, 2023 at 12:40

useful

Leave a reply

You must be logged in to post a comment!