#!/bin/bash
# Blank the panel and keyboard backlight completely, leaving the machine
# fully awake. Equivalent to pressing F1 from the lowest level.
#
# Needs root: the console blank ioctl on /dev/tty0 is not user-accessible.
set -u
brightnessctl -q -d apple-panel-bl set 0
brightnessctl -q -d kbd_backlight  set 0
TERM=linux setterm --blank force < /dev/tty0 > /dev/tty0 2>/dev/null
