]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86/intel/hid: Add HP Dragonfly G2 to VGBS DMI quirks
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Sun, 16 Jul 2023 18:32:13 +0000 (21:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:28 +0000 (12:22 +0200)
commita9988b9c7a31a2d006611f4f3dd35b7792435994
tree7d6a5089c1c5017a3223683db6582b5900d626fe
parent7f3901b04c8f6099612b00f0a07c13e688820ab1
platform/x86/intel/hid: Add HP Dragonfly G2 to VGBS DMI quirks

[ Upstream commit 7783e97f8558ad7a4d1748922461bc88483fbcdf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/intel/hid.c