* [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
@ 2026-11-23 23:27 Riccardo Zanghí
2026-11-24 18:48 ` Denis Benato
0 siblings, 1 reply; 10+ messages in thread
From: Riccardo Zanghí @ 2026-11-23 23:27 UTC (permalink / raw)
To: platform-driver-x86
Cc: hansg, ilpo.jarvinen, luke@ljones.dev, denis.benato,
ddadap@nvidia.com, linux-acpi
Hello,
On an ASUS TUF Gaming A16 (AMD iGPU + RTX 5060 Max-Q, MUX switch) no
single kernel command line gives working brightness control in all
graphics modes.
Laptop: ASUS TUF Gaming A16 FA608UM_FA608UM
BIOS: FA608UM.311
Kernel: 7.3.5-2-cachyos
NVIDIA: nvidia-open 620.73.04 (nvidia-drm modeset=Y)
Distro: CachyOS, KDE Plasma (Wayland)
asus-nb-wmi exposes gpu_mux_mode on this machine.
Observed ("type" in parentheses where recorded):
1. Integrated and hybrid, no backlight parameters:
/sys/class/backlight contains only nvidia_wmi_ec_backlight
(firmware). Brightness control works.
2. dGPU (MUX), no backlight parameters:
Same single device (firmware, max 200). Writes are accepted but
the panel does not change. The kernel log contains:
"nvidia-modeset: ACPI reported no NVIDIA native backlight
available; attempting to use ACPI backlight."
3. dGPU with acpi_backlight=native:
Only nvidia_0 exists (raw, max 100), and it controls the panel.
The message above no longer appears in the kernel log. If
nvidia_wmi_ec_backlight.force=1 is added as well,
nvidia_wmi_ec_backlight (max 200) also appears, but only
nvidia_0 changes the panel.
4. Integrated with acpi_backlight=native:
Only amdgpu_bl1 exists. It accepts writes but the panel does not
change.
So integrated and dGPU need opposite settings: the default works in
integrated (and hybrid), while dGPU needs acpi_backlight=native, and
each setting breaks the other mode. I have not tested hybrid with
acpi_backlight=native. In dGPU mode the NVIDIA driver appears to ask
ACPI for a native backlight, get "no", and fall back to a device that
does not control the panel.
Similar reports on other A16 models:
https://github.com/OpenGamingCollective/asusctl/issues/118
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.14/+bug/2134615
Would a MUX-aware backlight choice be acceptable here, or is a DMI
quirk the expected route? I can test patches and provide dmesg or
acpidump output if that helps.
Thanks,
Riccardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-23 23:27 [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes Riccardo Zanghí
@ 2026-11-24 18:48 ` Denis Benato
2026-11-24 20:17 ` Armin Wolf
0 siblings, 1 reply; 10+ messages in thread
From: Denis Benato @ 2026-11-24 18:48 UTC (permalink / raw)
To: Riccardo Zanghí, platform-driver-x86
Cc: hansg, ilpo.jarvinen, luke@ljones.dev, ddadap@nvidia.com,
linux-acpi
On 11/24/26 00:27, Riccardo Zanghí wrote:
> Hello,
>
> On an ASUS TUF Gaming A16 (AMD iGPU + RTX 5060 Max-Q, MUX switch) no
> single kernel command line gives working brightness control in all
> graphics modes.
>
> Laptop: ASUS TUF Gaming A16 FA608UM_FA608UM
> BIOS: FA608UM.311
> Kernel: 7.3.5-2-cachyos
> NVIDIA: nvidia-open 620.73.04 (nvidia-drm modeset=Y)
> Distro: CachyOS, KDE Plasma (Wayland)
>
> asus-nb-wmi exposes gpu_mux_mode on this machine.
>
> Observed ("type" in parentheses where recorded):
>
> 1. Integrated and hybrid, no backlight parameters:
> /sys/class/backlight contains only nvidia_wmi_ec_backlight
> (firmware). Brightness control works.
>
> 2. dGPU (MUX), no backlight parameters:
> Same single device (firmware, max 200). Writes are accepted but
> the panel does not change. The kernel log contains:
> "nvidia-modeset: ACPI reported no NVIDIA native backlight
> available; attempting to use ACPI backlight."
>
> 3. dGPU with acpi_backlight=native:
> Only nvidia_0 exists (raw, max 100), and it controls the panel.
> The message above no longer appears in the kernel log. If
> nvidia_wmi_ec_backlight.force=1 is added as well,
> nvidia_wmi_ec_backlight (max 200) also appears, but only
> nvidia_0 changes the panel.
>
> 4. Integrated with acpi_backlight=native:
> Only amdgpu_bl1 exists. It accepts writes but the panel does not
> change.
>
> So integrated and dGPU need opposite settings: the default works in
> integrated (and hybrid), while dGPU needs acpi_backlight=native, and
> each setting breaks the other mode. I have not tested hybrid with
> acpi_backlight=native. In dGPU mode the NVIDIA driver appears to ask
> ACPI for a native backlight, get "no", and fall back to a device that
> does not control the panel.
>
> Similar reports on other A16 models:
> https://github.com/OpenGamingCollective/asusctl/issues/118
> https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.14/+bug/2134615
>
> Would a MUX-aware backlight choice be acceptable here, or is a DMI
> quirk the expected route? I can test patches and provide dmesg or
> acpidump output if that helps.
Hi Riccardo,
I have tried to check what the nvidia driver does, I am not sure but I think the
problem is that on kernel code does not return true on acpi_video_backlight_use_native()
and thus something else (that doesn't work) gets selected.
Probably because the ACPI is returning something wrong or that the kernel
is not interpreting correctly: unsure.
However this has little to do with the gpu switch as the switch itself, so IMHO
the best thing is to identify the correct people that maintain the code in
acpi_video_backlight_use_native and CC them.
I am unsure if a DMI switch can solve the problem in both configurations,
and having a check to use acpi_backlight=native in dGPU mode will surely
break a lot of other laptops, maybe a combination of the two could work...
But either way we need to hear them: I don't know enough on that to be
useful on solving this without causing more troubles than I would solve.
> Thanks,
> Riccardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-24 18:48 ` Denis Benato
@ 2026-11-24 20:17 ` Armin Wolf
2026-11-24 20:31 ` Denis Benato
2026-11-24 23:10 ` Riccardo Zanghí
0 siblings, 2 replies; 10+ messages in thread
From: Armin Wolf @ 2026-11-24 20:17 UTC (permalink / raw)
To: Denis Benato, Riccardo Zanghí, platform-driver-x86
Cc: hansg, ilpo.jarvinen, luke@ljones.dev, ddadap@nvidia.com,
linux-acpi
Am 24.11.26 um 19:48 schrieb Denis Benato:
> On 11/24/26 00:27, Riccardo Zanghí wrote:
>> Hello,
>>
>> On an ASUS TUF Gaming A16 (AMD iGPU + RTX 5060 Max-Q, MUX switch) no
>> single kernel command line gives working brightness control in all
>> graphics modes.
>>
>> Laptop: ASUS TUF Gaming A16 FA608UM_FA608UM
>> BIOS: FA608UM.311
>> Kernel: 7.3.5-2-cachyos
>> NVIDIA: nvidia-open 620.73.04 (nvidia-drm modeset=Y)
>> Distro: CachyOS, KDE Plasma (Wayland)
>>
>> asus-nb-wmi exposes gpu_mux_mode on this machine.
>>
>> Observed ("type" in parentheses where recorded):
>>
>> 1. Integrated and hybrid, no backlight parameters:
>> /sys/class/backlight contains only nvidia_wmi_ec_backlight
>> (firmware). Brightness control works.
>>
>> 2. dGPU (MUX), no backlight parameters:
>> Same single device (firmware, max 200). Writes are accepted but
>> the panel does not change. The kernel log contains:
>> "nvidia-modeset: ACPI reported no NVIDIA native backlight
>> available; attempting to use ACPI backlight."
>>
>> 3. dGPU with acpi_backlight=native:
>> Only nvidia_0 exists (raw, max 100), and it controls the panel.
>> The message above no longer appears in the kernel log. If
>> nvidia_wmi_ec_backlight.force=1 is added as well,
>> nvidia_wmi_ec_backlight (max 200) also appears, but only
>> nvidia_0 changes the panel.
>>
>> 4. Integrated with acpi_backlight=native:
>> Only amdgpu_bl1 exists. It accepts writes but the panel does not
>> change.
>>
>> So integrated and dGPU need opposite settings: the default works in
>> integrated (and hybrid), while dGPU needs acpi_backlight=native, and
>> each setting breaks the other mode. I have not tested hybrid with
>> acpi_backlight=native. In dGPU mode the NVIDIA driver appears to ask
>> ACPI for a native backlight, get "no", and fall back to a device that
>> does not control the panel.
>>
>> Similar reports on other A16 models:
>> https://github.com/OpenGamingCollective/asusctl/issues/118
>> https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.14/+bug/2134615
>>
>> Would a MUX-aware backlight choice be acceptable here, or is a DMI
>> quirk the expected route? I can test patches and provide dmesg or
>> acpidump output if that helps.
> Hi Riccardo,
>
> I have tried to check what the nvidia driver does, I am not sure but I think the
> problem is that on kernel code does not return true on acpi_video_backlight_use_native()
> and thus something else (that doesn't work) gets selected.
>
> Probably because the ACPI is returning something wrong or that the kernel
> is not interpreting correctly: unsure.
>
> However this has little to do with the gpu switch as the switch itself, so IMHO
> the best thing is to identify the correct people that maintain the code in
> acpi_video_backlight_use_native and CC them.
>
> I am unsure if a DMI switch can solve the problem in both configurations,
> and having a check to use acpi_backlight=native in dGPU mode will surely
> break a lot of other laptops, maybe a combination of the two could work...
>
> But either way we need to hear them: I don't know enough on that to be
> useful on solving this without causing more troubles than I would solve.
Hi,
if i understand correctly then the WMI interface is not supposed to act as the
central backlight interface for the integrated panel under Windows, instead a usermode
service likely listens for backlight changes and notifies the EC using said WMI
device.
AFAIK Windows will automatically fall back to the ACPI backlight interface if the
driver does not provide a native backlight interface itself, so this strategy differs
a lot from the strategy used in Linux. Can you share the output of "acpidump"?
Thanks,
Armin Wolf
>> Thanks,
>> Riccardo
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-24 20:17 ` Armin Wolf
@ 2026-11-24 20:31 ` Denis Benato
2026-11-24 23:10 ` Riccardo Zanghí
1 sibling, 0 replies; 10+ messages in thread
From: Denis Benato @ 2026-11-24 20:31 UTC (permalink / raw)
To: Armin Wolf, Riccardo Zanghí, platform-driver-x86
Cc: hansg, ilpo.jarvinen, luke@ljones.dev, ddadap@nvidia.com,
linux-acpi
On 11/24/26 21:17, Armin Wolf wrote:
> Am 24.11.26 um 19:48 schrieb Denis Benato:
>
>> On 11/24/26 00:27, Riccardo Zanghí wrote:
>>> Hello,
>>>
>>> On an ASUS TUF Gaming A16 (AMD iGPU + RTX 5060 Max-Q, MUX switch) no
>>> single kernel command line gives working brightness control in all
>>> graphics modes.
>>>
>>> Laptop: ASUS TUF Gaming A16 FA608UM_FA608UM
>>> BIOS: FA608UM.311
>>> Kernel: 7.3.5-2-cachyos
>>> NVIDIA: nvidia-open 620.73.04 (nvidia-drm modeset=Y)
>>> Distro: CachyOS, KDE Plasma (Wayland)
>>>
>>> asus-nb-wmi exposes gpu_mux_mode on this machine.
>>>
>>> Observed ("type" in parentheses where recorded):
>>>
>>> 1. Integrated and hybrid, no backlight parameters:
>>> /sys/class/backlight contains only nvidia_wmi_ec_backlight
>>> (firmware). Brightness control works.
>>>
>>> 2. dGPU (MUX), no backlight parameters:
>>> Same single device (firmware, max 200). Writes are accepted but
>>> the panel does not change. The kernel log contains:
>>> "nvidia-modeset: ACPI reported no NVIDIA native backlight
>>> available; attempting to use ACPI backlight."
>>>
>>> 3. dGPU with acpi_backlight=native:
>>> Only nvidia_0 exists (raw, max 100), and it controls the panel.
>>> The message above no longer appears in the kernel log. If
>>> nvidia_wmi_ec_backlight.force=1 is added as well,
>>> nvidia_wmi_ec_backlight (max 200) also appears, but only
>>> nvidia_0 changes the panel.
>>>
>>> 4. Integrated with acpi_backlight=native:
>>> Only amdgpu_bl1 exists. It accepts writes but the panel does not
>>> change.
>>>
>>> So integrated and dGPU need opposite settings: the default works in
>>> integrated (and hybrid), while dGPU needs acpi_backlight=native, and
>>> each setting breaks the other mode. I have not tested hybrid with
>>> acpi_backlight=native. In dGPU mode the NVIDIA driver appears to ask
>>> ACPI for a native backlight, get "no", and fall back to a device that
>>> does not control the panel.
>>>
>>> Similar reports on other A16 models:
>>> https://github.com/OpenGamingCollective/asusctl/issues/118
>>> https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.14/+bug/2134615
>>>
>>> Would a MUX-aware backlight choice be acceptable here, or is a DMI
>>> quirk the expected route? I can test patches and provide dmesg or
>>> acpidump output if that helps.
>> Hi Riccardo,
>>
>> I have tried to check what the nvidia driver does, I am not sure but I think the
>> problem is that on kernel code does not return true on acpi_video_backlight_use_native()
>> and thus something else (that doesn't work) gets selected.
>>
>> Probably because the ACPI is returning something wrong or that the kernel
>> is not interpreting correctly: unsure.
>>
>> However this has little to do with the gpu switch as the switch itself, so IMHO
>> the best thing is to identify the correct people that maintain the code in
>> acpi_video_backlight_use_native and CC them.
>>
>> I am unsure if a DMI switch can solve the problem in both configurations,
>> and having a check to use acpi_backlight=native in dGPU mode will surely
>> break a lot of other laptops, maybe a combination of the two could work...
>>
>> But either way we need to hear them: I don't know enough on that to be
>> useful on solving this without causing more troubles than I would solve.
>
> Hi,
>
I will add some more asus-specific context.
The vast majority or ROG laptops (and some TUFs) have a dGPU switch and a
MUX switch. The MUX decides what device is connected to the screen and is
setup once at boot so a reboot is always needed to apply the setting.
The dGPU switch can be implemented in many ways: there are laptops that
apply it at reboot, while others can toggle it off while the GPU is fully off, in fact
we have added a wmi method to check that too to asus-armoury.
Those two switch can (depending on the model) change what the ACPI does
and what is exposed to the system.
Hopefully this is useful to solve the issue, I think it's the most I can do at least
for now.
> if i understand correctly then the WMI interface is not supposed to act as the
> central backlight interface for the integrated panel under Windows, instead a usermode
> service likely listens for backlight changes and notifies the EC using said WMI
> device.
>
> AFAIK Windows will automatically fall back to the ACPI backlight interface if the
> driver does not provide a native backlight interface itself, so this strategy differs
> a lot from the strategy used in Linux. Can you share the output of "acpidump"?
>
> Thanks,
> Armin Wolf
>
>>> Thanks,
>>> Riccardo
>>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-24 20:17 ` Armin Wolf
2026-11-24 20:31 ` Denis Benato
@ 2026-11-24 23:10 ` Riccardo Zanghí
2026-11-25 13:20 ` Daniel Dadap
1 sibling, 1 reply; 10+ messages in thread
From: Riccardo Zanghí @ 2026-11-24 23:10 UTC (permalink / raw)
To: Armin Wolf
Cc: Denis Benato, platform-driver-x86, hansg, ilpo.jarvinen,
luke@ljones.dev, ddadap@nvidia.com, linux-acpi
On Tue, 24 Nov 2026 at 21:17, Armin Wolf <W_Armin@gmx.de> wrote:
> AFAIK Windows will automatically fall back to the ACPI backlight
> interface if the driver does not provide a native backlight
> interface itself, so this strategy differs a lot from the strategy
> used in Linux. Can you share the output of "acpidump"?
Hi Armin and Denis,
Here are the acpidump outputs, one file per mode, taken from separate
boots after switching with supergfxctl:
https://gist.github.com/Piadineitor09/062d3327731e5ec38fefcf5ae9064a26
acpidump-dgpu.txt (gpu_mux_mode = 0)
acpidump-integrated.txt(integrated mode)
The two dumps are different (cmp reports a difference),
so the ACPI tables do change with the mode.
Thanks,
Riccardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-24 23:10 ` Riccardo Zanghí
@ 2026-11-25 13:20 ` Daniel Dadap
2026-11-25 18:03 ` Riccardo Zanghí
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Dadap @ 2026-11-25 13:20 UTC (permalink / raw)
To: Riccardo Zanghí, Armin Wolf
Cc: Denis Benato, platform-driver-x86@vger.kernel.org,
hansg@kernel.org, ilpo.jarvinen@linux.intel.com, luke@ljones.dev,
linux-acpi@vger.kernel.org
(This is my third attempt to send this message. The first attempt got bounced
by the mailing lists due to a DMARC mismatch, I sent the second in the hopes
that the first issue was transient, since I was able to send the same message to
myself at a personal e-mail address without issue, but that bounced as well, so
this attempt is made with a different mail client (Outlook), since it integrates
with our corporate mail system differently. It seems quite likely that both of the
previous attempts would have delivered to the individual non-list recipients, so
I apologize for the duplication. If individuals do indeed receive this message, I
would appreciate it if somebody would pass my notes along to the list, in case
I continue to struggle with getting the message to post directly.)
On Wed, Nov 25, 2026 at 12:10:01AM +0100, Riccardo Zanghí wrote:
> On Tue, 24 Nov 2026 at 21:17, Armin Wolf <W_Armin@gmx.de> wrote:
> > AFAIK Windows will automatically fall back to the ACPI backlight
> > interface if the driver does not provide a native backlight
> > interface itself, so this strategy differs a lot from the strategy
> > used in Linux. Can you share the output of "acpidump"?
>
> Hi Armin and Denis,
>
> Here are the acpidump outputs, one file per mode, taken from separate
> boots after switching with supergfxctl:
>
> https://gist.github.com/Piadineitor09/062d3327731e5ec38fefcf5ae9064a26
>
> acpidump-dgpu.txt (gpu_mux_mode = 0)
> acpidump-integrated.txt(integrated mode)
>
> The two dumps are different (cmp reports a difference),
> so the ACPI tables do change with the mode.
>
Thanks for providing the dumps. The dumps do indeed differ, but if you
split out the individual tables, it seems that this is mostly due to some
tables being present in only the dump that got collected when booted to
iGPU mode.
I did `acpixtract -a` on your dumps to separate out the individual tables,
and observed:
Identical in both dumps (iGPU and dGPU):
DSDT, SSDT2 - SSDT25
Different between dumps:
SSDT1
Only in iGPU dump:
APIC, BGRT, CDIT, CRAT, FACP, FACS, FIDT, FPDT, HPET, IVRS, MCFG, MHSP,
MSDM, SDEV, TPM2, UEFI, VFCT, WSMT
Now, the part that is most relevant when it comes to the EC backlight
driver happens to be in one of the tables that's identical, namely, the
DSDT table. You can disassemble the table with `iasl -d` if you want the
full context, but I'll quote the relevant parts of the disassembly here.
From include/linux/platform_data/x86/nvidia-wmi-ec-backlight.h, these
constants will help interpret the disassembled AML code:
>#define WMI_BRIGHTNESS_GUID "603E9613-EF25-4338-A3D0-C46177516DB7"
>
>/**
> * enum wmi_brightness_method - WMI method IDs
> * @WMI_BRIGHTNESS_METHOD_LEVEL: Get/Set EC brightness level status
> * @WMI_BRIGHTNESS_METHOD_SOURCE: Get/Set EC Brightness Source
> */
>enum wmi_brightness_method {
> WMI_BRIGHTNESS_METHOD_LEVEL = 1,
> WMI_BRIGHTNESS_METHOD_SOURCE = 2,
> WMI_BRIGHTNESS_METHOD_MAX
>};
>
>/**
> * enum wmi_brightness_mode - Operation mode for WMI-wrapped method
> * @WMI_BRIGHTNESS_MODE_GET: Get the current brightness level/source.
> * @WMI_BRIGHTNESS_MODE_SET: Set the brightness level.
> * @WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL: Get the maximum brightness level. This
> * is only valid when the WMI method is
> * %WMI_BRIGHTNESS_METHOD_LEVEL.
> */
>enum wmi_brightness_mode {
> WMI_BRIGHTNESS_MODE_GET = 0,
> WMI_BRIGHTNESS_MODE_SET = 1,
> WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL = 2,
> WMI_BRIGHTNESS_MODE_MAX
>};
>
>/**
> * enum wmi_brightness_source - Backlight brightness control source selection
> * @WMI_BRIGHTNESS_SOURCE_GPU: Backlight brightness is controlled by the GPU.
> * @WMI_BRIGHTNESS_SOURCE_EC: Backlight brightness is controlled by the
> * system's Embedded Controller (EC).
> * @WMI_BRIGHTNESS_SOURCE_AUX: Backlight brightness is controlled over the
> * DisplayPort AUX channel.
> */
>enum wmi_brightness_source {
> WMI_BRIGHTNESS_SOURCE_GPU = 1,
> WMI_BRIGHTNESS_SOURCE_EC = 2,
> WMI_BRIGHTNESS_SOURCE_AUX = 3,
> WMI_BRIGHTNESS_SOURCE_MAX
>};
And here's the WMI data, with commentary:
> Device (AWMI)
> {
> Name (_HID, "PNP0C14" /* Windows Management Instrumentation Device */) // _HID: Hardware ID
> Name (_UID, "0x00") // _UID: Unique ID
> Name (_WDG, Buffer (0x28)
> {
> /* 0000 */ 0x13, 0x96, 0x3E, 0x60, 0x25, 0xEF, 0x38, 0x43, // ..>`%.8C
> /* 0008 */ 0xA3, 0xD0, 0xC4, 0x61, 0x77, 0x51, 0x6D, 0xB7, // ...awQm.
This is the WMI_BRIGHTNESS_GUID (first three fields are integers in little
endian order; last two form a byte array and are in array order).
> /* 0010 */ 0x41, 0x41, 0x01, 0x02, 0x21, 0x12, 0x90, 0x05, // AA..!...
The "AA" object ID, instance count of 1, and flags indicating a WMI method
block mean we're going to look for the object named "WMAA" (it's the only one
here, so that's easy.)
> /* 0018 */ 0x66, 0xD5, 0xD1, 0x11, 0xB2, 0xF0, 0x00, 0xA0, // f.......
> /* 0020 */ 0xC9, 0x06, 0x29, 0x10, 0x30, 0x30, 0x01, 0x00 // ..).00..
> })
> Method (WMAA, 3, Serialized)
> {
> CreateByteField (Arg2, Zero, MODF)
> CreateDWordField (Arg2, 0x04, LEDB)
> Switch (Arg1)
Arg1 selects which WMI method to use, and Arg2 contains its parameters. So
the cases in this switch statement represent different WMI methods, and the
one we want is WMI_BRIGHTNESS_METHOD_SOURCE (i.e., 2), and we want to see
how it responds to a parameter value of WMI_BRIGHTNESS_MODE_GET (i.e., 0),
since this is how the backlight code in the kernel determines who owns the
backlight control on this device. We'll check MODF for that, since that is
established above as a byte-sized field starting at offset 0 of Arg2.
> {
> Case (One)
> {
> If ((MODF == Zero))
> {
> LEDB = ^^SBRG.EC0.GBLD /* \_SB_.PCI0.SBRG.EC0_.GBLD */
> Return (LEDB) /* \_SB_.PCI0.AWMI.WMAA.LEDB */
> }
> ElseIf ((MODF == One))
> {
> ^^SBRG.EC0.SBLD = LEDB /* \_SB_.PCI0.AWMI.WMAA.LEDB */
> Return (Zero)
> }
> ElseIf ((MODF == 0x02))
> {
> Return (0xC8)
> }
> Else
> {
> Return (One)
> }
> }
> Case (0x02)
> {
Here's WMI_BRIGHTNESS_METHOD_SOURCE
> If ((MODF == Zero))
> {
And this is what it does for WMI_BRIGHTNESS_MODE_GET
> If ((^^SBRG.EC0.G40C == One))
> {
> Return (0x02)
> }
> Else
> {
> Return (0x02)
> }
Now this is interesting, and suspicious. It checks a value from the EC's
mapped memory region, but regardless of the field's value, it ends up
returning 2. This corresponds to WMI_BRIGHTNESS_SOURCE_EC, which explains
why it ends up exposing nvidia_wmi_ec_backlight under /sys/class/backlight
regardless of whether you've selected iGPU or dGPU.
The conditional here suggests that there may have been an intent to use a
different device, depending on what gets read back at that address. Your
observation that only the EC backlight driver works when you're booted in
iGPU mode and only the native backlight driver works in dGPU mode makes it
worth testing if the G40C value differs between the iGPU and dGPU cases.
If we do observe different G40C values in iGPU and dGPU modes, that could
be used to determine which conditional branch could be changed to return
WMI_BRIGHTNESS_SOURCE_GPU (i.e. 1) instead of WMI_BRIGHTNESS_SOURCE_EC.
> }
> ElseIf ((MODF == One))
> {
> If ((LEDB < 0x03))
> {
> Return (Zero)
> }
> Return (One)
> }
> Else
> {
> Return (One)
> }
> }
> Default
> {
> Return (One)
> }
> }
> }
> }
Here's the memory region where the G40C field is defined, quoting the first
couple of bytes for context and flavor:
> OperationRegion (ERAM, SystemMemory, 0xFEDD8300, 0x0100)
> Field (ERAM, AnyAcc, NoLock, Preserve)
> {
> Offset (0x00),
> XKTM, 1,
> FNED, 1,
> XFFG, 1,
> FNDI, 1,
> TPAP, 1,
> TPFG, 1,
> WLRY, 1,
> BHPE, 1,
> Offset (0x01),
> CLOT, 8,
... and here's the byte where the actual field lives:
> Offset (0xB8),
> G40C, 1,
> LRPS, 1,
> DMUS, 1,
> PWMD, 1,
> MNMS, 1,
> D9FG, 1,
> CF9F, 1,
So, as an experiment, if you could read the LSb at physical address
0xFEDD83B8 in both iGPU and dGPU modes, and report on the value, that
would help. Assuming that the value does indeed differ, you can try to
patch whichever case corresponds to the dGPU in the WMI method in the
DSDT table and feed the patched DSDT table to the kernel via initrd:
https://docs.kernel.org/admin-guide/acpi/initrd_table_override.html
Something like:
# od -j $((0xFEDD83B8)) -N 1 /dev/mem
ought to get you that whole byte, then just % 2 for the bit we care about.
If you run into access problems beyond standard permissions issues you'll
probably need to set iomem=relaxed to get around CONFIG_IO_STRICT_DEVMEM
protection and/or disable kernel lockdown. Of course, you will want to
replace that offset with one based on the actual values in your ACPI table
if they're different from the above quoted disassembly.
You might be wondering, "but why does it work on Windows?" I've seen many
notebooks with buggy firmware reporting for which backlight interface to
use, which have perfectly functional backlight controlsi, despite plainly
obvious violations of the contract for how to advertise how the backlight
should be controlled so that the OS can select the correct drivers. I have
a working hypothesis that this class of bugs is masked by fallback and/or
broadcast behavior between multiple backlight drivers on Windows, beyond
the documented fallback behavior that Armin describes, for when a native
interface is unavailable. And because this behavior masks the underlying
firmware bugs, it makes the bugs harder to discover, which in turn makes
them surprisingly prevalent.
A while ago we were discussing adding a similar proxy mechanism to Linux
backlight control, and I think I might have volunteered to implement that,
but it fell off my radar. Doing something like that would probably help
more generally to work around these sorts of issues. A DMI quirk could
probably help too, but all of the ones in video_detect_dmi_table[] so far
in drivers/acpi/video_detect.c have fixed override types per system. If we
wanted to use a DMI quirk here, we would need to supplement the machine ID
based detection with a reliable way to determine what GPU mode the system
is booted into.
> Thanks,
> Riccardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-25 13:20 ` Daniel Dadap
@ 2026-11-25 18:03 ` Riccardo Zanghí
2026-11-25 22:14 ` Daniel Dadap
0 siblings, 1 reply; 10+ messages in thread
From: Riccardo Zanghí @ 2026-11-25 18:03 UTC (permalink / raw)
To: Daniel Dadap
Cc: Armin Wolf, Denis Benato, platform-driver-x86@vger.kernel.org,
hansg@kernel.org, ilpo.jarvinen@linux.intel.com, luke@ljones.dev,
linux-acpi@vger.kernel.org
On Wed, 25 Nov 2026 at 07:13, Daniel Dadap <ddadap@nvidia.com> wrote:
> So, as an experiment, if you could read the LSb at physical address
> 0xFEDD83B8 in both iGPU and dGPU modes, and report on the value, that
> would help.
Hi Daniel,
Thanks for the detailed analysis. I believe I received your full message by
mail.
Result of: od -An -t x1 -j $((0xFEDD83B8)) -N 1 /dev/mem
integrated mode: 4a (bit 0 = 0)
dGPU mode (gpu_mux_mode = 0): 07 (bit 0 = 1)
So G40C does differ between the two modes. I can try the DSDT
override next and report back, or test any other patch.
Thanks,
Riccardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-25 18:03 ` Riccardo Zanghí
@ 2026-11-25 22:14 ` Daniel Dadap
2026-11-25 22:26 ` Denis Benato
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Dadap @ 2026-11-25 22:14 UTC (permalink / raw)
To: Riccardo Zanghí
Cc: Armin Wolf, Denis Benato, platform-driver-x86@vger.kernel.org,
hansg@kernel.org, ilpo.jarvinen@linux.intel.com, luke@ljones.dev,
linux-acpi@vger.kernel.org
On Wed, Nov 25, 2026 at 07:03:18PM +0100, Riccardo Zanghí wrote:
> On Wed, 25 Nov 2026 at 07:13, Daniel Dadap <ddadap@nvidia.com> wrote:
> > So, as an experiment, if you could read the LSb at physical address
> > 0xFEDD83B8 in both iGPU and dGPU modes, and report on the value, that
> > would help.
>
> Hi Daniel,
>
> Thanks for the detailed analysis. I believe I received your full message by
> mail.
Right, I only got bounces from the lists, not the individual recipients, so
you very likely got three copies. (Sorry.)
>
> Result of: od -An -t x1 -j $((0xFEDD83B8)) -N 1 /dev/mem
>
> integrated mode: 4a (bit 0 = 0)
> dGPU mode (gpu_mux_mode = 0): 07 (bit 0 = 1)
>
> So G40C does differ between the two modes. I can try the DSDT
> override next and report back, or test any other patch.
>
Yes, I think doing the DSDT override as the next experiment makes the most
sense. The ASL should be amended to read:
> If ((MODF == Zero))
> {
> If ((^^SBRG.EC0.G40C == One))
> {
> Return (One)
> }
> Else
> {
> Return (0x02)
> }
> }
which I suspect will reflect the design intent better.
You could also try patching the kernel instead, maybe with something along
these lines (completely untested; you'll need to supply your own DMI ID
strings from your machine's SMBIOS):
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -131,6 +131,44 @@ static int video_detect_portege_r100(const struct dmi_system_id *d)
return 0;
}
+struct video_detect_runtime_dependent_data {
+ phys_addr_t address;
+ u8 mask;
+ enum acpi_backlight_type backlight_type_if_true;
+ enum acpi_backlight_type backlight_type_if_false;
+};
+
+static struct video_detect_runtime_dependent_data asus_a16_dmi_drvdata = {
+ .address = 0xfedd83b8,
+ .mask = 1,
+ .backlight_type_if_true = acpi_backlight_native,
+ .backlight_type_if_false = acpi_backlight_nvidia_wmi_ec,
+};
+
+static int video_detect_runtime_dependent(const struct dmi_system_id *d)
+{
+ const struct video_detect_runtime_dependent_data *data = d->driver_data;
+ void __iomem *map;
+ u8 val;
+
+ map = ioremap(data->address, 1);
+ if (!map) {
+ pr_warn("Unable to map backlight selection register at %pa; skipping quirk\n",
+ &data->address);
+ return 0;
+ }
+
+ val = readb(map);
+ iounmap(map);
+
+ if (val & data->mask)
+ acpi_backlight_dmi = data->backlight_type_if_true;
+ else
+ acpi_backlight_dmi = data->backlight_type_if_false;
+
+ return 0;
+}
+
static const struct dmi_system_id video_detect_dmi_table[] = {
/*
* Models which should use the vendor backlight interface,
@@ -986,6 +1024,19 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
},
},
+
+ /*
+ * This notebook is supposed to select the backlight control device
+ * based on runtime state readable from the EC's MMIO region, but
+ * ends up requesting the EC backlight driver regardless of the state.
+ */
+ {
+ .callback = video_detect_runtime_dependent,
+ .matches = {
+ /* XXX supply appropriate DMI_MATCH() macros here */
+ },
+ .driver_data = &asus_a16_dmi_drvdata,
+ },
{ },
};
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
2026-11-25 22:14 ` Daniel Dadap
@ 2026-11-25 22:26 ` Denis Benato
[not found] ` <20A82893-B458-43A0-A3B9-0C090BAF7F00@nvidia.com>
0 siblings, 1 reply; 10+ messages in thread
From: Denis Benato @ 2026-11-25 22:26 UTC (permalink / raw)
To: Daniel Dadap, Riccardo Zanghí
Cc: Armin Wolf, platform-driver-x86@vger.kernel.org, hansg@kernel.org,
ilpo.jarvinen@linux.intel.com, luke@ljones.dev,
linux-acpi@vger.kernel.org
On 11/25/26 23:14, Daniel Dadap wrote:
> On Wed, Nov 25, 2026 at 07:03:18PM +0100, Riccardo Zanghí wrote:
>> On Wed, 25 Nov 2026 at 07:13, Daniel Dadap <ddadap@nvidia.com> wrote:
>>> So, as an experiment, if you could read the LSb at physical address
>>> 0xFEDD83B8 in both iGPU and dGPU modes, and report on the value, that
>>> would help.
>> Hi Daniel,
>>
>> Thanks for the detailed analysis. I believe I received your full message by
>> mail.
> Right, I only got bounces from the lists, not the individual recipients, so
> you very likely got three copies. (Sorry.)
>
>> Result of: od -An -t x1 -j $((0xFEDD83B8)) -N 1 /dev/mem
>>
>> integrated mode: 4a (bit 0 = 0)
>> dGPU mode (gpu_mux_mode = 0): 07 (bit 0 = 1)
>>
>> So G40C does differ between the two modes. I can try the DSDT
>> override next and report back, or test any other patch.
>>
> Yes, I think doing the DSDT override as the next experiment makes the most
> sense. The ASL should be amended to read:
>
>> If ((MODF == Zero))
>> {
>> If ((^^SBRG.EC0.G40C == One))
>> {
>> Return (One)
>> }
>> Else
>> {
>> Return (0x02)
>> }
>> }
> which I suspect will reflect the design intent better.
>
> You could also try patching the kernel instead, maybe with something along
> these lines (completely untested; you'll need to supply your own DMI ID
> strings from your machine's SMBIOS):
>
I can ask ASUS to try fixing things that are out of spec, but we have to
prepare to the eventuality that it won't get touched.
An ACPI override means secure boot won't work on these models,
so despite being (probably) the best thing to so it has its own downside.
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -131,6 +131,44 @@ static int video_detect_portege_r100(const struct dmi_system_id *d)
> return 0;
> }
>
> +struct video_detect_runtime_dependent_data {
> + phys_addr_t address;
> + u8 mask;
> + enum acpi_backlight_type backlight_type_if_true;
> + enum acpi_backlight_type backlight_type_if_false;
> +};
> +
> +static struct video_detect_runtime_dependent_data asus_a16_dmi_drvdata = {
> + .address = 0xfedd83b8,
> + .mask = 1,
> + .backlight_type_if_true = acpi_backlight_native,
> + .backlight_type_if_false = acpi_backlight_nvidia_wmi_ec,
> +};
> +
> +static int video_detect_runtime_dependent(const struct dmi_system_id *d)
> +{
> + const struct video_detect_runtime_dependent_data *data = d->driver_data;
> + void __iomem *map;
> + u8 val;
> +
> + map = ioremap(data->address, 1);
> + if (!map) {
> + pr_warn("Unable to map backlight selection register at %pa; skipping quirk\n",
> + &data->address);
> + return 0;
> + }
> +
> + val = readb(map);
> + iounmap(map);
> +
> + if (val & data->mask)
> + acpi_backlight_dmi = data->backlight_type_if_true;
> + else
> + acpi_backlight_dmi = data->backlight_type_if_false;
> +
> + return 0;
> +}
> +
> static const struct dmi_system_id video_detect_dmi_table[] = {
> /*
> * Models which should use the vendor backlight interface,
> @@ -986,6 +1024,19 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
> },
> },
> +
> + /*
> + * This notebook is supposed to select the backlight control device
> + * based on runtime state readable from the EC's MMIO region, but
> + * ends up requesting the EC backlight driver regardless of the state.
> + */
> + {
> + .callback = video_detect_runtime_dependent,
> + .matches = {
> + /* XXX supply appropriate DMI_MATCH() macros here */
> + },
> + .driver_data = &asus_a16_dmi_drvdata,
> + },
> { },
> };
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes
[not found] ` <20A82893-B458-43A0-A3B9-0C090BAF7F00@nvidia.com>
@ 2026-11-26 8:48 ` Riccardo Zanghí
0 siblings, 0 replies; 10+ messages in thread
From: Riccardo Zanghí @ 2026-11-26 8:48 UTC (permalink / raw)
To: Daniel Dadap
Cc: Denis Benato, Armin Wolf, platform-driver-x86@vger.kernel.org,
hansg@kernel.org, ilpo.jarvinen@linux.intel.com, luke@ljones.dev,
linux-acpi@vger.kernel.org
On Wed, Nov 25, 2026 at 23:14, Daniel Dadap <ddadap@nvidia.com> wrote:
> You could also try patching the kernel instead, maybe with something
> along these lines [...]
Hi Daniel,
I tested your kernel patch (the later version using
acpi_evaluate_integer), with these DMI matches filled in:
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "ASUS TUF Gaming A16 FA608UM_FA608UM"),
Kernel: 7.3.6-1-cachyos-a16test (CachyOS tree plus this patch),
no acpi_backlight parameter in the command line.
dGPU (gpu_mux_mode = 0, G40C byte 0x07):
/sys/class/backlight: nvidia_0 (raw, max 100)
brightness control works, no "Unable to read" warning
Integrated (gpu_mux_mode = 1, G40C byte 0x4a):
/sys/class/backlight: nvidia_wmi_ec_backlight (firmware, max 200)
brightness control works
Hybrid (gpu_mux_mode = 1, G40C byte 0x4a):
/sys/class/backlight: nvidia_wmi_ec_backlight (firmware, max 200)
brightness control works
dmesg still has "ACPI reported no NVIDIA native backlight
available; attempting to use ACPI backlight." and two
"Unable to read EDID for display device DP-0" warnings
Happy to test an updated version.
If this becomes a formal patch, I'd be happy to have a Tested-by (and
Reported-by, if appropriate) tag with the name and address I used on
this thread. This is my first kernel contribution (I'm 17, if that
matters :) ), so I'd appreciate it!
Thanks,
Riccardo
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-11-26 8:48 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 23:27 [BUG] ASUS TUF Gaming A16 FA608UM: working backlight device differs between MUX modes Riccardo Zanghí
2026-11-24 18:48 ` Denis Benato
2026-11-24 20:17 ` Armin Wolf
2026-11-24 20:31 ` Denis Benato
2026-11-24 23:10 ` Riccardo Zanghí
2026-11-25 13:20 ` Daniel Dadap
2026-11-25 18:03 ` Riccardo Zanghí
2026-11-25 22:14 ` Daniel Dadap
2026-11-25 22:26 ` Denis Benato
[not found] ` <20A82893-B458-43A0-A3B9-0C090BAF7F00@nvidia.com>
2026-11-26 8:48 ` Riccardo Zanghí
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox