Testing s2ram with the openSUSE 10.2 Live DVD

From openSUSE

Contents

Overview

This article describes how you can test s2ram on a machine without installing anything, just by using the openSUSE 10.2 Live DVD. The article is based on a suggestion by Sitsofe Wheeler on the suspend-devel mailinglist.

How to do it

Boot into a text console

At the graphical boot menu, boot to runlevel 1 by highlighting either the GNOME or the KDE option then typing 1 followed by the [return] key.

This should eventually put you at a text console which you can log into. From here you can do console testing as described in the s2ram-page.

Testing X

For doing (open source driver) X testing, boot to the console as explained above and then run

/etc/init.d/earlysax2

to create a /etc/X11/xorg.conf. You can then use

xinit

to get an X with a simple xterm on it.

From the xterm you got now, you can test suspend from X as described in the s2ram page.

Note

This is not as minimal an environment as init=/bin/sh but it isn't too bad as there is still a lot that isn't loaded (it also stops the boot process quicker than a regular live CD boot). Please also note that while this environment may work without problem a regular boot may still go on to lock the machine up on suspend due to bugs in other modules (e.g. the tg3 network card driver would not be loaded in the above tests). But these are usually not s2ram bugs, but driver bugs that need to be reported and fixed in the kernel anyway.