alt+tab in fullscreen mode

Hi everybody,

I’ve just started playing around with lwjgl and stumbled upon a problem.

When I’m in fullscreen mode, alt-tabs make the computer freeze. Is this a known problem ? Is there a code to fix this, for example check if the user is pressing alt+tab and changing the display mode ?

I’m on ubuntu 10.10 using an NVIDIA GeForce 9600 GS with driver version 260.19.06.

In windowed mode, alt-tabs have problems if the application grabs the mouse.

This is kinda discouraging :confused:

just a though, but maybe listen for alt tab, and leave fullscreen, once again, just a though, might be vflawed at its core

Actually I gave a the example code a try on windows, and the alt-tab worked then (or at least worked better than under ubuntu, since I didn’t have any crash with 10 alt-tabs).

So actually I’m thinking it’s more of a driver problem than anything else because I also have a laggy display (it shows 60+ fps, but doesn’t seem like at all). What’s convincing me is that even teeworlds seems laggy too (which runs perfectly fine under windows on the same pc).

But, problem put aside, how can you catch a keyboard event (alt-tab in this case) and consume it before the OS (if ever you can)?

Which driver do you use? The Nouveau driver? Can you provide the log file of the crash?

I’m using the 260.19.06 driver.

Where can I get the log file for the crash ? The “crash” consisted of the screen freezing, and I had to manually reboot.

Update your driver, use the proprietary nvidia driver 260.19.21:

Good luck.

So I’m quite a noob in ubuntu and stuff, but I managed (think so) to install the version .12 and version .44 from the nvidia website. First problem was that the x server wouldn’t launch after a reboot (even with the nvidia-xconfig). Second problem is that I didn’t notice any difference : still the screen freeze after alt-tab and still the very jerky display. However, weirdly enough I don’t seem to notice any jerkiness out side of opengl applications. I’m maybe thinking of reinstalling the os

The version .12 should be enough to fix your problem. Could you look at the log file of xorg in /var/log please? Maybe you’ll find why the x server couldn’t be launched.

[quote][ 14.624] (II) LoadModule: “nvidia”
[ 14.625] (WW) Warning, couldn’t open module nvidia
[ 14.625] (II) UnloadModule: “nvidia”
[ 14.625] (EE) Failed to load module “nvidia” (module does not exist, 0)
[ 14.625] (EE) No drivers available.
[ 14.625]
Fatal server error:
[ 14.625] no screens found
[ 14.625]
[/quote]
Is there something more to do than a nvidia-xconfig ?

Thanks a lot for your help

Maybe if just listen alt or tab. If other one is pressed just swich full screen off. Player can’t press both simultaneouslu so problem solved.

The error message is telling you the xorg driver is missing, not the kernel driver. Have you installed nvidia-kernel-common?

After running the install script, I did not install nvidia-kernel-common. Was that a mistake I made ?

The install script maybe only installed the kernel driver.