MacBook安装Arch的一些设置
声音
没有声音,在/etc/modprobe.d/modprobe.conf里加入:
options snd-hda-intel model=mbp3 position_fix=2
网络
dhcpcd禁止ipv6:
在/etc/dhcpcd.conf中加入:
noipv6rs
noipv6
输入法
在.xprofile中加入:
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=fcitx
GTK_IM_MODULE设为fcitx后,firefox无法调用fcitx,因为firefox并不是真正的gtk程序,设为xim后,它可以调用xim,而xim已被设为fcitx,这样反而是可以的。
小工具
Powertop
安装powertop,可以节电。
yay -S powertop安装
使用命令做一些微调,期间会黑屏,等待片刻就好。
# powertop --calibrate
创建文件/etc/systemd/system/powertop.service, 加入以下内容:
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
开机启动:
$ sudo systemctl enable powertop.service
Thermald
这个可以调整CPU,以避免过热。
yay -S thermald
systemctl enable thermald.service
CPUPower
可以调节CPU频率,可以设置你的CPU为powersave模式
yay -S cpupower
sudo systemctl enable cpupower
在文件/etc/default/cpupower中使用以下设置(我的CPU最高频率是2.3GHz)。
governor='powersave'
max_freq="2.3GHz"
mbpfan: 风扇控制
yay -S mbpfan-git
systemctl enable mbpfan.service
mbpfan会产生大量的log,把文件/usr/lib/systemd/system/mbpfan.service中
ExecStart=/usr/sbin/mbpfan -fv
改为:
ExecStart=/usr/sbin/mbpfan -f
去掉verbose模式,以避免大量的log产生。
