On Mon, 2004-05-03 at 10:28, Benjamin Herrenschmidt wrote: > On Mon, 2004-05-03 at 18:02, Arne Caspari wrote: > > I patched a vanilla 2.6.5 kernel with the pmdisk patch Guido sent to list. > > > >.../... > > > > suspend from the console works then. resume to the console works but as > > soon as I switch back > > to the graphics console, the system locks up, showing a garbled screen. > > > > Any ideas what I could try to recover the graphic console without crashing? > > I suppose X doesn't expect the card to be back to completely initial state > during a console switch. > > Michel, what does DRI do in this regard ? Does it re-init everything including > microcode, MC_*_LOCATION, AGP state, etc... on every console switch or not ?
Mostly, at least with a recent enough DRM, which should be no problem with a 2.6 kernel. Does the UniNorth agpgart code have suspend hooks? > Do we still have something like DRIReInit option ? xserver-xfree86-dri-trunk does. > Part of the trouble is that we do not have the /dev/apm_bios emulation > notifying > X that the machine is suspending/resuming with swsusp. Apparently, people use chvt in suspend scripts to work around that. -- Earthling Michel Dänzer | Debian (powerpc), X and DRI developer Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer