
After getting many bug reports on a strange suspend or hibernate behavior, and two years after last discussion on dropping pm-utils[1], I think that there is a time to make a step further, and drop pm-utils for real. What changed over in last two years: - many bugs were fixed - really needed quirks were ported to systemd - SUSE Linux Enterprise was released without pm-utils and suspend packages - Fedora has no pm-utils as well How suspend/hibernate works in openSUSE now: - systemd gets a request to hibernate. - systemd executes its quirks. - if pm-utils are not present, systemd asks kernel for hibernation. - if pm-utils are present but suspend is not present, hibernate. continues with pm-utils quirks, then pm-hibernate asks kernel for hibernation. - if pm-utils and suspend are present, hibernate continues with pm-utils quirks, but skips video quirks, then pm-hibernate converts list of skipped video quirks to command line arguments of s2disk, and then it calls s2disk. s2disk calls selected video quirks and does hibernation on its own. - If you call pm-hibernate or s2disk, things are going differently and some quirks can be skipped. Your machine may start or stop hibernate. As you see, it's a nightmare to debug stuff like that. My proposal: - drop both pm-utils and suspend. See the discussion in BugZilla[2]. - Remove support for pm-utils from systemd. See the discussion in BugZilla[3]. - Create sysconfig for hwclock. - If it will be needed, create systemd-video-quirks-legacy. How suspend/hibernate will work then: - systemd gets a request to hibernate - systemd executes its quirks - systemd asks kernel for hibernation What will we lose: - pm-utils quirks. Nobody knows, what is still needed. Quirks were added to work-around kernel bugs, kernel was fixes, quirks left intact. Most quirks are > 5 years old, there are no quirks for new hardware. See a long discussion about these quirks in the BugZilla[2] - Serial execution of quirks. Not a big problem, as (even the old) pm-utils quirks are independent on on other. - s2disk multithread compression and hibernation to file until kernel gets these features. But it seems, that there are many machines, where s2disk breaks the suspend completely. Which are the risks: - That some pm-utils video quirks are still needed. But it is not a reason to re-introduce pm-utils. We can easily port pm-utils video quirk wrapper to systemd, and create a systemd-video-quirks-legacy package for them. - That some kernel drivers still need reload. Fill a bug against kernel instead of adding them to SUSPEND_MODULES in /etc/pm/config.d. - That network software will not re-initiate connection. Fill a bug against your network management software. Proposed change in systemd.spec for Factory [4]: +Obsoletes: pm-utils <= 1.4.1 +Obsoletes: suspend <= 1.0 -# PATCH-FIX-OPENSUSE forward to pm-utils -- until boo#904828 is addressed -Patch25: Forward-suspend-hibernate-calls-to-pm-utils.patch -%patch25 -p1 References: [1] http://lists.opensuse.org/opensuse-factory/2013-11/msg00911.html [2] bugzilla.opensuse.org/show_bug.cgi?id=925873 [3] bugzilla.opensuse.org/show_bug.cgi?id=904828 [4] https://build.opensuse.org/package/show/home:sbrabec:branches:systemd-drop-p... -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.com Lihovarská 1060/12 tel: +49 911 7405384547 190 00 Praha 9 fax: +420 284 084 001 Czech Republic http://www.suse.cz/ PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org