似乎是因為安裝了GNOME而造成的
要取消網卡休眠:
1.將(AC跟電池)休眠時間設為0
vim
/etc/gdm3/greeter.dconf-defaults
sleep-inactive-ac-timeout=0
sleep-inactive-ac-type='blank'
sleep-inactive-battery-timeout=0
sleep-inactive-battery-type='blank'
cp /etc/gdm3/greeter.dconf-defaults /usr/share/gdm/greeter.dconf-defaults
2.重新啟動 gdm3
systemctl restart gdm3
3.關閉 PCI-E 的 ASPM (主動狀態電源管理)
vim /etc/default/grubpcie_aspm=off
4.重新載入 GRUB
update-grub && sudo update-grub2
5.關閉休眠服務
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
6.重新開機後放置20分鐘後也不會進入休眠