173 lines
2.7 KiB
Markdown
173 lines
2.7 KiB
Markdown
## tlp
|
|
|
|
```sh
|
|
sudo dnf install tlp tlp-rdw
|
|
sudo systemctl enable tlp
|
|
sudo systemctl start tlp
|
|
```
|
|
|
|
|
|
```sh
|
|
sudo dnf install acpi_call kernel-modules-extra
|
|
```
|
|
|
|
```sh
|
|
sudo tlp-stat -s
|
|
```
|
|
|
|
# thermald
|
|
|
|
```sh
|
|
sudo dnf install thermald
|
|
sudo systemctl enable thermald
|
|
sudo systemctl start thermald
|
|
```
|
|
|
|
|
|
|
|
# powertop
|
|
|
|
```sh
|
|
sudo dnf install powertop
|
|
sudo powertop --auto-tune
|
|
sudo systemctl enable powertop
|
|
```
|
|
|
|
|
|
# BIOS
|
|
|
|
```sh
|
|
sudo fwupdmgr get-devices
|
|
sudo fwupdmgr refresh
|
|
sudo fwupdmgr get-updates
|
|
sudo fwupdmgr update
|
|
```
|
|
|
|
# Kernel Parameter Tuning (Last Resort)
|
|
For advanced thermal tuning, kernel parameters like `intel_pstate=passive` or `pcie_aspm=force`
|
|
|
|
# Info
|
|
|
|
<br><br>
|
|
|
|
```sh
|
|
grep MHz /proc/cpuinfo
|
|
```
|
|
|
|
```
|
|
cpu MHz : 4800.000
|
|
cpu MHz : 400.000
|
|
cpu MHz : 4744.609
|
|
cpu MHz : 4777.125
|
|
```
|
|
|
|
<br><br>
|
|
|
|
```sh
|
|
sudo sensors
|
|
```
|
|
|
|
```
|
|
iwlwifi_1-virtual-0
|
|
Adapter: Virtual device
|
|
temp1: +40.0°C
|
|
|
|
thinkpad-isa-0000
|
|
Adapter: ISA adapter
|
|
fan1: 5338 RPM
|
|
CPU: +64.0°C
|
|
GPU: N/A
|
|
temp3: +56.0°C
|
|
temp4: +0.0°C
|
|
temp5: +48.0°C
|
|
temp6: +51.0°C
|
|
temp7: +53.0°C
|
|
temp8: N/A
|
|
```
|
|
|
|
<br><br>
|
|
|
|
```sh
|
|
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorperformance
|
|
```
|
|
|
|
```
|
|
performance
|
|
performance
|
|
performance
|
|
performance
|
|
```
|
|
|
|
# cpupower: frequency & governor
|
|
|
|
```sh
|
|
sudo cpupower frequency-set -g powersave
|
|
```
|
|
|
|
```
|
|
Setting cpu: 0
|
|
Setting cpu: 1
|
|
Setting cpu: 2
|
|
Setting cpu: 3
|
|
```
|
|
|
|
<br><br>
|
|
|
|
```sh
|
|
sudo cpupower --cpu all frequency-set --max 1.4GHz
|
|
```
|
|
|
|
```
|
|
Setting cpu: 0
|
|
Setting cpu: 1
|
|
Setting cpu: 2
|
|
Setting cpu: 3
|
|
Setting cpu: 4
|
|
```
|
|
|
|
<br><br>
|
|
|
|
```sh
|
|
sudo cpupower --cpu all frequency-info | grep -e "current CPU" -e "The governor"
|
|
```
|
|
|
|
```
|
|
The governor "powersave" may decide which speed to use
|
|
current CPU frequency: 1.02 GHz (asserted by call to kernel)
|
|
The governor "powersave" may decide which speed to use
|
|
current CPU frequency: 1.04 GHz (asserted by call to kernel)
|
|
The governor "powersave" may decide which speed to use
|
|
current CPU frequency: 1.39 GHz (asserted by call to kernel)
|
|
The governor "powersave" may decide which speed to use
|
|
current CPU frequency: 1.38 GHz (asserted by call to kernel)
|
|
|
|
```
|
|
|
|
# Undervoltage
|
|
|
|
```sh
|
|
sudo dnf install intel-undervolt
|
|
sudo modprobe msr
|
|
|
|
sudo dnf install msr-tools
|
|
sudo modprobe msr
|
|
|
|
echo "msr" | sudo tee /etc/modules-load.d/msr.conf
|
|
sudo grubby --update-kernel=ALL --args="msr.allow_writes=on"
|
|
```
|
|
|
|
Check
|
|
|
|
```sh
|
|
lsmod | grep msr
|
|
|
|
sudo dmesg | grep -i undervolt
|
|
|
|
sudo rdmsr 0x150
|
|
sudo rdmsr 0x150 -f 31:31
|
|
# If this returns 1, undervolting is locked
|
|
# If this returns 0, undervolting might be possible
|
|
```
|
|
|
|
|