Skip to content

dmy3k/kde6-als-autobrightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KDE6 Adaptive brightness service

Adaptive brightness service for laptops running linux with KDE 6 desktop.

The project serves the purpose in the absense of native support in KWin/PowerDevil, which is being worked on: #21, #572, #5876

Highlights

  • Minimal number of dependencies
  • Requires ambient light sensor (ALS)
  • Efficient, utilizes sensor signals via dbus (no sensor polling)
  • Uses bucketed brightness levels similar to ones in windows 11
  • Runs unpriviledged
  • Allows end-user to set brightness to the liking (offsetting adaptive brightness)
  • Tested with Fedora 40-42, KDE Plasma 6.2-6.4

Prerequisites

Make sure your device has ALS sensor before proceeding with setup, eg. by running monitor-sensor from terminal. Check packages below are installed (should be pre-installed in most distros)

sudo dnf install iio-sensor-proxy python3-pip python3-dbus git

Install

pip install --user git+https://github.com/dmy3k/als-autobrightness.git@main
autobrightnesscli --default-systemd-cfg > ~/.config/systemd/user/autobrightness.service
systemctl --user enable --now autobrightness

Upgrade

pip install --user --upgrade git+https://github.com/dmy3k/als-autobrightness.git@main
systemctl --user restart autobrightness

Uninstall

systemctl --user disable --now autobrightness
rm ~/.config/systemd/user/autobrightness.service
pip uninstall autobrightness

Troubleshooting

Please attach related logs when creating a bugreport.

systemctl status iio-sensor-proxy.service
systemctl --user status autobrightness
journalctl --user -u autobrightness

Related projects

About

Systemd service providing adaptive brightness feature for KDE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages