<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    El 25/09/12 15:33, Yves-Alexis Perez escribió:
    <blockquote cite="mid:1348579981.4545.10.camel@scapa" type="cite">
      <pre wrap="">On mar., 2012-09-25 at 15:21 +0200, José Salavert Torres wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">1) There are two scripts to suspend from console: "pm-suspend" and
"pm-suspend-hybrid" , both in package pm-utils.

When I suspend using xfpm using the notification area icon, I have
found that the "pm-suspend" script is called by default .
That script does not work on my machine, but if I rename
pm-suspend-hybrid to pm-suspend the suspend process using xfpm works
again.
</pre>
      </blockquote>
      <pre wrap="">
Note that pm-suspend-hybrid is just suspending after taking a ram
snapshot for hibernation. So what you really means, I guess, is that
suspend fails while hibernation works, and that's an issue in your
kernel (or X drivers or something).</pre>
    </blockquote>
    <br>
    <pre wrap=""><big>pm-suspend-hybrid is just suspending my device, not hibernating, and you can not unplug the laptop using this method.
This suspend method is an hybrid. The wake up process is also way faster than full hibernation (seconds vs about a minute or more).</big>
</pre>
    <br>
    <blockquote cite="mid:1348579981.4545.10.camel@scapa" type="cite">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">
But renaming a file is not a user friendly way of selecting the
suspend method.

Maybe it would be possible to allow the user to select the suspend
method (pm-suspend or pm-suspend-hybrid) in the applet, is there only
one kind of dbus suspend call available?
If so maybe we should notify this to upower package mantainer.
</pre>
      </blockquote>
      <pre wrap="">
A quick look in dbus methods offered by upower shows that it only have
suspend() and hibernate(), yes.</pre>
    </blockquote>
    How should I notify then the upower mantainers, should I open
    another bug?<br>
    How can we involve them in this discussion?<br>
    <blockquote cite="mid:1348579981.4545.10.camel@scapa" type="cite">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">
2) This is a wish. I would like to setup the xfpm to suspend my
computer when plugged and hybernate when running on batteries. Is this
possible?
</pre>
      </blockquote>
      <pre wrap="">
Well, you can configure various options for when you're on AC and when
you're on battery in the settings interface.</pre>
    </blockquote>
    <br>
    Yes but it seems that I can not specify a different method for each:<br>
    <br>
    plugged -> suspend<br>
    unplugged -> hibernate<br>
    <br>
    There are more options in the advanced tab, but the inactivity
    option seems to be shared.<br>
    Maybe this is different in the lastest version of XFCE.<br>
    <br>
    We can split the two topics, because the second has severity
    wishlist and should be in another bugreport.<br>
  </body>
</html>