Commit Graph

9 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
2d8e7f378e
pm-utils: call qubes.SuspendPreAll/qubes.SuspendPostAll services
Host suspend notification may be useful not only to driver domains. For
example Whonix needs to resync time after suspend.

Thanks @adrelanos for help.

Fixes QubesOS/qubes-issues#1663

(cherry picked from commit e0c875a367)
2016-05-01 21:36:22 +02:00
Marek Marczykowski-Górecki
35a7d5ef53
pm-utils: do not leave background tasks - will be killed by systemd
qvm-sync-clock running in background is killed as soon as
qubes-suspend.service is terminated.
Additionally restore --verbose option, which was the case (implicitly)
in previous qvm-run based code.

Fixes QubesOS/qubes-issues#1795

(cherry picked from commit b19ba4dc2d)
2016-05-01 21:34:59 +02:00
Marek Marczykowski-Górecki
ab5e1182c5
Use qubes.SetDateTime instead of direct call in post-suspend time sync
Fixes QubesOS/qubes-issues#1728

(cherry picked from commit 8c0643092b)
2016-05-01 21:29:16 +02:00
Marek Marczykowski-Górecki
2db344e7a9 pm-utils: do not load not used pm_functions 2013-12-10 20:02:35 +01:00
Marek Marczykowski-Górecki
d3f27e2483 pm-utils: add missing qubes-sync-vms-clock script to systemd service 2013-12-10 14:27:48 +01:00
Marek Marczykowski-Górecki
2b716bc141 pm-utils: do not load PM_FUNCTIONS - not used in our scripts
And not available when called from systemd
2013-11-06 15:42:59 +01:00
Marek Marczykowski-Górecki
d0509caf9e pm-utils: hook qubes suspend scripts to systemd
Apparently new KDE doesn't call pm-suspend anymore, instead use systemd
suspend logic. So hook our scripts also there.
2013-11-04 01:28:36 +01:00
Marek Marczykowski-Górecki
9f62349732 pm-utils: try to suspend the VMs instead of just pause 2013-10-23 21:59:29 +02:00
Marek Marczykowski
dbe9693851 Other Linux-specific files 2013-03-16 19:52:16 +01:00