Hummer12007 / brightnessctl

A program to read and control device brightness
Other
900 stars 48 forks source link

`--min-value` not working? #75

Closed x10an14 closed 2 years ago

x10an14 commented 2 years ago

Hi!

I'm using brightnessctl through the nix store, and for some reason I have no changes to keyboard lightning with the above command:

[2022-01-29 09:49:10] 0 x10an14@bits-laptop:~
-> $ brightnessctl --device='tpacpi::kbd_backlight' g
2
[2022-01-29 09:50:23] 0 x10an14@bits-laptop:~
-> $ brightnessctl --device='tpacpi::kbd_backlight' --min-value
Device 'tpacpi::kbd_backlight' of class 'leds':
    Current brightness: 2 (100%)
    Max brightness: 2

[2022-01-29 09:50:25] 0 x10an14@bits-laptop:~
-> $ brightnessctl --device='tpacpi::kbd_backlight' s 0
Updated device 'tpacpi::kbd_backlight':
Device 'tpacpi::kbd_backlight' of class 'leds':
    Current brightness: 0 (0%)
    Max brightness: 2

[2022-01-29 09:50:30] 0 x10an14@bits-laptop:~
-> $ brightnessctl --device='tpacpi::kbd_backlight' --min-value
Device 'tpacpi::kbd_backlight' of class 'leds':
    Current brightness: 0 (0%)
    Max brightness: 2

[2022-01-29 09:50:33] 0 x10an14@bits-laptop:~
-> $

Any suggestions/ideas how to debug this further? Potentially even fix it?

Hummer12007 commented 2 years ago

--min-value is a modifier to limit the maximum value brightnessctl can set. To change the brightness, you need to use the set command, e.g. brightnessctl --device='tpacpi::kbd_backlight' set 0

x10an14 commented 2 years ago

Ahh, okay. Apologies for the noise!