關掉 boost
echo 0 | sudo tee /sys/devices/system/cpu/cpufreq/boost
開啟 boost
echo 1 | sudo tee /sys/devices/system/cpu/cpufreq/boost
開機自動關閉 boost ,只跑 cpu 基本頻率
1️⃣ 建立 systemd 服務檔
sudo vim /etc/systemd/system/cpu-boost-disable.service
輸入以下內容
[Unit]
Description=Disable CPU Boost at boot
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 0 | tee /sys/devices/system/cpu/cpufreq/boost"
[Install]
WantedBy=multi-user.target
2️⃣ 啟用並啟動服務
sudo systemctl daemon-reload
sudo systemctl enable cpu-boost-disable.service
sudo systemctl start cpu-boost-disable.service
3️⃣ 檢查服務狀態
systemctl status cpu-boost-disable.service
你應該會看到 Active: succeeded,表示開機或啟動時已經把 boost 關掉。
4️⃣ 使用說明
開機自動關閉 boost:服務會自動執行,不需要你手動輸入。
臨時開啟 boost:手動輸入
echo 1 | sudo tee /sys/devices/system/cpu/cpufreq/boost
這樣你就可以自由切換,不會被 systemd 干涉。