STRUCT WILCO_KEYBOARD_LEDS_MSG(9)
π struct wilco_keyboard_leds_msg(9) π
okay so bestie, welcome to the Kernel API Manual β¨ today we're looking at struct wilco_keyboard_leds_msg and honestly? it's giving "little struct that could" π
πΈ NAME πΈ
struct wilco_keyboard_leds_msg β the message that goes to (and comes back from) the EC for controlling your keyboard LEDs π‘β¨ literally the little note you pass the embedded controller so your keyboard can glow.
β¨ SYNOPSIS β¨
struct wilco_keyboard_leds_msg {
u8 command;
u8 status;
u8 subcmd;
u8 reserved3;
u8 mode;
u8 reserved5to8[4];
u8 percent;
u8 reserved10to15[6];
};
no cap, that's the whole shape of it π«Ά
π¦ Members π¦
let me walk you through every single field, because we do NOT skip members in this house π
commandβ alwaysWILCO_EC_COMMAND_KBBL. like, always. every time. don't be creative with it πstatusβ the EC sets this one for you:0on success,0xFFon failure. so when it says0xFFit's lowkey telling you something went wrong πsubcmdβ one ofenum wilco_kbbl_subcommand. pick from the menu, bestie πreserved3β should be0. that's it. that's the whole job πmodeβ bit flags for the used mode, and we want to useWILCO_KBBL_MODE_FLAG_PWM. that's the vibe we're going for π«reserved5to8β should be0. four whole bytes of "please leave me alone" πΈpercentβ brightness in0-100. only meaningful in PWM mode, so don't come at it expecting magic in other modes β‘reserved10to15β should be0. six bytes of pure "nothing to see here" energy π
omg quick vibe check: those reserved* fields are not optional decoration β the manpage says should be 0, so zero them out, okay? π₯
π SEE ALSO π
- Kernel file
./drivers/platform/chrome/wilco_ec/keyboard_leds.cπ kbbl_init(9)π§
and that's the tea β bestie, go make those LEDs behave π
sign-off szn: this page came from ./drivers/platform/chrome/wilc... and the date on it is October 2026, filed under struct wilco...ard_leds_msg(9) β so like, screenshot it before the header truncates even harder ππ«Ά slay, bye! π
β¨
π¦ 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