Debugging HAL reporting suspend errors that aren't really errors

Mario Limonciello mario_limonciello at
Fri Aug 29 09:46:11 PDT 2008

Hi Danny:

Your idea sounds quite sensible for when these are long suspends, but
unfortunately these don't consistently happen only after 6 hours.  There
are occasions that the suspend is only a few minutes and these occur. 
I've written a short patch for gnome-power-manager that I'll submit
upstream to get looked at for the longer suspends however.

Any ideas on debugging these occurrences on short suspends?


Danny Kukawka wrote:
> On Donnerstag, 28. August 2008, Mario Limonciello wrote:
>> Hello:
>> Throughout preparing a variety of laptops to be shipped with Ubuntu 8.04
>> this past year, it became apparent that HAL was (seemingly randomly)
>> reporting that suspend had failed, when indeed it didn't.  The machine
>> would go both down and up OK, but the balloon notification (from
>> libnotify) and noise (from gnome-power-manager) indicating a failure
>> would happen after the machine came up.  From what I understand these
>> both get their reports of what had happened from HAL.
>> I was wondering how would be the best way to attack this type of problem
>> to determine the root cause?  It isn't exclusively on Dell hardware as
> I would tip that these aren't HAL errors. I guess this happens if you suspend 
> a long time (and I guess you use GNOME and not KDE). After 6 hours suspend 
> time the DBus method call times out, which leads to an error message.
> I fixed this in KPowersave by stop the time before the suspend, stop the time 
> after resumed, calculate the time between suspend and resume and if the time 
> is more than 6 hours: show no error message to the user.
> Danny
> _______________________________________________
> hal mailing list
> hal at

Mario Limonciello
*Dell | Linux Engineering*
mario_limonciello at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : 

More information about the hal mailing list