pelrun / hp-omen-linux-module

Control the HP Omen keyboard lighting and performance settings in Linux
GNU General Public License v2.0
171 stars 28 forks source link

Brightness Control #25

Closed rolfoz closed 2 years ago

rolfoz commented 2 years ago

Firstly thank you for your work. I have an Omen 16 and this module lets me control the zones and colors. What I would like to do is adjust the led brightness and turn the leds on and off from a script.

I was hoping that using evtest I could replicate the FN F4 command that turns the leds on and off, but the FN button does not register.

If you do have any ideas how to turn off the keyboard leds when the screen turns off and how to control the brightness please let me know.

alou-S commented 2 years ago

Brightness can simply be controlled by making the RGB values darker. And for turning off you can set the RGB values to #000000

Now implementing the backlight turn off on screen off is something you can try researching yourself as this will depend on various factors such as DE and others things.

rolfoz commented 2 years ago

Awesome, thank you. I realized I could adjust the brightness with the values but it never occurred to me to completely turn them off that way!