gnome-power-manager does not report suspend or hibernate failures when inhibited at the pm-utils level
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gnome-power-manager
When the pm-utils scripts pm-suspend/
Hibernate failed in a horrible way!
If we look at hal_gpower_
ret = 0
retval != 0
*error == NULL
This in turn results in us producing a warning to the log and nothing for the user. This result form seems to occur when the hal runs pm-suspend/
hal_
{
[...]
time (&start);
ret = dbus_g_proxy_call (proxy, method, error,
/* we might have to ignore the error */
if (error != NULL && hal_gpower_
if (retval != 0)
[...]
return ret;
}
Losing this information seems incorrect.
ProblemType: Bug
ACAdapter: Present
Architecture: amd64
Battery: Present
CPUScaling: Present
DistroRelease: Ubuntu 9.04
LaptopPanel: Present
Package: gnome-power-manager 2.24.2-2ubuntu8
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-power-manager
Uname: Linux 2.6.28-13-generic x86_64
Changed in gnome-power-manager (Ubuntu): | |
assignee: | Andy Whitcroft (apw) → nobody |
status: | In Progress → Triaged |
Losing this information sees wrong. If we simply convert this error message free return into a real error and return that the pre-existing failure detection will trigger and pop-up a failure dialog for the user.