Inspire from code by udifuchs.
For monitor brightness (e.g. OLED) that Ubuntu system can't control.
Ubuntu official seems like it already supports OLED brightness natively, is time to deprecate this repository, but it is still welcome to commit issues or discuss some techniques in here 😁
this script include Build & Auto Start Install
$ bash install.shThe build requires xrandr package:
$ sudo apt-get update
$ sudo apt-get install x11-xserver-utilsIf you want to install auto-start method when logging-in to the Gnome, run:
$ sudo makeIt will auto select one monitor that is connected to install.
If you want to choise monitor to auto-start , open Makefile type your monitor-name on Monitor variable.
It will start it when the next logging-in. You can control by your brightness key or other method that can control backlight on the display.
$ make uninstallIf you only want to run the tool, run:
$ make monitor-brightness
$ ./monitor-brightness [monitor_name]You need to find your monitor_name, use:
$ xrandr | grep " connected " | awk '{ print$1 }'$ make clean