This is kinda funny but I was going to try to get it merged to mainline but then realized there was already a similar patch waiting on review.
This my code, large part of it is based on other HP WMI stuff https://github.com/kuterd/hp_omen_led_controler