ENUM WMI_BRIGHTNESS_MODE(9)
π enum wmi_brightness_mode β a.k.a. the kernel API manual, bestie edition β¨
okay so picture this: you're deep in the kernel, specifically hanging out in ./include/linux/platform_data/x86, and you meet enum wmi_brightness_mode β literally the operation mode for a WMI-wrapped method. that's the whole NAME section, no cap. she's an enum, she's iconic, she tells the firmware what kinda brightness business we're doing today π
π SYNOPSIS π
like, here's her whole entire shape, verbatim, do not touch:
enum wmi_brightness_mode {
WMI_BRIGHTNESS_MODE_GET ,
WMI_BRIGHTNESS_MODE_SET ,
WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL ,
WMI_BRIGHTNESS_MODE_MAX
};
yes the trailing commas and that lil blank line before the closing brace are all part of the vibe. copy it exactly, bestie π«Ά
β Constants β
okay so these are the four constants and honestly each one has main character energy in her own way:
WMI_BRIGHTNESS_MODE_GETβ get the current brightness level/source. she's nosy and we love her for it πWMI_BRIGHTNESS_MODE_SETβ set the brightness level. queen behavior, she doesn't ask, she sets πWMI_BRIGHTNESS_MODE_GET_MAX_LEVELβ get the maximum brightness level. lowkey important caveat: this one is only valid when the WMI method isWMI_BRIGHTNESS_METHOD_LEVEL. so like, check that first or it's giving invalid π«WMI_BRIGHTNESS_MODE_MAXβ-- undescribed --π yeah the docs just did not show up for this one. she's a mystery, we respect her privacy. no invented lore, ngl, the original literally says nothing else about her π
π¦ SEE ALSO π¦
go read these too, they're all in the same friend group:
- Kernel file
./include/linux/platform_data/x86/nvidia-wmi-ec-backlight.hβ the home address, that's where she lives π‘ enum wmi_brightness_method(9)enum wmi_brightness_source(9)struct wmi_brightness_args(9)
heads up: the only warning-ish thing in the whole page is theWMI_BRIGHTNESS_MODE_GET_MAX_LEVELvalidity caveat, andWMI_BRIGHTNESS_MODE_MAXbeing undescribed. everything else is smooth sailing β¨
πΈ that's the whole page, bestie! this one came straight out of ./include/linux/platform_data/x86, dated October 2026, and it's part of the Kernel API Manual β so like, when you cite her, that's the source and the date. mwah, go forth and slay your brightness ππ
π¦ 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