PrepareFor{Sleep,Shutdown} (false) signals not emitted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Per
http://
"PrepareForShut
(I think it means s/Shutdown/Sleep in the first sentence)
Our systemd has a patch 0016-Add-
I attach a strawman patch (diff of a diff - look at it after applying) which explicitly sends the signal and does some other needed cleanups (see bus_message_filter for the call site for where the signal is usually sent). Let me know what you think.
Related branches
tags: | added: patch |
Changed in systemd (Ubuntu): | |
status: | New → Triaged |
Thanks! I simplified the patch a bit to avoid moving the whole function (I just added a forward declaration) and another "ret" variable, but the spirit of it works very well. Tested with
sudo dbus-monitor --system "type=' signal' ,sender= 'org.freedeskto p.login1' ,interface= 'org.freedeskto p.login1. Manager' "
and
gdbus call --system --dest org.freedesktop .login1 --object-path /org/freedeskto p/login1 -m org.freedesktop .login1. Manager. Suspend false