Files
bananarchy/overlay/rootfs/usr/bin/bananarchy-idle-blank.sh
T

12 lines
387 B
Bash
Raw Normal View History

#!/bin/sh
# Blank/restore the display without engaging the passcode locker (U1).
# sxmo_wm.sh display off/on already handles brightness, bl_power, DPMS,
# the CPU governor and the keyboard backlight.
case "${1:-}" in
off) exec /usr/bin/sxmo_wm.sh display off ;;
on) exec /usr/bin/sxmo_wm.sh display on ;;
*)
printf 'Usage: %s [off|on]\n' "${0##*/}" >&2
exit 1
;;
esac