]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: use a hwdb entry for tagging HyperV's fb devices with 'master-of-seat' tag
authorFranck Bui <fbui@suse.com>
Thu, 1 Jul 2021 19:34:34 +0000 (21:34 +0200)
committerFranck Bui <fbui@suse.com>
Mon, 5 Jul 2021 09:56:10 +0000 (11:56 +0200)
Graphic devices that don't do DRM and relies on fb devices are now listed in
hwdb. Dedicated udev rules are no more needed.

hwdb.d/60-seat.hwdb
src/login/71-seat.rules.in

index d280040c8a3fda5965cb7b161b45a2d8a17dcc1f..ed3001990104222e28ce3fe3f2c08108ff473c89 100644 (file)
 # and falls back to vesafb.
 fb:pci:v000018CAd00000020*
  ID_TAG_MASTER_OF_SEAT=1
+
+#########################################
+# HyperV
+#########################################
+
+# HyperV currently doesn't do DRM, hence we need to synthesize for HyperV's fb
+# device instead.
+fb:pci:v00001414d00005353*
+ ID_TAG_MASTER_OF_SEAT=1
index 0ebbb8efe2ee2de18ac87a7d4444606a67373949..923cccdd29a7a00ae5058e530edababd38c208e4 100644 (file)
@@ -18,9 +18,6 @@ SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat"
 SUBSYSTEM=="leds", TAG+="seat"
 SUBSYSTEM=="backlight", TAG+="seat"
 
-# HyperV currently doesn't do DRM, hence we need to synthesize for HyperV's fb device instead
-SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", DRIVERS=="hyperv_fb", TAG+="master-of-seat"
-
 # Allow efifb / uvesafb to be a master if KMS is disabled
 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", IMPORT{cmdline}="nomodeset", TAG+="master-of-seat"