问题
在我的笔记本上,安装了Manjaro了,使用wifi的时候发现,一会就断,等一下又恢复了,图标也没有显示断开。
排查
在Manjaro上,默认是开启了tlp,默认是powersave模式;尝试修改成性能模式,发现正常,但是性能模式下,耗电太快了。
最好是能在powersave模式下还能正常使用wifi,Manjaro上网络管理是使用NetworkManager的,因此查找NetworkManager有没有对应的配置。
查看帮助 man networkmanager.conf
通过关键字可以搜索到对应的配置项目:
wifi.powersave
If left unspecified, the default value "ignore" will be used.
如果没有指定,默认就是忽略这个配置,也就是wifi启用性能模式,如果不是一直连接就会出现断开的情况。
可以选值
0表示禁用wifi的powersave模式,1或者2虽然降低了调整的频率,但是还是会用powersave的效果的。亲测还是使用0.
修改NetworkManager配置
创建配置文件/etc/NetworkManager/conf.d/default-wifi-powersave.conf,添加下面内容
[connection]
wifi.powersave = 0
重启NetworkManager服务
systemctl restart NetworkManager
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.