distribution/packages/hardware/quirks/devices/LENOVO 81TC/001-hardwareinit

17 lines
381 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ ! -e "/storage/.quirks" ]
then
echo 19000 > /sys/class/backlight/$(brightness device)/brightness
touch /storage/.quirks
fi
MYSLEEPMODE=$(get_setting system.suspendmode)
if [ -z "${MYSLEEPMODE}" ]
then
/usr/bin/setsuspendmode mem
fi