'Twas brillig, and Luc Menut at 22/10/12 22:57 did gyre and gimble: > Le 17/10/2012 00:04, Colin Guthrie a écrit : >> I've already dropped the requirement from upower and I suspect that kde >> these days also uses upower for suspend/resume (can someone please test >> for me? Just remove pm-utils with --nodeps and make sure everything >> still works is a nice easy test :D) > > upower 0.9.18 still requires pm-utils for some features: > > - up_backend_supports_sleep_state (src/linux/up-backend.c line 360) > calls /usr/bin/pm-is-supported to determine if suspend or hibernate are > available on the system. upower uses this to reply to dbus call on > org.freedesktop.UPower.CanSuspend or .CanHibernate. > > Without pm-utils, org.freedesktop.UPower.CanSuspend or .CanHibernate > always return false. > At startup, KDE asks org.freedesktop.UPower.CanSuspend and .CanHibernate > to know if, respectively, suspend and hibernate are possible on the > system. So, without pm-utils installed, suspend and hibernate entries > are not available in KDE's menus and applets (it's needed to reboot > after the removal of pm-utils).
Good catch. Seems like it should be asking logind for this info these days. I think Gnome asks logind directly rather than going via upower, but if the interface exists it should work! > - up_backend_get_powersave_command (src/linux/up-backend.c line 615) > calls /usr/sbin/pm-powersave to apply powersave's adjustments. Cool. I'll take a look and see what is needed here. > So, we should re-add the Requires pm-utils in upower for now (btw, > Fedora still has this requirement). Well I believe their plan is still to remove it, so let's see if we can help this process along. If it's not possible before mga3, then yeah, adding the require back to upower makes sense (perhaps even with a stripped down pm-utils package). Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/