clarify tlp instructions
This commit is contained in:
24
arch.md
24
arch.md
@@ -160,11 +160,31 @@ sudo ufw enable
|
|||||||
1. For laptops install `tlp`
|
1. For laptops install `tlp`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S tlp
|
sudo pacman -S tlp tlp-rdw
|
||||||
sudo systemctl enable --now tlp
|
sudo systemctl enable --now tlp
|
||||||
|
sudo systemctl mask systemd-rfkill.service
|
||||||
|
sudo systemctl mask systemd-rfkill.socket
|
||||||
```
|
```
|
||||||
|
|
||||||
2. For desktops install cpupower
|
2. Then configure it with the following settings (optional)
|
||||||
|
|
||||||
|
/etc/tlp.conf
|
||||||
|
|
||||||
|
```conf
|
||||||
|
# I've seen some issues with usb autosuspend
|
||||||
|
USB_AUTOSUSPEND=0
|
||||||
|
# Restore bluetooth/wifi state on reboot
|
||||||
|
# Otherwise it defaults to on
|
||||||
|
RESTORE_DEVICE_STATE_ON_STARTUP=1
|
||||||
|
# Disable wifi when plugged in
|
||||||
|
# You might not want this for continuity - eg. you're copying a file to a network
|
||||||
|
# share over wifi - plugging in will cancel the copy with this option enabled.
|
||||||
|
DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
|
||||||
|
# Re-enable wifi when unplugged.
|
||||||
|
DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
|
||||||
|
```
|
||||||
|
|
||||||
|
3. For desktops install cpupower
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S cpupower
|
sudo pacman -S cpupower
|
||||||
|
|||||||
Reference in New Issue
Block a user