amd_halo_brightness_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amd_halo_brightness_set ✨

okay bestie, so this one is a kernel API page from the Kernel API Manual β€” yes, the "9" in the name means it's a kernel function, we love a section-9 moment πŸ’…


🌸 NAME 🌸

amd_halo_brightness_set β€” literally just set LED brightness πŸŽ€ that's the whole vibe, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

int amd_halo_brightness_set (struct led_classdev *cdev , enum
       led_brightness brightness );

so the signature is exactly that, bestie β€” int going in, int coming out, two args, do not touch my formatting πŸ’–


✨ ARGUMENTS ✨

  • cdev β€” the LED class device, i.e. your little LED main character 🌈
  • brightness β€” the brightness value, as in how bright we're going ✨

πŸ’œ RETURN πŸ’œ

  • 0 on success β€” slay, it worked 🫢
  • a negative error code on failure β€” not the vibe, but at least it tells you 😭

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/platform/x86/amd/amd_halo_led.c β€” that's the home turf, go read it iykyk πŸ“‚
  • struct amd_halo_led_data(9) β€” the struct, iconic πŸ‘‘
  • amd_halo_wmi_turn_off(9) β€” the off button of the family πŸ’€
  • amd_halo_wmi_set_rgb(9) β€” setting the colours, obsessed 🌈
  • amd_halo_wmi_get_rgb(9) β€” getting the colours back, the reciprocity 🧚
ngl bestie, if you're poking around the LED brightness there's a whole little friend group of amd_halo_* functions up there β€” check the whole squad before you ship ✨

and that's the page, fr fr πŸ’– this one lives in ./drivers/platform/x86/amd β€” shoutout to the October 2026 date on it, and the version tag is right there in the header/footer combo: amd_halo_brightness_set(9) both ways, our matching bookends πŸŽ€πŸ¦‹ bye bestie, go set some brightness πŸ’…

πŸ“¦ where this page comes from