What the hell is multiseat?
Back in the 20th century, computing power was expensive. Companies usually bought a single computer called a mainframe (which could take up an entire room!). This created a need to share computing resources between multiple users simultaneously in order to make the most of the hardware.
That's why UNIX was designed as a multi-user operating system: it allowed multiple terminals to share the computing power of a single mainframe at the same time.
Linux is a Unix-like operating system, so it supports multiple users and sessions too. Even your virtual terminals are actually separate sessions! BUT there's another really cool feature beyond having multiple terminals and terminal emulators: multiseat!
Multiseat is the ability to assign different sets of hardware, such as keyboards, mice, GPUs and speakers, to separate graphical sessions (called seats).
Imagine having two mice, two keyboards and two monitors. Mouse number one controls the pointer on monitor number one, while mouse number two controls the pointer on monitor number two. This way, you can turn an ordinary Linux machine into something resembling a mainframe and create two separate workstations using just one PC instead of buying another one!
Why did I do it?
I have only one PC, but sometimes two people need to use it at the same time. So I got a second monitor, mouse and keyboard and started googling.
And guess what? I found out that if your PC has two GPUs, you can actually set up multiseat!
Here are my PC specs, so you can get an idea of the hardware I'm working with:
| Component | Model |
|---|---|
| CPU | AMD Ryzen 5 5600G |
| GPU | AMD Radeon RX 6650 XT |
| MoBo | ASRock B450 Pro4-F R2.0 |
| RAM | 16 GB 3200 MHz |
| OS | Fedora 45 KDE Spin |
There are two very important things to keep in mind:
- You MUST have two GPUs (at least for this particular setup)!
- Your hardware must support running both GPUs at the same time!
This is actually possible with a combination like mine: one integrated GPU and one discrete GPU, provided that your motherboard supports using both simultaneously.
What does the procedure look like?
- Configure your BIOS and GPUs to work simultaneously.
- Boot into Linux and make sure everything works as expected.
- Choose which hardware should be assigned to each seat (especially the GPUs).
- Use
loginctl attachto assign the necessary hardware to the new seat.
I'm not going to provide detailed instructions with all the commands here. Instead, I'll just leave a link to the guide.
The number of seats is theoretically limited by the hardware you have available and the number of GPUs that can work simultaneously.
Also, you might run into problems with default display managers, as not all of them properly support multiseat setups. This can cause issues such as only one seat working after a reboot.
Luckily, a very nice person on the internet created a display manager with proper multiseat support: Atrium DM.
I believe you won't have any problems installing it! :)
What do you get?
Two completely separate workstations, allowing two users to use a single computer simultaneously, each with their own mouse, keyboard and monitor, running separate graphical sessions!
Congratulations! You've just multiplied your PC by the number of GPUs you have!!!
Have fun, and come back here! :)