recommend tlp over power-profiles-daemon

This commit is contained in:
ducoterra
2023-07-29 09:57:22 -04:00
parent daeb8ee953
commit 9bdc623daf

View File

@@ -505,33 +505,25 @@ dconf write /org/gnome/software/download-updates false
## Battery Life
Enable nvme power savings
```bash
grubby --args="nvme.noacpi=1" --update-kernel=ALL
```
Enable automatic power profile switching on AC/Battery
Install and enable tlp
1. `sudo mkdir /lib/udev/power-profiles`
1. `sudo vim /lib/udev/power-profiles/power-saver`
TLP is a hands-off power management daemon that automatically applies good power settings
for your device. You won't get maximum all-the-time turbo but that doesn't seem to be
the best anyway.
```bash
powerprofilesctl set power-saver
```
1. `sudo chmod +x /lib/udev/power-profiles/power-saver`
1. `sudo vim /lib/udev/power-profiles/performance`
```bash
powerprofilesctl set performance
```
1. `sudo chmod +x /lib/udev/power-profiles/performance`
sudo vim /etc/udev/rules.d/10-power.rules
Don't install tlp-rdw, it conflicts with gnome's wifi/bluetooth toggles.
```bash
SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/bin/bash /lib/udev/power-profiles/power-saver"
SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/bin/bash /lib/udev/power-profiles/performance"
sudo dnf remove power-profiles-daemon
sudo dnf install tlp
sudo systemctl enable tlp.service --now
sudo systemctl status tlp.service
```
~~Calibrate with powertop~~
@@ -546,23 +538,6 @@ sudo powertop --calibrate
sudo powertop
```
~~Install and enable tlp~~
TLP seems to limit maximum performance. I'm leaving it here for posterity.
Stick with powertop and power profiles daemon.
```bash
sudo systemctl stop power-profiles-daemon.service
sudo systemctl disable power-profiles-daemon.service
sudo systemctl mask power-profiles-daemon.service
sudo dnf install tlp
sudo systemctl mask systemd-rfkill.service
sudo systemctl mask systemd-rfkill.socket
sudo systemctl enable tlp.service --now
sudo systemctl status tlp.service
```
### Simple Battery Monitoring App
alarm charge_full_design device power subsystem voltage_min_design
@@ -769,3 +744,16 @@ sudo dnf install ffmpegthumbnailer
```bash
sudo dnf install libheic-freeworld
```
## flashpoint-launcher
```bash
sudo dnf install mesa-libgbm
sudo dnf install gtk3
sudo dnf install cups-libs
sudo dnf install at-spi2-atk-devel
sudo dnf install atk-devel
sudo dnf install atk
sudo dnf install nss
sudo dnf install php
```