Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)