mirror of
https://github.com/Dichgrem/Blog.git
synced 2026-02-05 01:21:57 -05:00
update:arch
This commit is contained in:
@@ -333,12 +333,12 @@ Description=Aria2c - lightweight multi-protocol & multi-source command-line down
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=dich
|
User=<username>
|
||||||
Group=dich
|
Group=<groupname>
|
||||||
WorkingDirectory=/home/dich
|
WorkingDirectory=/home/<username>
|
||||||
Environment=HOME=/home/dich
|
Environment=HOME=/home/<username>
|
||||||
Environment=USER=dich
|
Environment=USER=<username>
|
||||||
ExecStart=/usr/bin/aria2c --conf-path=/home/dich/.config/aria2/aria2.conf
|
ExecStart=/usr/bin/aria2c --conf-path=/home/<username>/.config/aria2/aria2.conf
|
||||||
Restart=always
|
Restart=always
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
@@ -383,24 +383,21 @@ net.ipv4.tcp_congestion_control = bbr
|
|||||||
```
|
```
|
||||||
|
|
||||||
## 性能模式切换
|
## 性能模式切换
|
||||||
需要安装``power-profiles-daemon``
|
需要安装``tlp-git tlp-pd-git tlp-rdw-git``
|
||||||
```bash
|
```bash
|
||||||
# 查看可用的电源配置文件(profiles)
|
# 查看当前状态
|
||||||
powerprofilesctl list
|
tlp-stat -s
|
||||||
|
|
||||||
# 查看当前正在使用的 profile
|
|
||||||
powerprofilesctl get
|
|
||||||
|
|
||||||
# 切换到“性能”模式
|
# 切换到“性能”模式
|
||||||
sudo powerprofilesctl set performance
|
sudo tlp performance
|
||||||
|
|
||||||
# 切换到“平衡”模式
|
# 切换到“平衡”模式
|
||||||
sudo powerprofilesctl set balanced
|
sudo tlp balanced
|
||||||
|
|
||||||
# 切换到“省电”模式
|
# 切换到“省电”模式
|
||||||
sudo powerprofilesctl set power-saver
|
sudo tlp power-saver
|
||||||
```
|
```
|
||||||
## 其他性能优化
|
## 其他可选性能优化
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
Profile‑sync‑daemon
|
Profile‑sync‑daemon
|
||||||
|
|||||||
Reference in New Issue
Block a user