mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: hp-wmi: Add OmniBook 7 14-fr0xxx to charge_behaviour quirks
@ 2026-11-02 14:34 Sergei Volkov
  0 siblings, 0 replies; only message in thread
From: Sergei Volkov @ 2026-11-02 14:34 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: ilpo.jarvinen, hansg, linux-kernel, Sergei Volkov

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@gmail.com>
---
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-02 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 14:34 [PATCH] platform/x86: hp-wmi: Add OmniBook 7 14-fr0xxx to charge_behaviour quirks Sergei Volkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®