[PATCH] platform/x86: hp-wmi: Add OmniBook 7 14-fr0xxx to charge_behaviour quirks
From: Sergei Volkov
Date: Mon Nov 02 2026 - 15:29:35 EST
Extend the hp-wmi charge_behaviour quirk table with the HP OmniBook 7
14-fr0xxx (board 8E3B). The machine exposes battery charge mode control
through the same GBCO/SBCO WMI command 0x2b path as the Spectre 8C15/8C17
boards: inhibit-charge stops charging on AC, force-discharge discharges
on AC, and auto restores charging. As on other HP designs, the firmware
retains the mode across reboot, which the existing setup seed already
handles.
The extension is only registered after a successful GBCO read at probe,
so boards without the interface are unaffected by the new quirk.
Tested on HP OmniBook 7 14-fr0xxx (BIOS 94.19, board 8E3B):
inhibit-charge stops charging on AC and auto restores charging, and a
userspace 80 % hysteresis policy on top of charge_behaviour holds the
battery between 75 % and 80 % while plugged in.
Signed-off-by: Sergei Volkov <taranarmo@xxxxxxxxx>
---
Based on git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git for-next
drivers/platform/x86/hp/hp-wmi.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 52077833a..ea510696c 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -634,6 +634,13 @@ static const struct dmi_system_id hp_wmi_charge_control_quirks[] __initconst = {
DMI_MATCH(DMI_BOARD_NAME, "8C15"),
},
},
+ {
+ /* HP OmniBook 7 14-fr0xxx */
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
+ DMI_MATCH(DMI_BOARD_NAME, "8E3B"),
+ },
+ },
{}
};
#endif
--
2.56.0