You might also want to try and find out which [dbus_message_new_error (message, "org.freedesktop.Hal.Device.UnknownError", "An unknown error occured");] statement gets executed.
But before you do any of that I would reccomend trying CVS HAL, and checking that the error hasn't been fixed already.
>Can you tell me what scripts are called so that I can take a look at it? (Or at least tell me the highest, than I can go downwards)
The hal-system- power-sleep script is the only script that HAL calls for a sleep event.
You might want to look at http:// webcvs. freedesktop. org/hal/ hal/hald/ , hald_dbus.c (hald_exec_ method_ cb)
You might also want to try and find out which [dbus_message_ new_error (message, "org.freedeskto p.Hal.Device. UnknownError" , "An unknown error occured");] statement gets executed.
But before you do any of that I would reccomend trying CVS HAL, and checking that the error hasn't been fixed already.
Richard.