LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   X Windows adding/correcting mode support using xrandr (single DVI-TFT panel) (http://www.linuxquestions.org/questions/linux-desktop-74/x-windows-adding-correcting-mode-support-using-xrandr-single-dvi-tft-panel-843741/)

Bill Gates 666 11-11-2010 03:12 PM

X Windows adding/correcting mode support using xrandr (single DVI-TFT panel)
 
Hi

I am trying to get Battlefield 2 and Battlefield 2142 to launch under Kubuntu 10.04 (x64) & Wine 1.3.6. I'm using an Nvidia 8800 GTX 768Mb GPU with Nvidia blob driver 260.19.12.

Anyway launching BF2142 (retail copy, patched to v1.5) gives me the following error (2x) in the console output streams:
Code:

...
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 800x600x32 @85! (XRandR)
...

The game runs fine in a Virtual Desktop 800x600 (I only tried Singleplayer mode but all the rendering appeared glitch free).

I've tried manually adding entries to my xrandr output but they just end up being ignored:
Code:

Screen 0: minimum 320 x 175, current 1600 x 1200, maximum 1600 x 1200
default connected 1600x1200+0+0 0mm x 0mm
  1600x1200      50.0*
  800x600        51.0    91.0    92.0    93.0    94.0    95.0    96.0    97.0    98.0    99.0    100.0 
  1600x1024      52.0 
  1440x900      53.0 
  1400x1050      54.0    55.0    56.0 
  1360x768      57.0    58.0 
  1280x1024      59.0    60.0    61.0 
  1280x960      62.0    63.0 
  1152x864      64.0    65.0    66.0    67.0    68.0    69.0    70.0 
  1024x768      71.0    72.0    73.0    74.0    75.0    76.0 
  960x720        77.0    78.0 
  960x600        79.0 
  960x540        80.0 
  928x696        81.0    82.0 
  896x672        83.0    84.0 
  840x525        85.0    86.0    87.0    88.0    89.0 
  832x624        90.0 
  800x512      101.0 
  720x450      102.0 
  720x400      103.0 
  700x525      104.0    105.0    106.0    107.0 
  680x384      108.0    109.0 
  640x512      110.0    111.0    112.0 
  640x480      113.0    114.0    115.0    116.0    117.0    118.0    119.0    120.0 
  640x400      121.0 
  640x350      122.0 
  576x432      123.0    124.0    125.0    126.0    127.0    128.0    129.0 
  512x384      130.0    131.0    132.0    133.0    134.0 
  416x312      135.0 
  400x300      136.0    137.0    138.0    139.0    140.0 
  360x200      141.0 
  320x240      142.0    143.0    144.0    145.0 
  320x200      146.0 
  320x175      147.0 
  800x600_85.00  83.8

Yes that's my new mode at the bottom!!

My xorg.conf:
Code:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.12  (buildd@fermium)  Sat Oct 16 01:06:10 UTC 2010

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 260.19.12  (buildmeister@builder101)  Fri Oct  8 11:47:04 PDT 2010

Section "ServerLayout"
    Identifier    "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option        "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier    "Mouse0"
    Driver        "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/psaux"
    Option        "Emulate3Buttons" "no"
    Option        "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier    "Keyboard0"
    Driver        "kbd"
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "Idek Iiyama AU5131"
    HorizSync      24.0 - 80.0
    VertRefresh    50.0 - 85.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "GeForce 8800 GTX"
EndSection

Section "Screen"

# Removed Option "metamodes" "1600x1200 +0+0"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option        "TwinView" "0"
    Option        "metamodes" "1600x1200 +0+0; 800x600_85 +0+0"
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection

My TFT panel can support 800x600 @85Hz (native is 1600x1200). I tried setting the screen resolution to 800x600 @85Hz in the Nvidia control panel. However the game still crashes out with the previously mentioned error (xrandr).

I've posted on this forum because the error is more related to mode support in X Windows than an actual bug in Wine...

Any thoughts? I've literally spent hours on this one problem now and it's really starting to... :confused: :banghead: :study: :Pengy:

Bob

Bill Gates 666 11-13-2010 07:16 PM

working xorg.conf
 
For anyone else having problems with Battlefield 2 / 2142 and other Wine programs, etc. and unsupported resolution modes I have had my xorg.conf file fixed for me. Obviously this xorg.conf file should only be used as a guide!!

I am using a single flat panel TFT monitor, connected via DVI, with a native resolution of 1600x1200. My GPU is an Nvidia 8800 GTX 768Mb - Forceware 260.19.12.

Code:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 260.19.12  (buildd@fermium)  Sat Oct 16 01:06:10 UTC 2010

Section "ServerLayout"
    Identifier    "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option        "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier    "Mouse0"
    Driver        "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/psaux"
    Option        "Emulate3Buttons" "no"
    Option        "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier    "Keyboard0"
    Driver        "kbd"
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "Idek Iiyama AU5131"
    HorizSync      24.0 - 80.0
    VertRefresh    50.0 - 85.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "GeForce 8800 GTX"
    Option        "DynamicTwinView" "FALSE"
EndSection

Section "Screen"

# Removed Option "metamodes" "1600x1200 +0+0"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option        "metamodes" "1600x1200 +0+0"
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection



All times are GMT -5. The time now is 09:29 PM.