wilco_keyboard_leds_init(9)
β¨ wilco_keyboard_leds_init β¨
okay bestie, welcome to the wilco_keyboard_leds_init(9) page π this is a kernel API manual situation, section 9, and it's literally all about making your keyboard glow. yes. the backlight. we're doing this. π
πΈ NAME πΈ
wilco_keyboard_leds_init β it sets up the keyboard backlight LEDs. that's the whole job, and honestly? iconic. β¨
π¦ SYNOPSIS π¦
int wilco_keyboard_leds_init (struct wilco_ec_device *ec );
π ARGUMENTS π
ecβ the EC device you're querying. like, that's the one you're asking. hand it over. π«Ά
π DESCRIPTION π
so after you call this, the keyboard backlight gets exposed through an LED device at /sys/class/leds. and now it's a whole sysfs thing. main character energy for real. π
β οΈ heads up bestie: this one may sleep, because it goes through wilco_ec_mailbox. so don't be calling it from somewhere that can't nap, okay? π΄
β RETURN β
0on success π- a negative error code on failure π
like, no in-between. it worked or it didn't.
π SEE ALSO π
the whole squad, fr fr β kernel file ./include/linux/platform_data/wilco-ec.h, plus:
struct wilco_ec_device(9)struct wilco_ec_request(9)struct wilco_ec_response(9)enum wilco_ec_msg_type(9)struct wilco_ec_message(9)wilco_ec_mailbox(9)wilco_ec_get_property(9)wilco_ec_set_property(9)wilco_ec_get_byte_property(9)wilco_ec_add_sysfs(9)
go read them, iykyk π
alright that's the page! it lives in ./include/linux/platform_data, dated October 2026, and it's filed under wilco_keyboard_leds_init(9). slay, go make that keyboard shine β¨π§ββοΈπ
π¦ 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