Hummer12007 / brightnessctl

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

[Feature request] New release #113

Open rieje opened 5 days ago

rieje commented 5 days ago

EDIT: As stated below it's been implemented, so a new release would be welcomed.


Feature request: Get brightness value as a percentage. Working with percentage is more intuitive but also it's not clear if all displays have a max brightness of 7500 that my system reports.

I want to manually handle saving and restoring brightness level depending on conditions--I set as using a percentage value but since the value reported by brightnessctl is e.g. 750, I need to manually determine this myself and in a way that might be system-dependent (if I'm on systems whose display has a max brightness different than 7500, then that would need to be handled as well.

PowerMan2206 commented 5 days ago

I was just looking for the same thing! After some snooping around the source code I found commit 9a1af7e which adds the support, but it hasn't been released yet. Hell, anything new hasn't, last release was in 2020...

JohnMertz commented 15 hours ago

If the maintainer is not creating new releases, you may need to contact your distribution maintainer to ask them to build from the latest commits. Otherwise you may need to build from source.

Note that my version from Fedora 40 does have this feature (hurray!), but I see that the Debian source package has not been updated since the latest GitHub release, and the Arch package is also directly built from the tar.gz from the GitHub releases, so it doesn't have it either.