You are not logged in.

#1 2013-01-25 16:52:53

shx
Member
Registered: 2009-08-09
Posts: 5
Website

Xrandr, nvidia and resolution change problem

Hi there,

I have a problem with changing resolution with xrandr. It's been working perfectly with my old PC so I'm sure that my monitor is capable of displaying 1280x1024 res. Here's what I'm doing to achieve that:

cvt 1280 1024
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

xrandr --addmode VGA-0 1280x1024_60.00
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  29
  Current serial number in output stream:  30

Output of xrandr -q :

xrandr -q
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   800x600        72.2     60.3     56.2  
   640x480        59.9  
   512x384       120.0  
   400x300       144.4  
   320x240       120.1  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
  1280x1024_60.00 (0x2a7)  109.0MHz
        h: width  1280 start 1368 end 1496 total 1712 skew    0 clock   63.7KHz
        v: height 1024 start 1027 end 1034 total 1063           clock   59.9Hz

GeForce GTX 550 Ti is my gfx card, I'm using proprietary drivers ver. 313.18

Thanks in advance!


http://gamegraveyard.net - download your favourite old games.

Offline

#2 2013-01-25 17:10:01

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Xrandr, nvidia and resolution change problem

Seems nvidia still hasn't implemented adding new modes with the xrandr commandline utility. You'll have to do it through xorg.conf:

Section "Monitor"
    Identifier  "VGA-0"
    Modeline    "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    Option      "PreferredMode" "1280x1024_60.00"
EndSection

That's the usual xrandr way. If the nvidia driver doesn't support even that, you'll need to use MetaModes. I don't have much experience with that, but try this:

nvidia-settings --assign CurrentMetaMode="VGA-0: 1280x1024_60.00"

Offline

#3 2013-01-25 17:40:06

shx
Member
Registered: 2009-08-09
Posts: 5
Website

Re: Xrandr, nvidia and resolution change problem

Unfortunately, it still doesn't work. Can u please help me with setting my xorg.conf properly? I'm not really good at it, I've been doing some reading but whatever I'll do it still don't help.

Here's my xorg.conf file (after some modifications):

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 313.18  (buildmeister@swio-display-x86-rhel47-11)  Wed Jan  9 16:22:33 PST 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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     "VGA-0"
    Modeline       "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    Option         "PreferredMode" "1280x1024_60.00"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "VGA-0"
    DefaultDepth    24
    Option         "metamodes" "1280x1024 +0+0, 1280x1024_60 +0+0"
    SubSection     "Display"
        Depth       24
	Modes      "1280x1024_60.00"  "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

http://gamegraveyard.net - download your favourite old games.

Offline

#4 2013-01-25 18:16:15

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Xrandr, nvidia and resolution change problem

What I gave you there is the *entire* xorg.conf, no other stuff in there. And every time you do something with xorg.conf, always check /var/log/Xorg.0.log. Did you try the nvidia-settings command?

But basically, this stuff shouldn't be needed. If the monitor really supports that resolution, it should say so in it's EDID, and the driver would pick it up from there. Again, /var/log/Xorg.0.log is your friend. Is it an LCD or CRT monitor?

Offline

#5 2013-01-25 18:46:02

shx
Member
Registered: 2009-08-09
Posts: 5
Website

Re: Xrandr, nvidia and resolution change problem

I tried to replace my xorg.conf with stuff that you wrote but it didn't help, and nvidia-settings don't allow me to set the resolution higher than 1024x768 (and when I try nvidia-settings --assign CurrentMetaMode="VGA-0: 1280x1024_60.00" - that does nothing and gives no output). But this time I've checked Xorg.0.log (thanks for the hint! - don't laugh please, as I wrote before, I'm not really good at this stuff.  wink ) and it says that:

[  8247.412] (WW) NVIDIA(GPU-0): Unable to read EDID for display device CRT-1
[  8247.412] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[  8247.412] (**) NVIDIA(0):     device CRT-1 (Using EDID frequencies has been enabled on
[  8247.412] (**) NVIDIA(0):     all display devices.)

The monitor is LCD (Dell 1707FP). Once again thanks for trying to help me.


http://gamegraveyard.net - download your favourite old games.

Offline

#6 2013-01-25 18:55:46

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Xrandr, nvidia and resolution change problem

Aha, we don't get an EDID. Can you try a different cable? Preferably a DVI one? I'm quite sure the display has a working EDID, it's just not coming through. Flaky VGA cables can be a cause of that.

Offline

#7 2013-01-25 19:21:17

shx
Member
Registered: 2009-08-09
Posts: 5
Website

Re: Xrandr, nvidia and resolution change problem

Man... I was trying to fix that for the last month, doing absolutely everything - changing drivers to noveau, making milions of changes to my xorg.conf file etc. I can't believe that the solution was so simple... wink

I found some old VGA cable in my closet, replaced the one that I was using with it and now everything works like a charm and finally I can enjoy 1280x1024 res! Thanks a million, from now on you are my personal hero! wink


http://gamegraveyard.net - download your favourite old games.

Offline

#8 2013-06-14 13:42:37

darkbeanies
Member
Registered: 2009-01-14
Posts: 142

Re: Xrandr, nvidia and resolution change problem

Gusar wrote:

Can you try a different cable?

I can't f***ing c***ing b******ing t***ing believe that that was the problem, for the last 6 months I've been stuck on that crappy resolution blaming everyone from nvidia to archlinux to grub2 and everything else and it was the f***ing cable.  God forgive me but I even pacman -Syu'd and endured the /*bin->/usr/bin madness.

But, the whole time, windows was able to correctly determine the correct resolution.  How strange.

Offline

Board footer

Powered by FluxBB