View Single Post
Old 10-20-10, 07:55 AM   #1
kokoko3k
Registered User
 
Join Date: Jan 2007
Posts: 120
Default [SOLVED] Adding new resolutions via xrandr

I'm trying to add a resolution to the pool using xrandr tool:
Code:
# xrandr --newmode "1152x864_60.00"  81.62  1152 1216 1336 1520  864 865 868 895  -HSync +Vsync
# xrandr --addmode default "1152x864_60.00"
# xrandr --output default --mode "1152x864_60.00"

xrandr: Failed to get size of gamma for output default
xrandr: Failed to get size of gamma for output default
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed
Please note that the same modeline inserted in the xorg.conf file works.

Am i doing something wrong or the nvidia drive just does not support adding modelines on the fly via xrandr?
Is there an alternative way to do so?

my xorg.conf:
Code:
Section "ServerLayout"
	Identifier	"TwoHeadLayout"
	Screen		0  "Screen0" 0 0
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse1"
	InputDevice	"Configured Mouse2"
	InputDevice	"Configured Mouse3"
	Option		"AIGLX" "true"
EndSection

Section "Files"
	FontPath	"/usr/local/share/fonts"
	FontPath	"/usr/share/fonts/100dpi"
	FontPath	"/usr/share/fonts/75dpi"
	FontPath	"/usr/share/fonts/Fonts"
	FontPath	"/usr/share/fonts/Type1"
	FontPath	"/usr/share/fonts/arphicfonts"
	FontPath	"/usr/share/fonts/baekmuk-fonts"
	FontPath	"/usr/share/fonts/corefonts"
	FontPath	"/usr/share/fonts/cyrillic"
	FontPath	"/usr/share/fonts/default"
	FontPath	"/usr/share/fonts/kochi-substitute"
	FontPath	"/usr/share/fonts/misc"
	FontPath	"/usr/share/fonts/ttf-bitstream-vera"
	FontPath	"/usr/share/fonts/xawtv"
	FontPath	"/usr/share/fonts/"
	FontPath	"/usr/share/fonts/"
EndSection

Section "Module"
	Load		"bitmap"
	Load		"ddc"
	Load		"extmod"
	Load		"freetype"
	Load		"glx"
	Load		"int10"
	Load		"vbe"
EndSection

Section "ServerFlags"
	Option		"DefaultServerLayout" "TwoHeadLayout"
	Option		"AutoAddDevices" "false"
	Option		"Xinerama" "0"
	Option		"DontZap" "False"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules" "xorg"
	Option		"XkbModel" "pc105"
	Option		"XkbLayout" "it"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse1"
	Driver		"evdev"
	Option		"CorePointer"
	Option		"Device" "/dev/input/event4"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse2"
	Driver		"evdev"
	Option		"SendCoreEvents" "true"
	Option		"Device" "/dev/input/event5"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse3"
	Driver		"evdev"
	Option		"SendCoreEvents" "true"
	Option		"Device" "/dev/input/event6"
EndSection


Section "Monitor"
	Identifier	"Monitor0"
	VendorName	"Unknown"
	ModelName	"Samsung SyncMaster"
	HorizSync	30.0 - 81.0
	VertRefresh	56.0 - 75.0
	#DisplaySize	377 302
	DisplaySize	754 302
	Modeline "1152x864_60.00"  81.62  1152 1216 1336 1520  864 865 868 895  -HSync +Vsync
EndSection

Section "Device"
	Identifier	"Device0"
	Driver		"nvidia"
	VendorName	"NVIDIA Corporation"
	BoardName	"GeForce 6600"
	Option "AccelMethod" "XAA" # not EXA

    Option         "NoLogo"
    Option         "RenderAccel" "true"
    Option         "AddARGBGLXVisuals" "true"
    Option         "DamageEvents" "True"
    Option         "UseEvents" "False"
    Option         "DPMS" "true"
    Option			"Coolbits" "1"
    Option         "DPI" "86 x 86"

Option "AllowSHMPixmaps" "0"
Option "PixmapCacheSize" "2500000"
Option "AllowGLXWithComposite" "true"
Option "TripleBuffer" "1"
Option "DisableGLXRootClipping"
Option "UseEvents" "on"
Option "OnDemandVBlankInterrupts" "on"
Option "DynamicTwinView" "false"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device		"Device0"
	Monitor		"Monitor0"
	DefaultDepth	24
	Option		"TwinView" "0"
	SubSection	"Display"
		Depth	24
	EndSubSection
	Option "AddARGBGLXVisuals" "True"
EndSection
Thank you in advance.


--EDIT--
For anyone interested, there is a little tool in the nvidia-settings source package, it's called nv-control-dpy and seems to allow to add and remove modelines at runtime.
Going to try it, but still wondering if xrandr --newmode is supported somehow.
Attached Files
File Type: gz nvidia-bug-report.log.gz (54.0 KB, 140 views)

Last edited by kokoko3k; 07-13-11 at 07:14 AM. Reason: solved
kokoko3k is offline   Reply With Quote