Re: [gpm] gnome-power-manger-2.26.0 suspend and hibernate



On Mon, 23 Mar 2009 19:58:49 +0000
Chris Vine <chris cvine freeserve co uk> wrote:
> That's a shame, because pm-utils do not play very well with my laptop
> for some reason.  I can hibernate once with pm-hibernate, but then it
> refuses to hibernate again (it ignores further hibernation requests)
> for a reason it does not trouble itself to log.
> 
> I have my own scripts which unload any modules required and then
> invoke the kernel interface, and that works fine.  I can hibernate and
> suspend as many times as I like that way.  Since I do not set the
> HIBERNATE_MODE environmental variable pm-utils should work similarly,
> but for some reason it does not.
> 
> If I wanted to change the hard wiring of gnome-power-manager to
> pm-utils for my own private use, what would I need to patch - is this
> in gnome-power-manager or DeviceKit-power?

To answer my own question, I see that it is in DeviceKit-power, where
it is hardcoded into dkp_daemon_suspend() and dkp_daemon_hibernate() in
src/dkp_daemon.c.

Rather than patch the source, I think I might just as well move
pm-suspend and pm-hibernate and substitute my own scripts.

Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]