tinypythonpanadapter/lcd4_brightness.sh

13 wiersze
313 B
Bash

2014-05-01 17:50:42 +00:00
#! /bin/bash
2014-05-18 00:33:52 +00:00
# Applies to BeagleBone Black with LCD4 or compatible display.
2014-05-01 17:50:42 +00:00
# Set LCD4 brightness 0-100 from command line.
# Insist on being root
if [[ $EUID -ne 0 ]]; then
echo "Warning: can't adjust brightness - we are not root." 2>&1
exit 1
fi
echo $1 > /sys/class/backlight/backlight.11/brightness