Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexphanna/xbacklight-log
Simple xbacklight wrapper written in Python that changes the brightness logarithmically.
https://github.com/alexphanna/xbacklight-log
linux xbacklight
Last synced: 7 days ago
JSON representation
Simple xbacklight wrapper written in Python that changes the brightness logarithmically.
- Host: GitHub
- URL: https://github.com/alexphanna/xbacklight-log
- Owner: alexphanna
- Created: 2023-08-25T05:30:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T00:45:39.000Z (about 1 year ago)
- Last Synced: 2023-10-20T09:49:31.268Z (about 1 year ago)
- Topics: linux, xbacklight
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xbacklight-log
According to the [Weber-Fechner law](https://en.wikipedia.org/wiki/Weber%E2%80%93Fechner_law) human perception of brightness is logarithmic not linear. By default xbacklight is linear, so adjustment of brightness seems very uneven. xbacklight-log fixes this by wrapping xbacklight and using two seperate brightness values, measured and perceived.## Math
$$\hat{\text{perceived brightness}} = {\frac{\log_{10}(\text{measured brightness}) + 2}{2}}$$
## Other Helpful Resources
- [@konradstrack](https://github.com/konradstrack)'s [blog](https://konradstrack.ninja/blog/changing-screen-brightness-in-accordance-with-human-perception/)
- [@ericmurphyxyz](https://github.com/ericmurphyxyz)'s [video](https://youtu.be/pGOaSS8nEQA?si=UsH7o5s1bvsRl6RI)