[PATCH v4] platform/x86: acer-wmi: Add support for Acer Nitro ANV15-51

Justin Vargas posted 1 patch 4 days, 15 hours ago
drivers/platform/x86/acer-wmi.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
[PATCH v4] platform/x86: acer-wmi: Add support for Acer Nitro ANV15-51
Posted by Justin Vargas 4 days, 15 hours ago
The Acer Nitro ANV15-51 uses the Predator V4 WMI interface for thermal
profile handling, hardware monitoring and fan control, but has no quirk
entry, so none of these features are available.

Add a quirk entry for this model.

Note that this machine does not support the turbo thermal profile:
writing PLATFORM_PROFILE_PERFORMANCE is rejected by the firmware with
-EIO. The four remaining profiles work as expected.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Justin Vargas <justinyvar@gmail.com>
Tested-by: Justin Vargas <justinyvar@gmail.com>
---
v4: Rebased onto review-ilpo-next as requested. The quirk now sets
    .hwmon and .platform_profile separately following 4bee415640e
    ("platform/x86: acer-wmi: split hwmon from platform profile quirk"),
    and uses bool values following 93f8ae8a26b ("platform/x86: acer-wmi:
    use bool for boolean quirk fields"). Dropped the reference to the
    supported profiles bitmap from the commit message, since b0908e03fdd4
    ("platform/x86: acer-wmi: Stop using ACPI bitmap for platform profile
    choices") stopped trusting it; the turbo claim now rests only on the
    firmware rejecting the write. Retested on the new base.
v3: Use a model-specific quirk_entry with cpu_fans, gpu_fans and pwm
    set, as suggested by Armin Wolf, instead of reusing
    quirk_acer_predator_v4. Fan control tested.
v2: Add Assisted-by trailer per
    Documentation/process/coding-assistants.rst.

Tested on an Acer Nitro ANV15-51, BIOS V1.60 (04/08/2026), by building
this patch as an out-of-tree acer-wmi module against kernel
7.2.6-1-cachyos and loading it on the machine. No module parameter was
needed - the DMI quirk matches on its own.

Thermal profiles:

  $ cat /sys/firmware/acpi/platform_profile_choices
  low-power quiet balanced balanced-performance performance

  low-power, quiet, balanced and balanced-performance all apply
  successfully. Writing performance fails with -EIO.

hwmon and fan control, via the acer hwmon device:

  pwm1_enable  pwm1   fan1 (CPU)  fan2 (GPU)
  2 (auto)     229    2501 RPM    2286 RPM
  1 (manual)   255    8136 RPM    2303 RPM
  1 (manual)   128    4464 RPM    2293 RPM

  Driving pwm2 to 255 raised fan2 to 7309 RPM while fan1 was unaffected,
  so the two fans are independently controllable. Restoring
  pwm1_enable/pwm2_enable to 2 returned both fans to automatic control.

  temp1_input, temp2_input and temp3_input are also exposed.

  Note: .cpu_fans and .gpu_fans are set here following
  quirk_acer_predator_ph16_72, and this is the configuration that was
  tested. If you would prefer them dropped, as in
  quirk_acer_nitro_an515_58, I am happy to send a v5.

The analysis and patch were produced with AI assistance (see the
Assisted-by trailer); all testing was performed by me on the physical
machine, and I take responsibility for the patch as signed off above.

 drivers/platform/x86/acer-wmi.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index d3d741aad55..51b2ae9e57a 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -474,6 +474,14 @@ static struct quirk_entry quirk_acer_predator_ph315_53 = {
 	.gpu_fans = 1,
 };
 
+static struct quirk_entry quirk_acer_nitro_anv15_51 = {
+	.cpu_fans = 1,
+	.gpu_fans = 1,
+	.hwmon = true,
+	.platform_profile = true,
+	.pwm = true,
+};
+
 static struct quirk_entry quirk_acer_predator_ph16_72 = {
 	.turbo = true,
 	.cpu_fans = 1,
@@ -682,6 +690,15 @@ static const struct dmi_system_id acer_quirks[] __initconst = {
 		},
 		.driver_data = &quirk_acer_nitro_an515_58,
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "Acer Nitro ANV15-51",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Nitro ANV15-51"),
+		},
+		.driver_data = &quirk_acer_nitro_anv15_51,
+	},
 	{
 		.callback = dmi_matched,
 		.ident = "Acer Predator PH315-53",

base-commit: f475845eaf3d749114a63270bf2efea459e14dd2
-- 
2.47.3