🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
New message when rebooting from login screen: Authentication is required for rebooting the system while an application asked to inhibit it
November 10, 2019
Edited: November 10, 2019
September 20, 2023
Copy to clipboard: false
/assets/js/search.js will update text..
You can get a list of all systemd inhibitors with this:
$ systemd-inhibit --list Who: rick (UID 1000/rick, PID 2358/unity-settings-) What: sleep Why: GNOME needs to lock the screen Mode: delay Who: rick (UID 1000/rick, PID 2358/unity-settings-) What: handle-power-key:handle-suspend-key:handle-hibernate-key Why: GNOME handling keypresses Mode: block Who: NetworkManager (UID 0/root, PID 1189/NetworkManager) What: sleep Why: NetworkManager needs to turn off networks Mode: delay Who: Unattended Upgrades Shutdown (UID 0/root, PID 1372/unattended-upgr) What: shutdown Why: Stop ongoing upgrades or perform upgrades before shutdown Mode: delay Who: rick (UID 1000/rick, PID 2358/unity-settings-) What: handle-lid-switch Why: Multiple displays attached Mode: block 5 inhibitors listed.
However the list doesn’t change after you open a file for editing for example. You can use this instead:
$ dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.GetInhibitors method return time=1573403207.555584 sender=:1.49 -> destination=:1.1853 serial=7743 reply_serial=2 array [ ] $ gedit temp & # Now type some text into gedit but don't save the file $ dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.GetInhibitors method return time=1573403241.678869 sender=:1.49 -> destination=:1.1855 serial=7747 reply_serial=2 array [ object path "/org/gnome/SessionManager/Inhibitor1727" ]
In the first instance there are no inhibitor locks. We edit a file in gedit and in the second instance a lock exists. However it doesn’t actually tell us the name