![Xubuntu 23.10:将休眠功能添加到 XFCE](https://linux22.com/image/1032590/Xubuntu%2023.10%EF%BC%9A%E5%B0%86%E4%BC%91%E7%9C%A0%E5%8A%9F%E8%83%BD%E6%B7%BB%E5%8A%A0%E5%88%B0%20XFCE.png)
从技术上讲,休眠是可行的。我可以通过 使用它systemctl hibernate
。但我需要向 XFCE 添加休眠按钮,并向 XFCE 电源管理器添加低电量休眠。
我尝试添加/var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla
##NEW entry since Ubuntu 18:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
##NEW entry since Ubuntu 18:
[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
但没有帮助。