2023-06-06 01:54:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
|
2023-07-25 21:06:19 +00:00
|
|
|
. /etc/profile
|
|
|
|
|
|
|
|
### Set the default TDP if it isn't defined.
|
|
|
|
MYTDP=$(get_setting system.overclock)
|
|
|
|
if [ -z "${MYTDP}" ]
|
|
|
|
then
|
|
|
|
# Set default TDP
|
|
|
|
set_setting system.overclock 15w
|
|
|
|
fi
|
|
|
|
|
|
|
|
### Set sleep mode to mem sleep (S3)
|
|
|
|
MYSLEEPMODE=$(get_setting system.suspendmode)
|
|
|
|
if [ -z "${MYSLEEPMODE}" ]
|
|
|
|
then
|
|
|
|
/usr/bin/setsuspendmode mem
|
|
|
|
fi
|
|
|
|
|
|
|
|
### Set the default device configuration
|
2023-06-06 01:54:48 +00:00
|
|
|
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
2023-07-25 21:06:19 +00:00
|
|
|
DEVICE_BASE_TDP="15w"
|
2023-06-22 02:40:58 +00:00
|
|
|
DEVICE_LED_CONTROL=true
|
2023-06-01 21:41:58 +00:00
|
|
|
DEVICE_VOLUMECTL=true
|
|
|
|
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
|
|
|
DEVICE_PLAYBACK_PATH_HP="HP"
|
2023-08-06 15:30:11 +00:00
|
|
|
DEVICE_FUNC_KEYA_MODIFIER="KEY_RIGHTCTRL"
|
2023-07-14 21:24:52 +00:00
|
|
|
DEVICE_FUNC_KEYB_MODIFIER="KEY_D"
|
2023-06-01 21:41:58 +00:00
|
|
|
UI_SERVICE="weston.service"
|
|
|
|
|
|
|
|
DEVICE_BRIGHTNESS="hardware"
|
2023-06-06 01:54:48 +00:00
|
|
|
EOF
|