/xbacklight-log

Simple xbacklight wrapper written in Python that changes the brightness logarithmically.

Primary LanguagePython

xbacklight-log

According to the Weber-Fechner 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