Comment 8 for bug 292256

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40

On Sun, 2008-11-09 at 12:02 +0000, japi wrote:
> I have no /var/run/video.rom and couldn't find a file with that name anywhere in the system.
> But why doesn't s2ram need that file?
>
>
> > One thing I'd like to mention is that you don't have to "force" Ubuntu
> > to use s2ram, it's a choice that's made
> > here: /etc/pm/config.d/00sleep_module. Uncomment the SUSPEND_MODULE line
> > and set it to "uswsusp".
>
> I have already tried that.
> First problem here is, that uswsusp has no s2ram in ubuntu anymore. So switching to uswsusp as suspend_module has no real effect.
>
> I bypassed this problem by installing the debian uswsusp with s2ram.
>
> But there is a second problem:
> The setting there seems to be ignored anyway, because still everything runs over "/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux" in the end.
> And there is a nice comment stating: "# We only support pm-utils", which seems to be true.
> Changing the line
> "/usr/sbin/pm-suspend $QUIRKS"
> into
> "/usr/sbin/s2ram --force --vbe_post"
> works nicely for me.
>
Sorry, I forgot you need pm-utils 1.1.2.4-1ubuntu8 from
intrepid-proposed for that to have effect. Please test. pm-suspend has a
few backends that it uses, which are tuxonice, kernel, and uswsusp. If
uswsusp is selected, as of ubuntu8, it'll use s2ram if found, otherwise
it'll use the kernel backend for suspend and s2disk for hibernate.

So yeah HAL supports only pm-utils, but pm-utils supports uswsusp,
kernel, and tuxonice. Don't bypass it.
--
Chow Loong Jin