/usr/bin/sugar-backlight-helper is in sugar-session 0.106.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/sh
device=/var/run/sugar-backlight
case "$1" in
"--set-brightness")
echo "$2" > $device/brightness
;;
"--get-brightness")
read value < $device/brightness
echo "$value"
;;
"--get-max-brightness")
read value < $device/max_brightness
echo "$value"
;;
esac
|