From f01994380e24a2ed04004b8f3cd176b8d5335b7c Mon Sep 17 00:00:00 2001 From: Adam Nielsen Date: Mon, 8 Jun 2020 12:40:47 +1000 Subject: [PATCH] login: allow individual USB ports to be assigned to seats Assigning seats to specific USB ports lets the devices plugged into them inherit the port's seat assignment. --- src/login/71-seat.rules.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/login/71-seat.rules.in b/src/login/71-seat.rules.in index 2bbd18363e..60dd6add60 100644 --- a/src/login/71-seat.rules.in +++ b/src/login/71-seat.rules.in @@ -30,6 +30,11 @@ SUBSYSTEM=="pci", ENV{ID_PCI_CLASS_FROM_DATABASE}=="Display controller", \ ENV{DRIVER}=="", IMPORT{cmdline}="nomodeset", TAG+="seat", TAG+="master-of-seat" SUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="seat", TAG+="master-of-seat" + +# Allow individual USB ports to be assigned to a seat +SUBSYSTEM=="usb", ATTR{bDeviceClass}=="00", TAG+="seat" + +# Allow USB hubs (and all downstream ports) to be assigned to a seat SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat" # 'Plugable' USB hub, sound, network, graphics adapter