Wishlist: "master-of-seat" tag

Dear Nvidia Developers,

Is it possible, or does it make sense, that the Nvidia installer create an udev rule for every Nvidia graphic device with: TAG+=“seat”, TAG+=“master-of-seat” So the device will show up in
loginctl seat-status seat0 and an user can "move" the card to an other seat with sudo loginctl attach seat1 <nvidia.device>



Nvidia’s drivers are linux agnostic. They don’t create sysfs entries, so they cannot cooperate with udev and systemd. In particular, udev rules don’t work at all. Proper managment of device file ownership is also impossible.

Try this udev rule:

SUBSYSTEM=="drm", KERNEL=="card[0-9]*", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="master-of-seat"

If your system does not have any /dev/dri/card* device files, try this other one:

SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", DRIVER=="nvidia", TAG+="seat", TAG+="master-of-seat"

And make sure you’re using Xorg server 1.16 or newer.