LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: daxxar on April 12, 2007, 09:18:36

Title: Issues with display modes under Linux
Post by: daxxar on April 12, 2007, 09:18:36
Hey!

I'm trying to get a list of supported display modes on my Ubuntu Linux laptop, but it only gives me one mode (the current).
See this code for steps to reproduce and behaviour: http://p.caboo.se/53249

Thanks in advance on any tips or help. :-)

Kindest regards, daxxar.
Title: Re: Issues with display modes under Linux
Post by: Fool Running on April 15, 2007, 21:32:08
I'm not sure (I'm a little bit of a Linux noob ;)), but check the xorg.conf file. I think it contains the list of supported modes, but I'm not sure where LWJGL gets them. Make sure that some are listed in there.

Also try opening the X configurer (I forget what its called right now and I'm in Windows currently :-[) and see if other modes are listed.
Title: Re: Issues with display modes under Linux
Post by: daxxar on April 16, 2007, 08:53:53
Quote from: Fool Running on April 15, 2007, 21:32:08
I'm not sure (I'm a little bit of a Linux noob ;)), but check the xorg.conf file. I think it contains the list of supported modes, but I'm not sure where LWJGL gets them. Make sure that some are listed in there.

You were right; I only had 1024x768 in my xorg.conf. But adding more modes and restarting X didn't make the code yield any other display modes. And in addition; this is for use in windowed mode - are these display modes only the ones supported for 'fullscreen'? :-)

In any case; I still need the list of display modes, wether it's fullscreen only or windowed & fullscreen.

Kindest regards, daxxar.
Title: Re: Issues with display modes under Linux
Post by: Matzon on April 16, 2007, 09:16:37
Displaymodes are only for fullscreen, since windowed mode can be whatever you feel like.
Title: Re: Issues with display modes under Linux
Post by: daxxar on April 16, 2007, 09:20:08
Quote from: Matzon on April 16, 2007, 09:16:37
Displaymodes are only for fullscreen, since windowed mode can be whatever you feel like.

Okay, but do you have any idea why it's not listing anything else when it blatantly should be supporting other fullscreen modes? :-)
Title: Re: Issues with display modes under Linux
Post by: Matzon on April 16, 2007, 10:38:43
not really - I'm a linux desktop noob :-\/me pokes elias_naur