Last active
October 8, 2019 22:47
-
-
Save dustractor/0e2edaa30aae8e8f59ee55da2a436942 to your computer and use it in GitHub Desktop.
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 | |
# usage: | |
# give it a number between 0 and 1023 | |
# to turn up and down the backlight and | |
# uncomment line 17 to also reset | |
# the pixel-brightness and gamma settings | |
# Clearly the Mini-DisplayPort is plugged in but | |
# CHECK THAT THE USB IS PLUGGED IN!!! | |
# (On my machine it matters which port, also.) | |
# Sometimes the device does not exist. | |
# Rebooting tends to fix it. | |
sudo chmod a+rw /dev/usb/hiddev0 | |
# https://github.com/warvariuc/acdcontrol | |
# compiling was easy just do a make | |
acdcontrol /dev/usb/hiddev0 $1 | |
# This dang linux distro I'm using fucks all kinds of shit up so I also have to | |
# xrandr --output DP-0 --brightness 1 --gamma 1:1:1 | |
# it probably has something to do with the nvidia drivers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment