
答案1
根據這個文件,你做了正確的事情,除了你必須創建文件/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
你可以透過在終端機中複製/貼上以下內容來完成
sudo tee -a /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla << END1
[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
END1
答案2
這是 Nvidia 的 NVHDA 問題…意味著透過 HDMI 發出聲音。以下是命令列的步驟 - 如果您像我一樣擁有 Nvidia 的 NVHDA:
如果我手動停用音訊輸出:
sudo tee /proc/acpi/nvhda <<< OFF
然後我就可以讓它睡了。然後我必須在恢復時再次打開它:
sudo tee /proc/acpi/nvhda <<< ON