12 lines
387 B
Bash
12 lines
387 B
Bash
#!/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
|