Only two resolution choices?

Technical support for all issues relating to Defcon Linux

Moderator: Defcon moderators

thepanu
level0
Posts: 1
Joined: Mon Aug 25, 2008 7:59 pm

Only two resolution choices?

Postby thepanu » Mon Aug 25, 2008 8:48 pm

I am having a problem with Defcon and resolution choices. In full screen my only option is 3040x1050 and in windowed mode that is accompanied with 1024x768 choice. I think that this has something to do with me having dual screen system (1680x1500 + 1360x768). Same thing happens atleast with EVE Online linux client and Widelands. Anyone have any ideas?
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Mon Aug 25, 2008 10:18 pm

Problem seems to be with SDL, since Defcon is getting resolution choice from SDL.

SDL thinks 3040x1050 is the only resolution with hardware acceleration?


hmmm, after a search for "dual linux resolution sdl"

I have fallen on NWN forum where someone as the same problem: dual screen -> resolution



Cause NWN is over 5 years old now, cause NWN presumes you're going to be running fullscreen, and cause NWN uses libSDL, libSDL nicely asks your X server "what resolutions do you support?" and then only makes those resolutions available.

What you want are called "MetaModes", and you want to look at the 'xrandr' command.

I have dual 1280x1024 screens at home.

I simply run 'xrandr --size 1' in my NWN startup script, and have the below in my /etc/X11/xorg.conf in the "Device" section.

Its <LCD/DVI> on the left. <Analog LCD> on the right. This gives me a "2560x1024" mode across both screens, and a 1280x1024, 800x600, and 640x480 mode on the LCD/DVI screen.


The important line is the MetaModes line on /etx/X11/xorg.conf. It should have something like "1280x1024,1280x1024" Change it to "1280x1024,1280x1024 ; 1280x1024," This will make a second mode available that is 1280x1024 on the FIRST monitor. When you start NWN you should be able to select that resolution from the options menu. (use ,1280x1024 instead if you want it on the SECOND display). This should work without having to use the windowed mode patches.

I have used this on several different machines. I have one at work with two 1920x1200 displays. I only play it on the single display due to the fact that all action is in the divide at the center. I wish I could get a system set up with three to see more of the action.



Please post your solution in details if it works for you :)
The Ultimate Uplink Guide (for any question on Uplink)
Latest Uplink Patch

Return to “Linux Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests