我的电脑在 ubuntu 19.10 中休眠时没有问题。但今天升级到 20.04 后,休眠功能起初不起作用,然后我替换了这里的几行
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
有了这个
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-
key;org.freedesktop.login1;org.freedesktop.login1.hibernate-m$
ResultActive=yes
取代这个
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes
但在那之后,我看到这些奇怪的线条移动得非常快,就像断电前休眠期间的循环一样。
[365.some_random_number] usb 3-1: clear tt 1 (9042) error -71
答案1
我运行了这两个命令并重新启动,然后似乎问题已经解决了。可能是因为固件过时了
sudo update-initramfs -u -k all
sudo update-grub