[Pm-utils] Making cron run after resume?
seife at suse.de
Fri May 16 01:42:51 PDT 2008
Victor Lowther wrote:
> The current behavior is (effectivly) "ignore everything". I would like
> to make pm-utils a little smarter about how to handle things when (say)
> needed video quirks don't get applied causing the system to hardlock on
In my implementation (no idea how the current code does it), i just touch the
$INHIBIT file (or even write some meaningful error message into it, which can
be displayed to the user later) and suspending will not happen.
Remember, refusing to suspend should only happen in very rare cases, i
currently only have a few for suspend to disk:
- the kernel changed (security update), so we know before suspend that we
- there is no swap partition or more generally no storage for s2disk
configured => configuration error
"Being unable to apply video workarounds before s2ram" generally cannot happen
IMVHO (but i'm ready to be convinced the other way round).
Right now, just refusing to suspend and then later exiting with != 0 exit
code, so that the GUIs can display a "suspend had a problem, do you want to
look at the Log file / file a bugreport?" message was pretty effective and
worked very well for me.
R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."
This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
More information about the Pm-utils