如何在Manjaro上安装Surface驱动
更新源
如果已经切换了源可跳过
sudo pacman-mirrors -i -c China -m rank
sudo vim /etc/pacman.conf
# 添加如下内容:
[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
sudo pacman-mirrors -g
sudo pacman -Syyu
sudo pacman -S archlinuxcn-keyring
解决签名问题
要完成这些操作,请以 root 权限运行:
rm -fr /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
pacman-key --populate manjaro
pacman-key --populate archlinuxcn
点击参考官网说明
安装驱动
Clash开启TUN Mode和Global模式即可解决在命令行下使用代理的问题
curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
| sudo pacman-key --add -
sudo pacman-key --finger 56C464BAAC421453
sudo pacman-key --lsign-key 56C464BAAC421453
将下面的内容添加到/etc/pacman.conf
文件的末尾。
[linux-surface]
Server = https://pkg.surfacelinux.com/arch/
下面开始安装:
sudo pacman -Syu
sudo pacman -S linux-surface linux-surface-headers iptsd
# 自启动
sudo systemctl enable iptsd
如果你用的是Surface Pro 4, 5, 6, Book 1, 2, Laptop 1, 2,你还需要安装一个用于驱动WIFI的包
$ sudo pacman -S linux-firmware-marvell
重启即可
查看效果
输入命令:
sudo pacman -S screenfetch
screenfetch
此时会看到右边Kernel含有surface字样,如Kernel: x86_64 Linux 5.16.10-arch1-1-surface