distribution/packages/hardware/quirks/autostart/095-turbo-mode

17 lines
432 B
Text
Raw Normal View History

2024-01-23 20:56:23 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2024-present JELOS (https://github.com/JustEnoughLinuxOS)
. /etc/profile.d/001-functions
# Get Turbo Mode state.
TURBO_MODE_STATE=$(get_setting "enable.turbo-mode")
if [ ! -n "${TURBO_MODE_STATE}" ]; then
TURBO_MODE_STATE=0
set_setting "enable.turbo-mode" "0"
fi
# Set turbo-mode at boot
echo ${TURBO_MODE_STATE} > /sys/devices/system/cpu/cpufreq/boost