Google-Apps
Hauptmenü

"More power management changes"

7 Comments -

1 – 7 of 7
Blogger Kevin Krammer said...

Please excuse me if this is a stupid question but why would users of either the D-Bus interface or the glib abstraction library be affected?

Affected in such a context has a negative vibe attached to it. Like having to change their code.

17 October 2013 at 18:19

Blogger Bastien Nocera said...

Affected doesn't necessarily have a negative connotation, it can just mean "it will change something in the subject".

It breaks the D-Bus API, and both the ABI and API of the libupower-glib helper library, so it has a negative influence. It adds badly needed features, so will have a positive influence as well :)

17 October 2013 at 18:55

Anonymous Anonymous said...

Hi, I am facing a problem with the "HybridSleep"-thing in UPower, so I set it to "Hibernate" in UPower.conf, but after reloading the upower-systemd.unit I still get critical-action: HybridSleep from upower -d . So I had a look into your code and didn't find a trace where this Parameter is read.

And now I want to say why I don't want HybridSleep as default. My Thinkpad X1 cannot do resume from sleep aka standby anymore (some kind of hardware problem). HybridSleep would be the best option, if my hardware would still function correctly, but I am forced to use hibernate only. For now this issue is not critical because I do not loose any data in the process. I can still resume from hibernate even if the UPower has used HybridSleep after I switch off the notebook while in sleep manually.

And yes, I know, the method up_backend_take_action(...) calls logind to do the actual sleeping and hibernating.

Besides all of this, I have a pretty standard Gnome 3.12 desktop on Gentoo. I apologize for reporting this here instead in a bugzilla of yours, because I am not sure, if I missed something in your code which makes my statements invalid. Any hints are welcome.

8 August 2014 at 15:35

Blogger Bastien Nocera said...

André K: it probably doesn't use Hibernate because systemd says your system cannot hibernate. It then falls back to the next best thing, which is HybridSleep.

You can try something like that:
gdbus call --system --dest org.freedesktop.login1 --object-path /org/freedesktop/login1 --method org.freedesktop.login1.Manager.CanHibernate

8 August 2014 at 15:54

Anonymous Anonymous said...

Oh, I thought, it is just the other way round:

# If HybridSleep isn't available, Hibernate will be used
# If Hibernate isn't available, PowerOff will be used

The output is ('yes',) for "CanHibernate" and "CanHybridSleep".

8 August 2014 at 16:01

Blogger Bastien Nocera said...

No idea. File a bug? :)

8 August 2014 at 16:11

Anonymous Anonymous said...

Here is my bug report (o: https://bugs.freedesktop.org/show_bug.cgi?id=82925

22 August 2014 at 17:03

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot