From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B511C32BF24 for ; Wed, 29 Jul 2026 23:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785369180; cv=none; b=Dx2gAMTA3dkLwypt8di6VuSmcqRdPXW1fPONOXqvtYlufZLduGD6fS57lsv1yIYJ+HGxDBG+PmL+y3AtjkqMO/XFqfKuuFfiadRNYJE0vLYFYnAm6ySdWNjFPRGwjnr9/In1FAKIFsWlwvqNZz8ic9qEL8xwf0GhLYOoRIb9G3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785369180; c=relaxed/simple; bh=79W9oBMk/ds6NNokcHqp0t+a+topi7vU7hzhVRyXnFU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KP9+B9HEtgGh33XqpG+qYDtcE09+++HHzqYf6pw/PNtB1pL23y/4whdJJP80XAPk50KOfPoladkbY8VSukilCQIS1CcxX4PzJRUi4mp5TbYcBpZKz9rryAOejMoKQLfRFTYdT1s7FTf3O8RdelhPw29NPbYXN4y9pXoP+F9KjWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=pE+RMP2x; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pE+RMP2x" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-92e6391b114so121489085a.3 for ; Wed, 29 Jul 2026 16:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785369178; x=1785973978; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pS1M2hlP5/T4v0QABfckm+Bb6KcvE3YFOHjytnFxlJQ=; b=pE+RMP2xY2jTdDQ4/4p9qyzZO+vkxrl69lXg/VbmOFtcxt5ceWNrbjKcEjQlU38Ds4 XjFfpAsghFkS71UwhPgPTkURDyTKqQXiScaNWgOVU+ByxHRj5E28KW+PL6aLlGi9Duvt zc2CQL8ISsfoIy/YzO+9RKqHLedPEJ5x3KawOMtykg0baCAzG88I8Y+Z5SvRZuDsfMTk PqyZpEjpecotIZExXbANObgemWUbX9dK2wuGNAusF+vKi7r496Tyvdo/KD6l3Xru1dOc mxW5eytqobqteUibOkrcdfovbCKEfkgVZbQJh0okrzUbxKNr+vIDXQHWyY4unVQuRcEW H0xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785369178; x=1785973978; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=pS1M2hlP5/T4v0QABfckm+Bb6KcvE3YFOHjytnFxlJQ=; b=YCIIbg4rn1x9fAbJhiYoG8YEfuAvrPfHrWqxbWqBPt2oaFr2Nu78JLLhnsspC11RVy Uc8WovntH8mSc3zDGpVyJRDfY0msmqM/R6OiBnzx2lvtK+ulZjwrTGFiElgmqJmphENI /oh+9kK/8pRB6dmsIatYbz44WzoEQ5VIN+EeU76sbmUF2wcKcTi8RKIjzdoEll9I36ks iJiI/x7cbg+F8TDwzs4r2lfUZXbnNdvz/Bs9aGxuef5lJDPdNieUcVPCOAOuvtzR6niT QLUixmojGEng+bA8vXcCUj+a63jKtEnNeMI/60FrnH7ok0mhbAbZgfYpbXWdyhm/wYf5 6NLA== X-Forwarded-Encrypted: i=1; AHgh+Rq4cJGq2buvFxbSeJjFlNR0k54lVwUp947Ax9K8o6nvgbcjdDnLCYsDszYZwbxWYcZq5sljKNU8N+VzTcw=@vger.kernel.org X-Gm-Message-State: AOJu0YxBypT/tcw0Uc1ByoDh+LtcTsoMY2vG5NAaIuFu7e8GxdQx0PQh 9iU1DY0N/asxlg/nnMvPwHvEG8bb/7INvoQ1y/CMtnAXujrVFS78or0= X-Gm-Gg: AR+sD12oMFCBQsoO6Spjsxt7CXFi/ey5srssRebt+I6FzyvWR8yAL15myuh5XwFNRPm XkaedG3wRVXXt8ix5p08Ryw5EQ5gN0WgG8Va8/mfmVg3acF7AjaWSpHG7xJZAn0okx7Bt/09jCM 2fIpc0l5vvgv+/jBCoYKWjk1IHZAo/2Xz682GFKIkX2N/IfJRSmKewA7roTj+OL2Jowp+E/EYQR WPDTjgytIySlac84xIVG6+e3YKTQawuUgjym6HpCSHvn6CUNUDcnrOqbCIIiFS8USLRWg+GPYNI YI9ZKMsxlGVM7u9LprWwqCjZiWQiaWP4V/o0X4A+YOb0EitLa3cStWW/u2ufiaqB+QmGv8NkKht iLKLaGMSmCL6nMlYaGBjvO9uRgKGrSw+ItWoDFGyQCUBV/NIg7HcgXzM8Wbn7UL3uAhLuRtGdzq NPH5OBSJTDl0v5SRtwcgzWlDL7ennsdkkp9EYQ/j0ZGfwIIbTr1DOVaaN1+ZKSEJXnh0mJnQHw9 sqoYI3o8ppGlG8O6ypAtovxeypWXc0UV5l/qKdLuGJjBpT1bxFPzYY0XA== X-Received: by 2002:a05:620a:4446:b0:930:f889:3092 with SMTP id af79cd13be357-9348614e732mr40465885a.54.1785369177627; Wed, 29 Jul 2026 16:52:57 -0700 (PDT) Received: from localhost.localdomain (ool-4577f7ba.dyn.optonline.net. [69.119.247.186]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-908323e8bc0sm2844296d6.26.2026.07.29.16.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2026 16:52:57 -0700 (PDT) From: Justin Vargas To: jlee@suse.com, hansg@kernel.org, ilpo.jarvinen@linux.intel.com Cc: W_Armin@gmx.de, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Justin Vargas Subject: [PATCH v2] platform/x86: acer-wmi: Add support for Acer Nitro ANV15-51 Date: Wed, 29 Jul 2026 19:51:25 -0400 Message-ID: <20260729235125.1698-1-justinyvar@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260729222920.6490-1-justinyvar@gmail.com> References: <20260729222920.6490-1-justinyvar@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Acer Nitro ANV15-51 uses the Predator V4 WMI interface for thermal profile handling and hardware monitoring, but has no quirk entry, so these features are only available when the predator_v4 module parameter is passed manually. Add a quirk entry for this model. Note that this machine does not support the turbo thermal profile: its supported profiles bitmap (misc setting 0x0A) reads 0x53, and writing PLATFORM_PROFILE_PERFORMANCE is rejected by the firmware. The four remaining profiles work as expected. Assisted-by: Claude:claude-opus-5 Signed-off-by: Justin Vargas Tested-by: Justin Vargas --- v2: Add Assisted-by trailer per Documentation/process/coding-assistants.rst. No change to the code. Tested on an Acer Nitro ANV15-51, BIOS V1.60 (04/08/2026), kernel 7.0.11-1-cachyos: $ sudo dmidecode -s system-product-name Nitro ANV15-51 $ sudo modprobe acer_wmi predator_v4=1 $ cat /sys/firmware/acpi/platform_profile_choices low-power quiet balanced balanced-performance performance Writing low-power, quiet, balanced and balanced-performance all succeed and audibly change fan behaviour. Writing performance is rejected by the firmware, consistent with the supported profiles bitmap (0x0A) reading 0x53, i.e. bit 5 (turbo) clear. hwmon works: sensors reports acer-isa-0ace with fan1 3024 RPM, fan2 2685 RPM, temp1 +48.0 C. The WMI mechanism was cross-checked on Windows, where NitroSense switches profiles via SetGamingMiscSetting with index 0x0B and the same profile values used by this driver. 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index e0eaaefb13d..a7290f85166 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -662,6 +662,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_predator_v4, + }, { .callback = dmi_matched, .ident = "Acer Predator PH315-53", -- 2.47.3