You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
398 B
Bash

#!/bin/bash
if [ "${1}" == "pre" ]; then
asusctl -k off
elif [ "${1}" == "post" ]; then
brightness=$(cat /sys/class/leds/asus::kbd_backlight/brightness)
echo 0 > /sys/class/leds/asus::kbd_backlight/brightness # set 2 different brightnesses to ensure a setting change
echo 1 > /sys/class/leds/asus::kbd_backlight/brightness
echo $brightness > /sys/class/leds/asus::kbd_backlight/brightness
fi