The Script used to resolve brightness restoring issue mainly on distros running mate, XFCE4 and some other lightweight distros.
- Run the Script
bash install.sh - Will list all Graphics driver available on your device.
- Choose your Graphics driver.
Refer: Note - Close your eyes, Its done.
- It will store your brightness in installation folder.
- It uses systemd service to store before shutdown or reboot.
- Restore that brightness on next login.
- Select a appropriate graphics device while an installation.
- In my case my driver is
amdgpu_bl0you can see yours by listingls /sys/class/backlight/folder - To Verify your Graphics driver.
- Try to Change the value of
brightnessfile under '/sys/class/backlight//brightness` - If its preferred the change will reflect on your screen.