Just in case you can reproduce this on any system which supports
hibernate but does not support sleep. Responsible code is this:
static void
idle_do_sleep (GpmManager *manager)
...
} else if (strcmp (action, ACTION_SUSPEND) == 0) {
gpm_info_explain_reason (manager->priv->info, GPM_EVENT_SUSPEND,
_("Suspending computer."), _("System
idle."));
ret = gpm_control_suspend (manager->priv->control, &error);
if (!ret) {
egg_warning ("cannot suspend (error: %s), so trying
hibernate", error->message);
g_error_free (error);
error = NULL;
ret = gpm_control_hibernate (manager->priv->control,
&error);
if (!ret) {
egg_warning ("cannot suspend or hibernate: %s",
error->message);
g_error_free (error);
}
}
} else if (strcmp (action, ACTION_HIBERNATE) == 0) {
It appears to throw away errors from gpm_control_suspend, falling
through to gpm_control_hibernate - but unfortunately gpm_control_suspend
does not check whether can_suspend is TRUE - it blindly issues suspend,
and if it fails, it signals sleep-error - causing error message to pop
up after computer is waken up from hibernate.
Also gpm_manager_suspend() checks inhibit on "hibernate", not "suspend",
but unfortunately fixing that won't help here :-(
gnome-power-manager 2.24.4 still suffers from this problem. If you are
looking for platform where you can investigate this behavior, try
VMware's VMs - only S1 & S4 is supported there, so you get hibernate +
suspend error on them.
--
Feisty reports suspend failed after resuming from suspend
https://bugs.launchpad.net/bugs/89983
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs