pmaports/device/device-samsung-klte/set-brightness
Alexey Min e4cc96d27e samsung-klte: downstream: add android adaptation (!332)
Lots of device-specific configurations:

* android mount points and mounts
* android groups and users (needed for udev rules)
* android udev rules for platform devices (needed for android services to run)
* NetworkManager device-specific config
* wpa_supplicant device-specific config
* device-specific openrc service for late initcalls to bring up Wi-Fi hardware
* extra helper scripts to call logcat, set backlight brightness,
  get battery status, unlock kde screenlocker session
* use kernel cmdline from downstream android to keep it as close to
  android as possible. Important for android in lxc container later
2019-06-02 02:49:02 +00:00

5 lines
134 B
Bash
Executable file

#!/bin/sh
if [ -n "$1" ]; then
echo $1 > /sys/class/leds/lcd-backlight/brightness
fi
cat /sys/class/leds/lcd-backlight/brightness