just found some time to test your work.
IBM X31 + Warty + ACPI (no apm enabled) + Hoary's hotplug+grepmap + your
kernel + your acpi-support
Video is ATI Radeon9000.
after following your instructions, suspend to disk works as expected :
powerbtn || Fn-F12 stops tasks, suspends usb ports and dumps memory to
swap. Machine powers off.
Pushing PowerBtn works as expected : the machines wakes up, restores
swap to ram, and all comes back to how it was before suspending. The
video isn't garbled, nor is the console.
Using mysql works as expected: it doesn't suspend ;)
(tried 2 times suspending successfully without mysqld, while writing
this e-mail in my gnome-session).
* when booting and resuming, the initrd (i suppose) produces loads of
ERROR: Removing "<MODULE_NAME>": device or resource busy
I saw in another e-mail that theses messages are normal because ide
modules can't be removed in 2.6.9. But why the hell does he want to
remove them ?? ;))p (forget it, i'm just kidding)
* suspend to ram seems to work but not completely. Fn-F4 shows globally
same things on console as Fn-F12, the little moon led of "suspended
state" goes on and screen goes off, then immediately back on (but
nothing shoes on it, and the suspend moon led is still on).
The machine "seems" suspended, but screen is on. If I hit power or Fn,
the machines wakes up (all system and apps come back well to a usable
state), any other key does nothing.
Same result with Load "dri" and Section DRI commented out in
tell me if (how) i can provide more details to find out how to dpms
screen off in order to fully suspend to ram.
tell me too if you want my dmesg.
thanks for the great work, suspend to disk is greater than halt /
Le mercredi 10 novembre 2004 Ã 14:50 +0000, Matthew Garrett a Ãcrit :
> I've been doing some work on power management support. Note that this is
> all highly experimental, so proceed with caution. It may eat your disks.
> There's two parts to this - kernel support and userspace support. Add
> deb http://www.srcf.ucam.org/~mjg59/laptops/ ./
> to /etc/apt/sources.list and do
> sudo apt-get install linux-image-2.6.9-1-386 acpi-support
> First, if you're using the i810 video driver, edit
> your /etc/X11/XF86Config-4 (or /etc/X11/xorg.conf if you're using Xorg)
> and in the driver section add
> option "VBERestore" "true"
> Now edit /boot/grub/menu.list. Find the # kopt line and add
> resume=/dev/hdwhatever - it should point at your swap partition. For
> reference, mine is
> # kopt root=/dev/hda1 resume=/dev/hda2 ro
> Now do sudo update-grub and reboot. The power button should now cause a
> suspend to disk. Boot again and it should resume (there may be a
> moderately long pause before the resume process starts at the moment - I
> need to spend some time looking at that).
> If that works, try pressing your laptop's sleep button (normally Fn
> +Escape, Fn+F4 or something like that). Test this from X, not from the
> console. With a bit of luck, various messages will fly past and the
> machine will suspend to RAM. If the machine /doesn't/ suspend, please
> follow up with information about the last few messages.
> Now try pressing the power button again (on some machines, you may need
> to hold it for a second or so). With rather more luck, the machine will
> resume and you'll have an X desktop again. If it doesn't, please follow
> up with the symptoms.
> Known issues:
> If mysqld is running, the suspend will be blocked. Stop it first.
> Various machines refuse to resume from suspend to RAM, for reasons that
> are currently entirely unclear. If your machine hangs with a blank
> screen or simply reboots, then there's not a lot we can do right at the
> moment (though in the former case, there is some further debugging which
> can be carried out)
> It's entirely possible that the laptop will resume but you won't have
> any video support. Again, follow up with some hardware information.
> Matthew Garrett | mjg59@xxxxxxxxxxxxx
ubuntu-devel mailing list