Bug 12869 - xrandr settings in xorg.conf have no effect
Summary: xrandr settings in xorg.conf have no effect
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-20 06:15 UTC by Bas Zoetekouw
Modified: 2008-12-03 00:31 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (48.83 KB, text/plain)
2007-10-20 06:16 UTC, Bas Zoetekouw
no flags Details
xorg.conf (1.57 KB, text/plain)
2007-10-20 06:16 UTC, Bas Zoetekouw
no flags Details
xorg conf with virtual size 2304x1024 and preferredmodes. (2.92 KB, text/plain)
2008-01-02 15:49 UTC, Gunnar Thielebein
no flags Details

Description Bas Zoetekouw 2007-10-20 06:15:49 UTC
I have a dual monitor setup.  Upon upgrading to radeon driver 6.7.195, the Xinerama stuff was obsolete, and I need to use xrandr instead.

By default, X starts with two cloned displays.  With the command line xrandr utility, I can successfully change that to an extended desktop:

[bas@cordelia]/> xrandr
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x 1024
S-video disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0     59.9  
   1280x960       59.9  
   1152x864       75.0     74.8  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     60.0  
   720x400        70.1  
DVI-0 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0     59.9  
   1280x960       59.9  
   1152x864       75.0     74.8  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     60.0  
   720x400        70.1  

Of course, I'd like to have this setting by default.  I tried the settings as suggested in http://www.intellinuxgraphics.org/dualhead.html.  The log shows that the setting are indeed read by the radeon driver, but the screen is still initialized in the default cloned setting.
Comment 1 Bas Zoetekouw 2007-10-20 06:16:12 UTC
Created attachment 12131 [details]
Xorg log
Comment 2 Bas Zoetekouw 2007-10-20 06:16:33 UTC
Created attachment 12132 [details]
xorg.conf
Comment 3 Alex Deucher 2007-10-21 09:52:38 UTC
I think this is an issue with output enumeration order.  can you try reversing the order of your monitor sections like so:
	Option		"Monitor-DVI-0"		"Samsung1"
	Option		"Monitor-DVI-1"		"Samsung0"
Comment 4 Bas Zoetekouw 2007-10-22 13:05:49 UTC
I just tried to change the order as you suggested, but it made no difference...

Is there anything else I could try?
Comment 5 Gunnar Thielebein 2008-01-02 15:48:35 UTC
I have a 15" / 19" dual-setup and i need a default resolution of 1024x768 for the 15" (which is at VGA-0 and initialized at first) and 1280x1024 for the 19" 

But both monitors are initialized only with 1024x768.

manual change with xrandr --output DVI-0 --mode 1280x1024 (19") is no problem.

is there some bugfix or workaround?
Comment 6 Gunnar Thielebein 2008-01-02 15:49:53 UTC
Created attachment 13468 [details]
xorg conf with virtual size 2304x1024 and preferredmodes.

monitor1 is the 19"
monitor2 is the 15"
Comment 7 Gunnar Thielebein 2008-01-02 15:59:26 UTC
Comment on attachment 13468 [details]
xorg conf with virtual size 2304x1024 and preferredmodes.

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	Fontpath	"/usr/share/fonts/X11/misc"
	Fontpath	"/usr/share/fonts/X11/100dpi/:unscaled"
	Fontpath	"/usr/share/fonts/X11/75dpi/:unscaled"
	Fontpath	"/usr/share/fonts/X11/100dpi"
	Fontpath	"/usr/share/fonts/X11/75dpi"
	# path to defoma fonts
	Fontpath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load		"bitmap"
	Load		"extmod"
	Load		"freetype"
	Load		"int10"
	Load		"vbe"
	Load		"glx"
	Load		"GLcore"
	Load		"v4l"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"de"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"	"/dev/input/mice"
	Option		"Protocol"	"ImPS/2"
	Option		"ZAxisMapping"	"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "Device"
	Identifier	"RADEON9800XT"
	Boardname	"ati"
	Busid		"PCI:1:0:0"
	Driver		"radeon"
	Option		"Monitor-DVI-0" "monitor1"
	Option		"Monitor-VGA-0"	"monitor2"
	Option		"MergedFB"	"off"
EndSection

Section "Monitor"
	Identifier	"monitor1"
	Vendorname	"Plug 'n' Play"
	Modelname	"Plug 'n' Play"
	Option		"PreferredMode" "1280x1024_60.00"
	# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
	Modeline "1280x1024@60"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
	#
	Gamma	1.0
EndSection

Section "Monitor"
	Identifier	"monitor2"
	Option		"LeftOf"	"monitor1"
	Option		"PreferredMode"	"1024x768@60"
  	modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
	Gamma	1.0
#	Option		"Rotate"	"left"
EndSection


Section "Screen"
	Identifier	"Main Screen"
	Device		"RADEON9800XT"
	Monitor		"monitor1"
	Defaultdepth	24
	SubSection "Display"
		Depth	24
		Modes	"1024x768@60" "1280x1024@60"
		Virtual 2304 1024
	EndSubSection
EndSection


Section "ServerLayout"
	Identifier	"Default Layout"
  	screen 0 "Main Screen" 0 0
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
EndSection

Section "ServerFlags"
	Option		"DefaultServerLayout"	"Default Layout"
EndSection

Section "Extensions"
	Option		"Composite"	"Enable"
EndSection

Section "DRI"
	Mode	0666
EndSection
Comment 8 Alex Deucher 2008-01-02 17:19:52 UTC
Make sure your preferred mode actually matches a mode:
Option          "PreferredMode" "1280x1024_60.00"
should probably be:
Option          "PreferredMode" "1280x1024@60.00"
or
Option          "PreferredMode" "1280x1024"
Comment 9 Gunnar Thielebein 2008-01-03 07:42:41 UTC
my preferredmode now are:

Section "Monitor"
        Identifier      "monitor2"
        Option          "LeftOf"        "monitor1"
        Option          "PreferredMode" "1024x768@60"
        modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync
-hsync
        Gamma   1.0
        #Option         "Rotate"        "left"
EndSection

Section "Monitor"
        Identifier      "monitor1"
        Vendorname      "Plug 'n' Play"
        Modelname       "Plug 'n' Play"
        Option          "PreferredMode" "1280x1024@60"
        # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
        Modeline "1280x1024@60"  108.88  1280 1360 1496 1712  1024 1025 1028 106
0  -HSync +Vsync
        Gamma   1.0
EndSection

with no change. Resolution is still 1024x768 for both
Comment 10 David Greaves 2008-01-18 02:41:38 UTC
I was trying this last night to setup Left-of - both my monitors are the same resolution and use EDID so I don't know if this will help but it might.

After some fiddling I used this in my xorg.conf to identify the monitors:

Section "Device"
        Identifier      "Radeon"
        Option          "UseFBDev"              "true"
        Driver          "ati"
        Option          "Monitor-VGA"           "E481"
        Option          "Monitor-DVI-0"         "H481"
EndSection

It wasn't obvious what text to use after 'Monitor-'.

So try Monitor-VGA without the -0

you haven't posted a log - my log file contains:
(II) RADEON(0): Output VGA-0 using monitor section E481
(II) RADEON(0): Output DVI-0 using monitor section H481
which shows the Monitor-outputname is working.

HTH

If it does then I think the bug is with the driver since the man page says:
  Option "Monitor-outputname" "monitorsection"

and yet the driver output says:
(II) RADEON(0): Port0:
 Monitor   -- AUTO
 Connector -- VGA
 DAC Type  -- Primary
 TMDS Type -- None
 DDC Type  -- VGA_DDC
(II) RADEON(0): Port1:
 Monitor   -- AUTO
 Connector -- DVI-I
 DAC Type  -- TVDAC/ExtDAC
 TMDS Type -- Internal
 DDC Type  -- DVI_DDC
(II) RADEON(0): Port2:
 Monitor   -- AUTO
 Connector -- STV
 DAC Type  -- TVDAC/ExtDAC
 TMDS Type -- None
 DDC Type  -- None

I think the driver should output:
 Outputname  -- VGA
and
 Outputname  -- DVI-0

since I've read here: http://www.thinkwiki.org/wiki/Xorg_RandR_1.2#Output_port_names

that (at least) the intel and radeon drivers use different outputname values :)

David
Comment 11 Alex Deucher 2008-01-18 06:55:10 UTC
type xrandr to see the names of the outputs.  On radeon the VGA and DVI ports will be DVI-0 or DVI-1 and VGA-0 and VGA-1 depending on the number and type of ports.
Comment 12 Alex Deucher 2008-12-03 00:31:45 UTC
see this page for more on configuring xrandr:
http://wiki.debian.org/XStrikeForce/HowToRandR12


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.