A simple GTK application to control brightness of external displays supporting DDC/CI
- ddcutil library package (typically libddcutil or libddcutil-dev if not already installed with ddcutil)
- GTK 3.0
- Firstly, ensure that all the dependencies are installed.
pacman -S --needed ddcutil gtk3
sudo apt install libgtk3-dev gcc
sudo add-apt-repository ppa:rockowitz/ddcutil # add ddcutil repo
sudo apt install ddcutil libddcutil-dev
sudo dnf install ddcutil libddcutil libddcutil-devel gtk3-devel gcc
-
Ensure that your user has access to the i2c devices: https://www.ddcutil.com/i2c_permissions/
-
Clone this repo along with its submodules:
git clone --recurse-submodules https://github.com/sidevesh/Luminance.git
- Change into the
Luminance
directory and execute build.sh to build this application:
cd Luminance
./build.sh
- This should result in a binary that you can execute to contol the brightness:
./build/app
To install this binary for all users execute 'install.sh' as root:
sudo ./install.sh
You should now be able to find Luminance in your application menu under utilities.
- @ahshabbir : for ddcbc-api and ddcbc-gtk: https://github.com/ahshabbir/ddcbc-api
- @rockowitz : for ddcutil c api: https://github.com/rockowitz/ddcutil