cd ~/
mkdir raspberrypi-backlight
cd raspberrypi-backlight/
git clone https://github.com/WestleyK/rpi-brightness.git
cd rpi-brightness/
make
sudo make install
cd ~/raspberrypi-backlight/rpi-brightness/
sudo make update
cd ~/raspberrypi-backlight/rpi-brightness/
sudo make uninstall
If you run this, you dont need the sudo
before changing the brightness.
cd ~/raspberrypi-backlight/rpi-brightness/
sudo ./no-root.sh
sudo reboot
To undo that, type:
sudo rm /etc/udev/rules.d/backlight-permission.rules
sudo reboot