summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2021-07-01 21:34:34 +0200
committerFranck Bui <fbui@suse.com>2021-07-05 11:56:10 +0200
commit7802260baa551eee208e63c65598436f75ff84ee (patch)
treec086e17688c66262f1bbcca8c7564f866dc7ab44
parentc0b2e69f8815881d51b68b4f73e6c7f8cc2417a1 (diff)
downloadsystemd-7802260baa551eee208e63c65598436f75ff84ee.tar.gz
login: use a hwdb entry for tagging HyperV's fb devices with 'master-of-seat' tag
Graphic devices that don't do DRM and relies on fb devices are now listed in hwdb. Dedicated udev rules are no more needed.
-rw-r--r--hwdb.d/60-seat.hwdb9
-rw-r--r--src/login/71-seat.rules.in3
2 files changed, 9 insertions, 3 deletions
diff --git a/hwdb.d/60-seat.hwdb b/hwdb.d/60-seat.hwdb
index d280040c8a..ed30019901 100644
--- a/hwdb.d/60-seat.hwdb
+++ b/hwdb.d/60-seat.hwdb
@@ -18,3 +18,12 @@
# 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
diff --git a/src/login/71-seat.rules.in b/src/login/71-seat.rules.in
index 0ebbb8efe2..923cccdd29 100644
--- a/src/login/71-seat.rules.in
+++ b/src/login/71-seat.rules.in
@@ -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"