Re: How on earth do you set your screen res after a crash??

2009-10-20 Thread Glynn Clements
Luke Benstead wrote: I guess this looks like a bug with the OpenGL libraries rather than an XOrg one after all, as I would assume the OpenGL libraries would restore the video mode if the application terminated unexpectedly. I think it is a bug with Xorg. The way I see it, an

How on earth do you set your screen res after a crash??

2009-10-19 Thread Adam Nielsen
Hi all, Something that's bugged me for a long time with XOrg is that there seems to be no way to recover when an application crashes after changing the screen resolution. In the past I have usually been able to recover with Alt+Ctrl+KP_Plus but right at this moment those keys do nothing and I am

Re: How on earth do you set your screen res after a crash??

2009-10-19 Thread Adam Nielsen
Please let me know if anyone knows how to change X11 screen resolutions without closing down everything and restarting. Okay, I figured out a way. Since it was an OpenGL program crashing, OpenGL has the answer: // gcc -o vidmode vidmode.cpp -lglut #include GL/glut.h int main(int argc, char

Re: How on earth do you set your screen res after a crash??

2009-10-19 Thread Luke Benstead
I guess this looks like a bug with the OpenGL libraries rather than an XOrg one after all, as I would assume the OpenGL libraries would restore the video mode if the application terminated unexpectedly. I think it is a bug with Xorg. The way I see it, an application shouldn't be able to leave

Re: How on earth do you set your screen res after a crash??

2009-10-19 Thread Sven Arvidsson
On Mon, 2009-10-19 at 22:10 +1000, Adam Nielsen wrote: Something that's bugged me for a long time with XOrg is that there seems to be no way to recover when an application crashes after changing the screen resolution. In the past I have usually been able to recover with Alt+Ctrl+KP_Plus but

Re: How on earth do you set your screen res after a crash??

2009-10-19 Thread Glynn Clements
Adam Nielsen wrote: Please let me know if anyone knows how to change X11 screen resolutions without closing down everything and restarting. The following uses XFree86-VidModeExtension: /* make xvidmode CFLAGS='-Wall' LDFLAGS='-L/usr/X11R6/lib' LDLIBS='-lX11 -lXxf86vm -lXext' */ #include

Re: How on earth do you set your screen res after a crash??

2009-10-19 Thread Adam Nielsen
Please let me know if anyone knows how to change X11 screen resolutions without closing down everything and restarting. The following uses XFree86-VidModeExtension: Well that's very interesting - not only did it work, but after running it I was able to use Alt+Ctrl+KP_Plus to switch back to