<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ali Abdallah wrote:
<blockquote cite="mid:490CC947.2050208@xfce.org" type="cite">
  <pre wrap="">jp.guillemin wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">looking into the code, I found that the mod uses HAL to suspend (this 
idea seams strange, it would be simpler to provide a configuration 
file to specify the scripts location) .

So the question is : how do I tell to HAL to use a suspend script ? 
(using default scripts provided by hal, or whatever, will usually 
fail, and I have written suspend scripts that work in 98% of the cases 
including laptops, so I must use them).

I want to test, but without any information about this feature, it's 
not easy.

Thanks
JP
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You can always add the call to your script, usually in 
/usr/lib/hal/scripts/YourOS/hal-system-..., i use uswsusp to do 
suspend/hibernate and i had to edit the too HAL scripts, be careful 
about the exit code, HAL uses this to identify errors.

Regards,
Ali.
  </pre>
</blockquote>
<br>
OK, it works, but there's a problem : the xfce-mixer. <br>
<br>
With many sound cards all applications using the sound device must be
closed before suspending, else the driver is broken on resume.<br>
<br>
My xfce hibernate script does something like  : <br>
<br>
/usr/bin/xfce4-panel --exit<br>
 ** call suspend script **<br>
/usr/bin/xfce4-panel &<br>
<br>
It usually work very well out of the session logout dialog, but not in
the current case.<br>
<br>
JP<br>
<br>
<br>
</body>
</html>