Skip to content

Instantly share code, notes, and snippets.

@clamytoe
Last active July 20, 2017 12:38
Show Gist options
  • Save clamytoe/cb7ac133f446987a08486c826cbdf1cd to your computer and use it in GitHub Desktop.
Save clamytoe/cb7ac133f446987a08486c826cbdf1cd to your computer and use it in GitHub Desktop.
Hack I wrote to fix the brightness on my Linux Mint machine.
#!/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
@clamytoe
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment