3 ms·
This is cool, thanks for sharing. I use a bash script to adjust brightness and contrast from the command line. I invoke it as `brco 80` etc where 80 sets it t
by kirubakaran 4y ago
This is cool, thanks for sharing.
I use a bash script to adjust brightness and contrast from the command line.
I invoke it as `brco 80` etc where 80 sets it to 80%. The script is:
$ cat `which brco`
#!/usr/bin/env bash
set -euo pipefail
# use `ddccontrol -p` (probe) to find the following:
mydevice="i2c-7"
# brightness
ddccontrol -r 0x10 -w $1 dev:/dev/$mydevice &> /dev/null
# contrast
ddccontrol -r 0x12 -w $1 dev:/dev/$mydevice &> /dev/null