How I can in the Linux terminal turn on or off LED when I know its id e.g. 0x00050031
, 0x00050032
, 0x00060078
from file asus-wmi.h
.
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __PLATFORM_DATA_X86_ASUS_WMI_H_EXT
#define __PLATFORM_DATA_X86_ASUS_WMI_H_EXT
#define ASUS_WMI_DEVID_SCREENPAD 0x00050031
#define ASUS_WMI_DEVID_SCREENPAD_LIGHT 0x00050032
#define ASUS_WMI_DEVID_CAMERA_LED_ON_KEYBOARD 0x00060078
#endif /* __PLATFORM_DATA_X86_ASUS_WMI_H_EXT */
@IanAbbott: I think that once the asus-nb-wmi module is loaded, you could send arbitrary WMI commands via the debugfs file system. In "/sys/kernel/debug/asus-nb-wmi/", write values to the "dev_id", "ctrl_param" and "method_id" files, then read the "devs" file to set the device state, or read the "dsts" file to get the device state, or read the "call" file to evaluate the method on the device.
Script what I wrote for brute forcing (check is done by eyes):