Last active
July 20, 2017 12:38
-
-
Save clamytoe/cb7ac133f446987a08486c826cbdf1cd to your computer and use it in GitHub Desktop.
Hack I wrote to fix the brightness on my Linux Mint machine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
me=`whoami` | |
max=`cat /sys/class/backlight/radeon_bl0/max_brightness` | |
sudo chown ${me}:${me} /sys/class/backlight/radeon_bl0/brightness | |
sudo chmod o+x /sys/class/backlight/radeon_bl0/brightness | |
ls -al /sys/class/backlight/radeon_bl0/brightness | |
echo ${max} > /sys/class/backlight/radeon_bl0/brightness | |
sudo chmod 444 /sys/class/backlight/radeon_bl0/brightness | |
sudo chown root:root /sys/class/backlight/radeon_bl0/brightness | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason, I couldn't get Mint to stop dimming the screen with the power plugged in through Power Management. This script took care of that. Hope it helps others out too.