最近折腾我的Surface电脑,给它装上Ubuntu系统后,发现设备总是断网,并不是网络连接不上,而是系统检测不到网卡了。

经过我的一番折腾,我发现了原因,并找到了解决办法。

其实是因为Surface 系列在 Ubuntu 下默认启用了激进的 Wi-Fi 省电策略,导致网卡频繁被系统无法识别。

解决方案

为了解决这个问题,只需要在终端输入如下命令关闭省电策略:

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

然后重启计算机:

sudo reboot