Skip to contentSkip to conversation

platform/x86: asus-wmi: Unable to set rgb mode on TUF FX505 laptop

bug report Kristian Angelov 2 participants 2 messages Feb 28, 2023 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

I am unable to set the color/mode on my TUF FX505 laptop. Upon investigation of the asus-wmi driver, I can see a correct implementation of the color setting functionality (based on my own reverse engineering) however writing to the appropriate /sys/class/leds device does not work. Upon further investigation it seems to have to do with asus-wmi.c:747 where cmd = !!cmd is done. On my specific laptop the WMI interface expects the magic value 0xB3 however it is impossible to write this value as any positive value will be replaced by 1.

Best regards,
Kristiyan

PS: Please CC

#1 lore raw

Hi,

Quoted 1 line · Kristian Angelov

I am unable to set the color/mode on my TUF FX505 laptop. Upon investigation of the asus-wmi driver, I can see a correct implementation of the color setting functionality (based on my own reverse engineering) however writing to the appropriate /sys/class/leds device does not work. Upon further investigation it seems to have to do with asus-wmi.c:747 where cmd = !!cmd is done. On my specific laptop the WMI interface expects the magic value 0xB3 however it is impossible to write this value as any positive value will be replaced by 1.

Thank you for reporting this.

Luke (added to the Cc) usually takes care of the asus-wmi driver, Luke can you take a look at this please?

Regards,

Hans