ENUM WMI_BRIGHTNESS_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is WMI_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 the WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL validity caveat, and WMI_BRIGHTNESS_MODE_MAX being 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