There is a bug in XFree86 4.2.0 that seems to be DRI-related: when running X, switching into a virtual console (using Ctrl-Alt-F2, for example) works fine, but if one switches back to X (using Ctrl-Alt-F7, for example) the screen gets strange artifacts and then the keyboard and mouse lock up (no response to either). The machine is still running and one can telnet into it; but the display cannot be restored and the only recourse is to reboot the machine. The workaround until recently was to disable the DRI extension in XF86Config. Apparently, a patch to address this issue was recently checked in the XFree86 tree, as evidenced by this post to the XFree Xpert mailing list: http://www.xfree86.org/pipermail/xpert/2002-July/019084.html Provided that the patch works, it may be worth including with the XFree Gentoo package.
Any chance we can get a URL to the specific patch, or maybe the patch itself?
Created attachment 2229 [details, diff] Illegal instruction failures fixes for 2.4.18
Created attachment 2301 [details] ATI Radeon Patch Here's the patch I created by running `cvs diff' against the XFree86 source tree. This patch is for CVS revision xf-4_2_0 (is this what Gentoo uses?). I'm having problems building in the GL/mesa//src/drv/radeon directory (which this patch doesn't affect), so I'll have to look at it some more.
I have been following that thread, but seems the patch is not really completed as of yet. I will watch Mandrake/Debian/Redhat for addition of something similar.
The same bug was also discussed in redhats bugzilla: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62171
Ok, this should be fixed in xfree-4.2.1.
I have just compiled the 4.2.1-ebuild and tested. It is fixed. As soon as the 4.2.1-ebuild is unmasked, this one can be closed.