gnome-control-center: hibernation vs suspend when energy is low
- From: Gautier Pelloux-Prayer <gautier damsy net>
- To: gnome-devel-list gnome org
- Subject: gnome-control-center: hibernation vs suspend when energy is low
- Date: Sat, 16 May 2015 15:33:30 +0200
Hi,
In gnome-control-center application, one can configure its laptop to go in suspend mode when Energy goes very low. However this is only possible when laptop supports Hibernation, as cc-power-panel.c:1945 queries DBus:
result = g_dbus_connection_call_sync (connection,
"org.freedesktop.login1",
"/org/freedesktop/login1",
"org.freedesktop.login1.Manager",
"CanHibernate",
NULL,
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
NULL);
Instead of asking for "CanHibernate", should not it be asking for "CanSuspend" feature (or both?). In my personal case, I do not have any SWAP so hibernation is not available, but suspend is:
$ qdbus --system --literal org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernate
"na"
$ qdbus --system --literal org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanSuspend
"yes"
I would like to suspend computer instead of shutting it down when Energy is critical. Is it the right place to discuss about it, or should I ask somewhere else?
Thanks!
[Date Prev][Date Next] [Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]