Skip to content

Commit 7783e97

Browse files
gentoo-rootjwrdegoede
authored andcommitted
platform/x86/intel/hid: Add HP Dragonfly G2 to VGBS DMI quirks
HP Elite Dragonfly G2 (a convertible laptop/tablet) has a reliable VGBS method. If VGBS is not called on boot, the firmware sends an initial 0xcd event shortly after calling the BTNL method, but only if the device is booted in the laptop mode. However, if the device is booted in the tablet mode and VGBS is not called, there is no initial 0xcc event, and the input device for SW_TABLET_MODE is not registered up until the user turns the device into the laptop mode. Call VGBS on boot on this device to get the initial state of SW_TABLET_MODE in a reliable way. Tested with BIOS 1.13.1. Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com> Link: https://lore.kernel.org/r/20230716183213.64173-1-maxtram95@gmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent e3ab18d commit 7783e97

File tree

1 file changed

+6
-0
lines changed
  • drivers/platform/x86/intel

1 file changed

+6
-0
lines changed

drivers/platform/x86/intel/hid.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ static const struct dmi_system_id dmi_vgbs_allow_list[] = {
150150
DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go"),
151151
},
152152
},
153+
{
154+
.matches = {
155+
DMI_MATCH(DMI_SYS_VENDOR, "HP"),
156+
DMI_MATCH(DMI_PRODUCT_NAME, "HP Elite Dragonfly G2 Notebook PC"),
157+
},
158+
},
153159
{ }
154160
};
155161

0 commit comments

Comments
 (0)