Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  alt+tab in fullscreen mode  (Read 3300 times)
0 Members and 1 Guest are viewing this topic.
Offline zlandorf

Junior Member


Medals: 1
Projects: 1



« Posted 2011-04-02 16:14:04 »

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 :/
Offline h3ckboy
« Reply #1 - Posted 2011-04-02 23:25:02 »

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

Junior Member


Medals: 1
Projects: 1



« Reply #2 - Posted 2011-04-06 11:51:59 »

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)?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej

« In padded room »



TUER


« Reply #3 - Posted 2011-04-14 12:29:27 »

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).
Which driver do you use? The Nouveau driver? Can you provide the log file of the crash?

Offline zlandorf

Junior Member


Medals: 1
Projects: 1



« Reply #4 - Posted 2011-04-14 13:07:35 »

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.
Offline gouessej

« In padded room »



TUER


« Reply #5 - Posted 2011-04-14 14:58:40 »

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:
https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/662727

Good luck.

Offline zlandorf

Junior Member


Medals: 1
Projects: 1



« Reply #6 - Posted 2011-04-14 17:30:56 »

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
Offline gouessej

« In padded room »



TUER


« Reply #7 - Posted 2011-04-14 22:58:20 »

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.

Offline zlandorf

Junior Member


Medals: 1
Projects: 1



« Reply #8 - Posted 2011-04-15 12:54:14 »

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]

Is there something more to do than a nvidia-xconfig ?

Thanks a lot for your help
Offline pitbuller
« Reply #9 - Posted 2011-04-15 13:50:58 »

just a though, but maybe listen for alt tab, and leave fullscreen, once again, just a though, might be vflawed at its core
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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej

« In padded room »



TUER


« Reply #10 - Posted 2011-04-15 17:04:59 »

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

Offline zlandorf

Junior Member


Medals: 1
Projects: 1



« Reply #11 - Posted 2011-04-15 18:20:27 »

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.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (15 views)
2014-04-15 18:08:23

BurntPizza (13 views)
2014-04-15 03:46:01

UprightPath (27 views)
2014-04-14 17:39:50

UprightPath (12 views)
2014-04-14 17:35:47

Porlus (29 views)
2014-04-14 15:48:38

tom_mai78101 (51 views)
2014-04-10 04:04:31

BurntPizza (110 views)
2014-04-08 23:06:04

tom_mai78101 (211 views)
2014-04-05 13:34:39

trollwarrior1 (179 views)
2014-04-04 12:06:45

CJLetsGame (185 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!