Multiseat on Ubuntu 18.04?

Multiple video cards is by far the easy way to set up multiseat. It allows you to avoid the mess of Xephyr and any other additional configuration.

Setting up a second seat (assuming you had a second video card) would be no more simple than issuing the command:

"loginctl attach seat1 __________________"

Once you reboot, you should have two login screens. All other configuration is generally incidental after that.

Does your motherboard support a second full-length PCI-E graphics slot? If it does not, that is not an automatic disqualifier. You can also use one of those PCI-E 1x risers that the bitcoin crowd are fond of using to add a 16x slot to your machine. Not saying you should, I'm just saying you could.


I agree with @ezst036 regarding this:

Multiple video cards is by far the easy way to set up multiseat. It allows you to avoid the mess of Xephyr and any other additional configuration.

However, even in this "easy scenario", I stumbled upon some issues regarding the interactions between gdm, snap and the logind component. For starters, if you have a 16.04 and do a loginctl seat-status you will be given the information regarding your seat, but if you try that in 18.04 an error will be thrown:

Could not get properties: Caller does not belong to any known session

I don't know if that issue is relevant or not.

In order to achieve a functional multiseat configuration in Ubuntu vanilla you can do the following:

  • Install lightdm: By doing sudo apt install lightdm and then be sure to check lightdm as the default login screen in the prompt that will appear.
  • Configure the following in /etc/lightdm/lightdm.conf.d/multiseat.conf (you should create this file, name it as you wish).
[LightDM]
logind-load-seats=true
  • Properly assign the devices to the seat by doing loginctl attach seat-1 <device>

Then you will be able to reboot and everything should fall in place.

There is no need to configure anything in /etc/X11, the previous configuration will automagically set up all the devices properly.

DISCLAIMER: I have two Radeon RX 5700, and I am using the official driver 19.30 from the AMD website. I am not sure if my configuration will work as-is in other setups. YMMV.