distribution/packages/hardware/quirks/autostart/095-turbo-mode
2024-01-24 11:02:56 +00:00

16 lines
432 B
Bash

#!/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