ENUM BACKLIGHT_UPDATE_REASON(9)
π enum backlight_update_reason(9) π
okay bestie, so this is a page from the Kernel API Manual β yes, that's enum backlig...pdate_reason(9) if you're squinting at the truncated header, and we're about to make it make sense. sit down, hydrate, let's go β¨
πΈ NAME πΈ
enum backlight_update_reason β literally just tells you what method was used to update the backlight. that's it. that's the whole vibe check π
π SYNOPSIS π
here's the shape of it, copy it exactly bestie, no freestyling:
enum backlight_update_reason {
BACKLIGHT_UPDATE_HOTKEY ,
BACKLIGHT_UPDATE_SYSFS
};
like, two constants, one enum, immaculate energy π
β¨ Constants β¨
BACKLIGHT_UPDATE_HOTKEYβ the backlight was updated using a hot-key. you pressed a key, the screen got brighter, the universe said slay π₯BACKLIGHT_UPDATE_SYSFSβ the backlight was updated using sysfs. not a keypress, the filesystem did it, iconic in a different way π¦
π Description π
so the whole point: a driver indicates the method (reason) used for updating the backlight when calling backlight_force_update. that's the tea, that's the lore, that's the entire function of this enum π«Ά
like, backlight_force_update needs to know why the backlight changed, and this enum is the little label it gets handed. no cap.
π SEE ALSO π
go read these next, bestie, they're all in Kernel file ./include/linux/backlight.h β a whole squad, honestly:
enum backlight_type(9)struct backlight_ops(9)struct backlight_properties(9)struct backlight_device(9)backlight_update_status(9)backlight_enable(9)backlight_disable(9)backlight_is_blank(9)backlight_get_brightness(9)bl_get_data(9)
that's the full roster, don't skip any, they're all main character energy in their own way π
aaaand that's the page!! π this came out of ./include/linux, dated October 2026, and it's filed under enum backlig...pdate_reason(9) β so if you ever forget which enum told the kernel why the backlight changed, you know exactly where to look. mwah πβ¨π
π¦ 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