Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current brightness % reported is wrong when using exponant #84

Closed
7thFox opened this issue Jan 4, 2023 · 1 comment
Closed

Current brightness % reported is wrong when using exponant #84

7thFox opened this issue Jan 4, 2023 · 1 comment

Comments

@7thFox
Copy link

7thFox commented Jan 4, 2023

If I set the value of intel_backlight to 1199, the % reported is correct:

sudo brightnessctl --device='intel_backlight' set 1199
Updated device 'intel_backlight':
Device 'intel_backlight' of class 'backlight':
    Current brightness: 1199 (100%)
    Max brightness: 1200

However, if I set this with exponant the reported brightness is 0% (I was trying to figure out how it worked at the time, so don't mind my nonsense settings)

sudo brightnessctl --device='intel_backlight' -e=4 set 5%-
Updated device 'intel_backlight':
Device 'intel_backlight' of class 'backlight':
    Current brightness: 1200 (100%)
    Max brightness: 1200
sudo brightnessctl --device='intel_backlight' -e=4 set 5%-
Updated device 'intel_backlight':
Device 'intel_backlight' of class 'backlight':
    Current brightness: 1199 (0%)
    Max brightness: 1200
@Hummer12007
Copy link
Owner

Hummer12007 commented Feb 4, 2024

-e=4 is wrong: equals sign is only supported with the long option format. Use -e4, or --exponent=4. Added an error check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants