Пару дней назад всё прекрасно работало, не понял из-за чего, подозреваю, что после того как поставил gnome-polkit
перестал работать сон.
$ systemctl suspend
Call to Suspend failed: Access denied
$ sudo grep -ri org.freedesktop.login1.suspend /usr/share
/polkit-1/
/usr/share/polkit-1/actions/org.freedesktop.login1.policy: <action id="org.freedesktop.login1.suspend">
/usr/share/polkit-1/actions/org.freedesktop.login1.policy: <action id="org.freedesktop.login1.suspend-multiple-sessions">
/usr/share/polkit-1/actions/org.freedesktop.login1.policy: <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.suspend</annotate>
/usr/share/polkit-1/actions/org.freedesktop.login1.policy: <action id="org.freedesktop.login1.suspend-ignore-inhibit">
/usr/share/polkit-1/actions/org.freedesktop.login1.policy: <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.suspend</annotate>
$ grep -i suspend /usr/share/dbus-1/system.d
/org.freedesktop.login1.conf
send_member="Suspend"/>
send_member="SuspendWithFlags"/>
send_member="SuspendThenHibernate"/>
send_member="SuspendThenHibernateWithFlags"/>
send_member="CanSuspend"/>
send_member="CanSuspendThenHibernate"/>
busctl monitor
:
Type=error Endian=l Flags=1 Version=1 Cookie=6 ReplyCookie=293 Timestamp="Wed 2023-11-22 23:31:43.814249 UTC"
Sender=org.freedesktop.DBus Destination=:1.14
ErrorName=org.freedesktop.DBus.Error.AccessDenied ErrorMessage="Rejected send message, 2 matched rules; type="signal", sender=":1.14" (uid=102 pid=688 comm="/usr/lib/polkit-1/polkitd --no-debug") interface="org.freedesktop.PolicyKit1.Authority" member="Changed" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (uid=0 pid=521 comm="/usr/bin/NetworkManager --no-daemon")"
MESSAGE "s" {
STRING "Rejected send message, 2 matched rules; type="signal", sender=":1.14" (uid=102 pid=688 comm="/usr/lib/polkit-1/polkitd --no-debug") interface="org.freedesktop.PolicyKit1.Authority" member="Changed" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (uid=0 pid=521 comm="/usr/bin/NetworkManager --no-daemon")";
};
btw: Linux arch 6.6.2-arch1-1