summaryrefslogtreecommitdiff
path: root/brightness-control
blob: ebc0f1bf3909023649d33cbf681278b93dc4c885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ $(id -u) -ne 0 ]; then
    echo "Please use this with root privileges"
    exit 2
fi

if [ $# -ne 1 ]; then
    echo "Usage $0: brightness"
    exit 2
fi

su -c "echo $1 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/brightness"