Virtual Console and Lock Ups

OK, I’m not entirely sure this is an SDL thing, but I’m fairly
positive…

If I’m in a full-screen app (the only which I have are SDL apps), and
I press ctrl-alt-f1 (whatever) to get to a virtual console, the machine
locks up. The hard-drive light comes on and stays on. I’m not sure if
the whole system is locked or just X, actually, since I’m too lazy to
boot up one of the other machines and find out.

This problem has been around for a while, but I always thought it was
individual application thing. I noticed it a lot with UT (using
SDL+OpenGL, of course). Some other sample apps have done this too.
Just now, Heroes 3 demo locked up after I won a battle, and when I hit
ctrl-alt-f2 to see if I could kill the process, the whole machine locked
up again.

In the lock-up, the screen goes black, and, as I said, my hard-drive
light goes on and stays solid. Nothing I do can change this.

I’m using SDL 1.1.3 (I haven’t upgraded to 1.1.4 yet, but the problem’s
been around, if it is SDL’s fault, it’ll still be in there I’m sure),
XFree86 4.01 (problem was on 4.0 as well, I don’t recall if 3.3.6 had it
or not, its been too long),
nVidia drivers 0.9-4 (w/ Diamond Viper 550, TNT - based card),
kernel 2.2.16,
with a severely hacked copy of Linux-Mandrake 7.1.

If any more info is needed (any kind of debugging stuff, so long as you
tell me how to get it if my system locks up. :wink: lemme know.

Again, I’m not sure if this is SDL’s fault, X’s fault, nVidia’s drivers’
fault, Linux kernel’s fault, or what… but I believe it to be SDL since
I’ve only seen it in SDL full-screen apps.

Sean Middleditch

If I’m in a full-screen app (the only which I have are SDL apps), and
I press ctrl-alt-f1 (whatever) to get to a virtual console, the machine
locks up. The hard-drive light comes on and stays on. I’m not sure if
the whole system is locked or just X, actually, since I’m too lazy to
boot up one of the other machines and find out.

It sounds like a bug in XFree86. Try setting the environment variable:
SDL_VIDEO_X11_DGAMOUSE=0

If that works, try with the latest XFree86 CVS sources (if you dare! :slight_smile:
You might want to submit a bug report to XFree86 when you get that
information all put together. If you’re running the NVidia drivers,
contact NVidia on IRC at irc.openprojects.net for help.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

If I’m in a full-screen app (the only which I have are SDL apps), and
I press ctrl-alt-f1 (whatever) to get to a virtual console, the machine
locks up. The hard-drive light comes on and stays on. I’m not sure if
the whole system is locked or just X, actually, since I’m too lazy to
boot up one of the other machines and find out.

It sounds like a bug in XFree86. Try setting the environment variable:
SDL_VIDEO_X11_DGAMOUSE=0

OK, dumb question, but what does the DGA mouse have to do with it? ~,^

If that works, try with the latest XFree86 CVS sources (if you dare! :slight_smile:
You might want to submit a bug report to XFree86 when you get that
information all put together. If you’re running the NVidia drivers,
contact NVidia on IRC at irc.openprojects.net for help.

Wehn I can, I’ll do just that. Thank you!> See ya!

  -Sam Lantinga, Lead Programmer, Loki Entertainment Software