Xubuntu 23.10:将休眠功能添加到 XFCE

Xubuntu 23.10:将休眠功能添加到 XFCE

从技术上讲,休眠是可行的。我可以通过 使用它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

但没有帮助。

相关内容