]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: XGI Z7/Z9 (XG20 core) graphic chip requires master-of-seat to be set
authorFranck Bui <fbui@suse.com>
Wed, 30 Jun 2021 07:09:37 +0000 (09:09 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 30 Jun 2021 15:18:41 +0000 (16:18 +0100)
This graphic chip doesn't have a DRM driver and fallback to vesa-framebuffer
driver.

Without this patch, users of such chip suddenly see their GUI broken without
any indication or reason of what happened (no error message). Hence this
regression is near to impossible to troubleshoot for end users.

src/login/71-seat.rules.in

index 809467c6c859d6636b4c2b4464d9d6f63999cdc3..e629a40094ede3d2d5f811c1a075c509bb36d84e 100644 (file)
@@ -29,6 +29,10 @@ SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", IMPORT{cmdline}="nomodeset", TAG+="mas
 SUBSYSTEM=="pci", ENV{ID_PCI_CLASS_FROM_DATABASE}=="Display controller", \
                   ENV{DRIVER}=="", IMPORT{cmdline}="nomodeset", TAG+="seat", TAG+="master-of-seat"
 
+# eXtreme Graphic Innovation Z7/Z9 (XG20 core), a rather ancient graphic chip,
+# doesn't have a DRM driver and fallback to vesafb.
+SUBSYSTEM=="pci", ATTR{vendor}=="0x18ca", ATTR{device}=="0x0020", 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