You are not logged in.

#1 2012-04-12 15:06:12

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

[SOLVED] 1280x720 in games (Nouveau)

Games don't have a "1280x720" option and whenever I try to edit their config file to use 1280x720, the screen looks very narrow, with thick top and bottom black bars.

Someone from the IRC channel suggested I use:

$ xrandr -s 1280x720
<run game>
$ xrandr -s 1920x1080

But when I try to:

$ xrandr -s 1280x720
Size 1280x720 not found in available modes
$ xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 4096 x 4096
VGA-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080      60.0*+
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  


Then he suggested I add a modeline, as per this thread: https://bbs.archlinux.org/viewtopic.php?id=135921

Ok... which one? This one?

ModeLine   "1280x720"   74.20  1280 1390 1430 1650  720 725 730 750 -hsync -vsync

Because I tried a few modeline calculators and the results are completely different:

Modeline "1280x720@60" 73.78 1280 1312 1592 1624 720 735 742 757
(http://xtiming.sourceforge.net/cgi-bin/xtiming.pl)

Modeline "1280x720_60.00" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
(http://www.arachnoid.com/modelines/index.html)


Some more info:

Xorg.0.log
Dell U2311H - native resolution 1920x1080.
Geforce 7025 (onboard) using a VGA cable.

System is up to date.

Last edited by DSpider (2012-04-13 17:59:08)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#2 2012-04-13 17:56:15

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] 1280x720 in games (Nouveau)

I took a shot and used the "official" modeline calculator (http://xtiming.sourceforge.net), restarted X and it works.

Topic solved.


/etc/X11/xorg.conf.d/10-monitor.conf:

Section "Monitor"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName     "DELL U2311H"
    HorizSync      30.0 - 83.0
    VertRefresh    56.0 - 76.0
    Modeline      "1280x720" 97.30 1280 1312 1680 1712 720 734 743 757
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nouveau"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor       "Monitor0"
    DefaultDepth   24
EndSection

$ xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 4096 x 4096
VGA-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080      60.0*+
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1280x720       75.1  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  

Initially I thought of using 60 Hz but since everything else in xrandr is at 75 Hz, I though why the hell not... So I went with 75 Hz.

Performance is not quite there yet with Nouveau. Open Arena 0.8.8 runs like crap on a sausage stick. You can tell as soon as you run it, right from the menu. The fricken menu! Granted it's an onboard GPU, but still... For a half-decent framerate, the closest thing to 16:9 is 720x400 (which is 1.80:1). On the other hand, "Super Tux Kart" and "Extreme Tux Racer" both work fine with 1280x720.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB