From: Marco Scardovi <scardracs@disroot.org>
To: platform-driver-x86@vger.kernel.org
Cc: luke@ljones.dev, ilpo.jarvinen@linux.intel.com, hansg@kernel.org,
corentin.chary@gmail.com, denis.benato@linux.dev,
linux-kernel@vger.kernel.org,
Marco Scardovi <scardracs@disroot.org>
Subject: [PATCH 2/2] platform/x86: asus-armoury: add Whisper Mode attributes
Date: Tue, 28 Jul 2026 09:18:39 +0200 [thread overview]
Message-ID: <20260728071843.130492-3-scardracs@disroot.org> (raw)
In-Reply-To: <20260728071843.130492-1-scardracs@disroot.org>
Expose Whisper Mode sysfs attributes in asus-armoury.
Certain ASUS laptops support BIOS Whisper Mode acoustic profiles (both dynamic
control and BIOS-level toggle) via WMI.
Add helper attribute groups for:
- whisper_mode (read/write): BIOS Whisper Mode toggle
- whisper_enable (read/write): Enable Dynamic Whisper
- whisper_status (read/write): Dynamic Whisper status and control
And register them in armoury_attr_groups.
No functional impact on existing sysfs attributes; only adds new optional
Whisper Mode attributes when supported by device WMI.
Assisted-by: Antigravity:gemini-3.6-flash
Signed-off-by: Marco Scardovi <scardracs@disroot.org>
---
drivers/platform/x86/asus-armoury.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c
index 93d9665717af..398b81f15aac 100644
--- a/drivers/platform/x86/asus-armoury.c
+++ b/drivers/platform/x86/asus-armoury.c
@@ -805,6 +805,17 @@ ASUS_ATTR_GROUP_ROG_TUNABLE(nv_tgp, "nv_tgp", ASUS_WMI_DEVID_DGPU_SET_TGP,
ASUS_ATTR_GROUP_INT_VALUE_ONLY_RO(nv_base_tgp, ATTR_NV_BASE_TGP, ASUS_WMI_DEVID_DGPU_BASE_TGP,
"Read the base TGP value");
+/* Whisper Mode attributes */
+ASUS_ATTR_GROUP_BOOL_RW(whisper_mode, "whisper_mode",
+ ASUS_WMI_DEVID_WHISPER_MODE,
+ "Set BIOS Whisper Mode");
+ASUS_ATTR_GROUP_BOOL_RW(whisper_enable, "whisper_enable",
+ ASUS_WMI_DEVID_WHISPER_ENABLE,
+ "Enable Dynamic Whisper");
+ASUS_ATTR_GROUP_BOOL_RW(whisper_status, "whisper_status",
+ ASUS_WMI_DEVID_WHISPER_STATUS,
+ "Dynamic Whisper status and control");
+
/* If an attribute does not require any special case handling add it here */
static const struct asus_attr_group armoury_attr_groups[] = {
{ &egpu_connected_attr_group, ASUS_WMI_DEVID_EGPU_CONNECTED },
@@ -828,6 +839,9 @@ static const struct asus_attr_group armoury_attr_groups[] = {
{ &panel_od_attr_group, ASUS_WMI_DEVID_PANEL_OD },
{ &panel_hd_mode_attr_group, ASUS_WMI_DEVID_PANEL_HD },
{ &screen_auto_brightness_attr_group, ASUS_WMI_DEVID_SCREEN_AUTO_BRIGHTNESS },
+ { &whisper_mode_attr_group, ASUS_WMI_DEVID_WHISPER_MODE },
+ { &whisper_enable_attr_group, ASUS_WMI_DEVID_WHISPER_ENABLE },
+ { &whisper_status_attr_group, ASUS_WMI_DEVID_WHISPER_STATUS },
};
/**
--
2.55.0
next prev parent reply other threads:[~2026-07-28 7:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 7:18 [PATCH 0/2] platform/x86: asus-armoury: add Whisper Mode support Marco Scardovi
2026-07-28 7:18 ` [PATCH 1/2] platform/x86: asus-wmi: add Whisper Mode WMI device ID defines Marco Scardovi
2026-07-28 7:18 ` Marco Scardovi [this message]
2026-07-28 11:39 ` [PATCH 0/2] platform/x86: asus-armoury: add Whisper Mode support Hans de Goede
2026-07-28 13:56 ` Marco Scardovi
2026-07-29 7:32 ` Hans de Goede
2026-07-29 13:10 ` Denis Benato
2026-07-29 13:22 ` Marco Scardovi
2026-07-29 13:34 ` Denis Benato
2026-07-29 14:43 ` Marco Scardovi
2026-08-24 16:36 ` Ilpo Järvinen
2026-08-24 16:31 ` Ilpo Järvinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260728071843.130492-3-scardracs@disroot.org \
--to=scardracs@disroot.org \
--cc=corentin.chary@gmail.com \
--cc=denis.benato@linux.dev \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®