]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: add a vmbus id for HyperV Video device
authorLain "Fearyncess" Yang <fsf@live.com>
Thu, 30 May 2024 05:51:40 +0000 (13:51 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 30 May 2024 10:55:44 +0000 (12:55 +0200)
hwdb.d/60-seat.hwdb
hwdb.d/parse_hwdb.py

index fcb8f53cd1e21e5c7c3c0acac0977eab523f5f4c..927ea025a2057296d78c88eb30a9291d0f3d0ff8 100644 (file)
@@ -28,6 +28,13 @@ fb:pci:v000018CAd00000020*
 fb:pci:v00001414d00005353*
  ID_TAG_MASTER_OF_SEAT=1
 
+# In some HyperV VMs, the video device only can be recognized by a vmbus id.
+# So we should add a vmbus id for HyperV Video device.
+#
+# This id is extracted from Linux kernel's hyperv.h
+fb:vmbus:02780ada77e3ac4a8e770558eb1073f8
+ ID_TAG_MASTER_OF_SEAT=1
+
 #########################################
 # Parallels
 #########################################
index 4c970dcbc80d7c0679cc0e5da1404519c7c85611..64382db5332d248a33a20d2465bb7dcc9df10036 100755 (executable)
@@ -74,7 +74,7 @@ UDEV_TAG = Word(string.ascii_uppercase, alphanums + '_')
 # Those patterns are used in type-specific matches
 TYPES = {'mouse':    ('usb', 'bluetooth', 'ps2', '*'),
          'evdev':    ('name', 'atkbd', 'input'),
-         'fb':       ('pci'),
+         'fb':       ('pci', 'vmbus'),
          'id-input': ('modalias'),
          'touchpad': ('i8042', 'rmi', 'bluetooth', 'usb'),
          'joystick': ('i8042', 'rmi', 'bluetooth', 'usb'),