I have a related problem. But it is with a ThinkPad T23, S3 graphics. Phoenix BIOS suspend to disk works fine while X is running but only if I have a text console active. And it does not matter if I use the 'savage' or the 'vesa' Xorg driver.
If the X screen is active, the suspend hangs. Any clues, anyone? On Tue, Jul 10, 2007 at 05:45:40AM +0200, Jonathan Thornburg wrote: > In message <http://marc.info/?l=openbsd-misc&m=118157353605570&w=1> > I described how I couldn't get suspend-to-RAM to work on an IBM/Lenovo > Thinkpad T41p running OpenBSD 4.1-stable. (See that message for more > details, including my dmesg.) > > In <http://marc.info/?l=openbsd-misc&m=118163499228268&w=1> > I added the additional information that > | Since X is so tied up in this, I should also note that I do *not* have > | an 'xorg.conf' -- the system is using some sort of internally-generated > | default X configuration, which works fine (which is why I never bothered > | to set up my own 'xorg.conf'. > > I'd like to thank all the people who responded, both privately and on > the mailing list. The problem is now completely solved, thanks to a > suggestion from Erik Mugele <ejm at REMOVESPAMBLOCKteuton dot org>, > who wrote: > > What I eventually discovered was that the problem was the video driver > > that I was loading in the Xorg.conf file. Even if you don't use a > > custom xorg.conf file, the automatic version will load the "ati" driver. > > [[...]] > > I switched to using the "vesa" driver in Xorg.conf. This completely > > solved the problem. I know this isn't the optimal driver for the ATI > > card under X but it works just fine. I don't care about 3D > > acceleration, etc. I do get good colors, full 1600x1200 resolution and > > ALL of the suspend functions work (to RAM and to disk). They work from > > the Fn+buttons as well as from the zzz command. > > > > I wrote up my experiences about this here: > > http://www.teuton.org/~ejm/t42p > > My experience was identical, and switching to the vesa driver completely > solved my problem. (I don't have the XVideo extension any more, but > mplayer works fine with software video, so I don't care.) > > Again, my thanks to all who responded to my query -- suspend is *very* > valuable when travelling with a laptop. My apologies for the long delay > in this followup (too much travelling, and two much WPA-only wireless > in hotel rooms). > > For the record, here is the /etc/X11/xorg.conf I am now using: > --- begin /etc/X11/xorg.conf --- > Section "ServerLayout" > Identifier "X.org Configured" > Screen 0 "Screen0" 0 0 > InputDevice "Mouse0" "CorePointer" > InputDevice "Keyboard0" "CoreKeyboard" > EndSection > > Section "Files" > RgbPath "/usr/X11R6/lib/X11/rgb" > ModulePath "/usr/X11R6/lib/modules" > FontPath "/usr/X11R6/lib/X11/fonts/misc/" > FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled" > FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled" > FontPath "/usr/local/lib/X11/fonts/ghostscript/" > FontPath "/usr/X11R6/lib/X11/fonts/TTF/" > FontPath "/usr/X11R6/lib/X11/fonts/Type1/" > ## FontPath "/usr/X11R6/lib/X11/fonts/CID/" > EndSection > > Section "Module" > ## Load "dbe" > ## Load "extmod" > Load "glx" > ## Load "record" > ## Load "xtrap" > ## Load "dri" > Load "freetype" > Load "type1" > EndSection > > Section "InputDevice" > Identifier "Keyboard0" > Driver "kbd" > ## Option "XkbOptions" "ctrl:swapcaps" > EndSection > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "wsmouse" > Option "Device" "/dev/wsmouse" > ## Option "ZAxisMapping" "4 5 6 7" > EndSection > > Section "Monitor" > Identifier "Monitor0" > VendorName "Monitor Vendor" > ModelName "Monitor Model" > EndSection > > Section "Device" > ### Available Driver options are:- > ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", > ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" > ### [arg]: arg optional > #Option "NoAccel" # [<bool>] > #Option "SWcursor" # [<bool>] > #Option "Dac6Bit" # [<bool>] > #Option "Dac8Bit" # [<bool>] > #Option "BusType" # [<str>] > #Option "CPPIOMode" # [<bool>] > #Option "CPusecTimeout" # <i> > #Option "AGPMode" # <i> > #Option "AGPFastWrite" # [<bool>] > #Option "AGPSize" # <i> > #Option "GARTSize" # <i> > #Option "RingSize" # <i> > #Option "BufferSize" # <i> > #Option "EnableDepthMoves" # [<bool>] > #Option "EnablePageFlip" # [<bool>] > #Option "NoBackBuffer" # [<bool>] > #Option "PanelOff" # [<bool>] > #Option "DDCMode" # [<bool>] > #Option "MonitorLayout" # [<str>] > #Option "IgnoreEDID" # [<bool>] > #Option "UseFBDev" # [<bool>] > #Option "VideoKey" # <i> > #Option "MergedFB" # [<bool>] > #Option "CRT2HSync" # [<str>] > #Option "CRT2VRefresh" # [<str>] > #Option "CRT2Position" # [<str>] > #Option "MetaModes" # [<str>] > #Option "MergedDPI" # [<str>] > #Option "NoMergedXinerama" # [<bool>] > #Option "MergedXineramaCRT2IsScreen0" # [<bool>] > #Option "DisplayPriority" # [<str>] > #Option "PanelSize" # [<str>] > #Option "ForceMinDotClock" # <freq> > #Option "RenderAccel" # [<bool>] > #Option "SubPixelOrder" # [<str>] > #Option "ShowCache" # [<bool>] > #Option "DynamicClocks" # [<bool>] > Identifier "Card0" > # Driver "ati" > Driver "vesa" > VendorName "ATI Technologies Inc" > ## Jonathan edits > ## BoardName "M10 NT [FireGL Mobility T2]" > ## BusID "PCI:1:0:0" > EndSection > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > DefaultDepth 24 > SubSection "Display" > Viewport 0 0 > Depth 1 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 4 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 8 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 15 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 16 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 24 > EndSubSection > EndSection > > --- end /etc/X11/xorg.conf --- > > -- > -- Jonathan Thornburg <[EMAIL PROTECTED]> > Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut) > and School of Mathematics, U of Southampton, England > "Washing one's hands of the conflict between the powerful and the > powerless means to side with the powerful, not to be neutral." > -- quote by Freire / poster by Oxfam -- / Raimo Niskanen, Erlang/OTP, Ericsson AB