STRUCT WMI_BRIGHTNESS_ARGS(9)
β¨ struct wmi_brightness_args(9) β¨
okay bestie, so this whole page is about struct wmi_brightness_args β literally just the arguments struct for the WMI-wrapped ACPI method π
it lives in the Kernel API Manual and we're gonna go through it together, no cap.
πΈ NAME πΈ
struct wmi_brightness_args β the arguments for the WMI-wrapped ACPI method. that's it, that's the vibe π«Ά
π¦ SYNOPSIS π¦
here's the struct in all its iconic glory, copy it exactly bestie:
struct wmi_brightness_args {
u32 mode;
u32 val;
u32 ret;
u32 ignored[3];
};
π Members π
okay so let's meet the members one by one, they each have a job and they're all main characters in their own way π
modeβ you pass in anenum wmi_brightness_modevalue here, and it's the thing that picks whether you're getting a value or setting one. the decider, the icon πvalβ this is the in parameter, aka the value you wanna set when you're inWMI_BRIGHTNESS_MODE_SETmode. and listen β it's not used in conjunction withWMI_BRIGHTNESS_MODE_GETorWMI_BRIGHTNESS_MODE_GET_MAX_LEVELmode. so don't try it, bestie πretβ the out parameter, it returns the retrieved value when you're operating inWMI_BRIGHTNESS_MODE_GETorWMI_BRIGHTNESS_MODE_GET_MAX_LEVELmode. not used inWMI_BRIGHTNESS_MODE_SETmode though, she sits that one out πignoredβ literally padding, not used, just vibing there. why? because the ACPI method expects a 24 byte params struct. so she's filler but she's doing it gorgeously β¨
π₯ Description π₯
so what is this whole thing? it's the parameters structure for the WmiBrightnessNotify ACPI method, as wrapped by WMI. periodt π
and here's the part you gotta remember, bestie β the value you pass in to val, or the one that comes back out of ret, will be a brightness value when the WMI method ID is WMI_BRIGHTNESS_METHOD_LEVEL π β¦ OR it'll be an enum wmi_brightness_source value when it's WMI_BRIGHTNESS_METHOD_SOURCE. iykyk π
fr fr keep track of which method ID you're in, because the meaning of that number totally switches up on you. no cap.
β SEE ALSO β
go peek at these, they're all connected and honestly obsessed with each other π§
- Kernel file
./include/linux/platform_data/x86/nvidia-wmi-ec-backlight.h enum wmi_brightness_method(9)enum wmi_brightness_mode(9)enum wmi_brightness_source(9)
and that's the whole page, bestie π this little gem comes from ./include/linux/platform_data/x86, dated October 2026, and it's filed under struct wmi_brightness_args(9). slay, go forth and set some brightness levels πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms