issue with screen modes with dual screen

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
vitaminx
Citizen
Posts: 95
Joined: Fri Oct 19, 2012 7:16 am
Location: international
Contact:

issue with screen modes with dual screen

Post by vitaminx »

Hi, I'm running love 0.8.0-3 on Debian Linux unstable and I've got some unexpected behaviour for getModes()
I have 2 screens attached to the laptop, this is my xrandr output (which is correct):

Code: Select all

$ xrandr 
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
LVDS1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080      60.0 +   59.9* 
   1680x1050      60.0     59.9  
   1600x1024      60.2  
   1400x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1360x768       59.8     60.0  
   1152x864       60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080      60.0*+
   1600x1200      60.0  
   1680x1050      60.0  
   1680x945       60.0  
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       74.9     59.8  
   1152x864       75.0  
   1280x768       74.9     59.9  
   1024x768       75.1     70.1     60.0  
   1024x576       60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   848x480        60.0  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1
However, getModes() returns an additional screen mode:

Code: Select all

640	480
800	600
1024	768
1152	864
1360	768
1280	960
1440	900
1280	1024
1400	1050
1600	1024
1680	1050
1920	1080
3840	1080
The last mode seems to be both monitors combined.

I would like to make my game automatically set the screen to the highest mode possible, but this 3840x1080 mode would make it quite difficult.

Why is this there, you guys have any ideas on that?

Thanks,
vitaminx
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: issue with screen modes with dual screen

Post by josefnpat »

Can you show us your xorg.conf?

I have a feeling you're using xinerama or something like that.

I find the best thing to do with multiple monitors is to just run two independent X11 sessions, even if I can't drag windows between them.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: issue with screen modes with dual screen

Post by Inny »

Let the user decide what resolution to put it at. Pick the smallest one that your game still aesthetically fits in as the default and give them an options menu or some hotkey.

Also, as an aside, I don't love fullscreen. I prefer windowed mode, and the Borderless Fullscreen Windowed (which love doesn't support yet).
User avatar
vitaminx
Citizen
Posts: 95
Joined: Fri Oct 19, 2012 7:16 am
Location: international
Contact:

Re: issue with screen modes with dual screen

Post by vitaminx »

I don't use any xorg.conf, but here's the log output of Xorg: http://pastebin.com/jYdt5FGL

I'm using XFCE by the way.

I don't think that I will want to start two separate Xorg sessions as most things work just fine.
But it's true, some other games, especially with wine, have also problems with dual screen, I have to switch off one screen to make them work right.

Thanks for any help here.

Greetings,
vitaminx
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 8 guests