LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-29-2007, 08:43 PM   #1
hanzj
Member
 
Registered: Mar 2005
Distribution: Ubuntu 7.10 Gutsy Gibbon (Gnome)
Posts: 35

Rep: Reputation: 15
Question "xrandr: screen cannot be larger than" ...


Hello,
I'm trying to configure my dual-monitor setup.

Some background information:

I have just fresh/clean-installed Ubuntu 7.10 Gutsy Gibbon. I was previously using Ubuntu 7.04 Feisty Fawn, where I was able to get a dual monitor (side-by-side) setup working by tweaking the xorg.conf.

Ubuntu 7.10 release notes say:
Quote:
Dual-head (multi-screen) setups

* The ati driver has dropped MergedFB / Xinerama support in favour
of xrandr 1.2 support, and old multi-head xorg.conf setups will
break. To set up dual-head see the guides at
http://www.intellinuxgraphics.org/dualhead.html or
http://wiki.debian.org/XStrikeForce/HowToRandR12

I read both links and tried the first link's instructions on setting
up with xrandr.


Print-out of " xrandr -q":
Quote:
~$ xrandr -q
Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 1600 x 1200
S-video disconnected (normal left inverted right)
DVI-1 connected 1600x1200+0+0 (normal left inverted right) 396mm x 297mm
1600x1200 85.0*+ 75.0
1280x1024 84.8 75.0
1152x864 75.0 74.8
1024x768 84.9 75.1 70.1 60.0
832x624 74.6
800x600 84.9 72.2 75.0 60.3 56.2
640x480 84.6 75.0 72.8 66.7 60.0
720x400 87.8 70.1
DVI-0 connected 1600x1200+0+0 (normal left inverted right) 360mm x 270mm
1280x1024 85.0 + 84.8 75.0
1600x1200 75.0*
1280x960 84.9
1024x768 84.9 75.1
800x600 84.9 75.0
640x480 84.6 75.0 60.0
720x400 70.1
When I try to setup one monitor to the side of the other:
Quote:
$ xrandr --output DVI-0 --left-of DVI-1
xrandr: screen cannot be larger than 1600x1200 (desired size 2880x1200)
How come xrandr says the above, and how can xrandr fix it? I prefer it if I don't have to mess around with xorg.conf.


To see my Xorg.conf, please visit: http://pastebin.com/f2c1dc4c5.
To see my Xorg.0.log, please see: http://pastebin.com/f1412333

I prefer if I don't have to tinker with xorg.conf.

Thank you very much.

Last edited by hanzj; 10-29-2007 at 08:50 PM.
 
Old 11-17-2007, 11:16 PM   #2
nobbean
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Hi, I am having similar issues with xrandr. I am running Gutsy Gibbon with and ATI Radeon 9500 Pro using the open ati driver. So far I have only been able to get the other monitor to clone my main one. I am using two Dell 19" CRT's, one of which is hooked up to the DVI port with a VGA converter. I made a custom modeline for 960x1200 @ 75 so that both screens would be able to run in a big desktop config.

xrandr reports:
Code:
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1920 x 1200
VGA-0 connected 1280x1024+0+0 (normal left inverted right) 340mm x 255mm
   960x1200_75.00   75.0 +
   1920x1200      72.8     60.0
   1600x1200      75.0     75.0     74.8     70.0     65.0     60.0     59.9
   1680x1050      60.0
   1600x1024      60.0
   1400x1050      85.3     74.8     70.0     60.0
   1280x1024      84.8     85.0     75.0*    59.9     60.0
   1440x900       60.2
   1280x960       85.0     60.0
   1280x800       60.0
   1152x864       85.1     75.0
   1280x768       60.0
   1152x768       54.8
   1024x768       84.9     85.0     75.1     75.0     70.1     60.0
   832x624        74.6
   800x600        84.9     85.1     72.2     75.0     60.3     56.2
   640x480        85.0     84.6     75.0     72.8     75.0     60.0     59.9
   720x400        85.0     70.1
   640x400        85.1
   640x350        85.1
DVI-0 disconnected 1280x1024+0+0 (normal left inverted right) 340mm x 255mm
S-video disconnected (normal left inverted right)
My xorg.conf:
Code:
# 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 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"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection

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

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"stylus"
	#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"eraser"
	#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"cursor"
	#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"ATI Technologies Inc Radeon R300 NE [Radeon 9500 Pro]"
	Driver		"ati"
	Busid		"PCI:1:0:0"
	Option		"XAANoOffScreenPixmaps"
	Option	"Monitor-VGA-0"	"DELL D1226H_VGA"
	Option	"Monitor-DVI-0"	"DELL D1226H_DVI"
EndSection

Section "Monitor"
	Identifier	"DELL D1226H_VGA"
	Option		"DPMS"
	Modeline "960x1200_75.00"  123.30  960 1032 1136 1312  1200 1201 1204 1253  -HSync +Vsync
	Option	"PreferredMode"	"960x1200_75.00"

EndSection

Section "Monitor"
        Identifier      "DELL D1226H_DVI"
        Option          "DPMS"
        Modeline "960x1200_75.00"  123.30  960 1032 1136 1312  1200 1201 1204 1253  -HSync +Vsync
        Option  "PreferredMode" "960x1200_75.00"
	Option	"LeftOf"	"DELL D1226_VGA"

EndSection


Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Technologies Inc Radeon R300 NE [Radeon 9500 Pro]"
	Monitor		"DELL D1226H_VGA"
	Defaultdepth	24
	SubSection "Display"
		Depth		24
		Virtual		1920 1200
	EndSubSection
EndSection

Section "ServerLayout"
	Option		"AIGLX"		"true"
	Identifier	"Default Layout"
	screen 		"Default Screen"
	Inputdevice	"Generic Keyboard"
#	InputDevice	"Configured Mouse"
	
	# Uncomment if you have a wacom tablet
	Inputdevice	"stylus"	"SendCoreEvents"
	Inputdevice	"cursor"	"SendCoreEvents"
	Inputdevice	"eraser"	"SendCoreEvents"
EndSection
Section "Module"
        Load    "i2c"
        Load    "bitmap"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "type1"
#       Load    "vbe"
        Load    "dbe"
EndSection
Section "Extensions"
	Option		"Composite"			"Enable"
EndSection
Section	"DRI"
	Group 0
	Mode	0666
EndSection
Everything seems to be in order, but I just don't know enough about randr yet. Any help is appreciated.

Thanks!
 
Old 11-18-2007, 01:20 PM   #3
hanzj
Member
 
Registered: Mar 2005
Distribution: Ubuntu 7.10 Gutsy Gibbon (Gnome)
Posts: 35

Original Poster
Rep: Reputation: 15
nobbean,
One link was the answer to the problem: http://lilserenity.wordpress.com/200...ement-at-last/.

You have to edit xorg.conf in this case in one small way. If you read this post’s ‘Extended Desktop over Two Displays’ section you will see instructions for adding a ‘Virtual’ line to xorg.conf — that’s all you have to do.

From ‘Extended Desktop over Two Displays’ section:
Quote:
(Say my laptop display is 1024×768 and my external display to the right is 1600×1200.)

This requires in my case one tweak to the xorg.conf file on a Radeon 7500 using the ‘radeon’ driver. In the Screen section by default you should see something like:

Section "Screen"
Identifier “Default Screen”
Device “ATI Technologies Inc Radeon…”
Monitor “Generic Monitor”
DefaultDepth 24
SubSection “Display”
Modes “1024×768″
Virtual 2624 1200
EndSubSection
EndSection

The addition is the Virtual line where the size is the maximum width of the displays added together by the height of the biggest resolution height. So in this case the width is 1024+1600 = 2624. Between my laptop and external screen, the latter has the highest vertical resolution so that’s 1200 (instead of 768.)As another example I have a 1400×1050 laptop screen and a 1440×900 external screen so:

* Width: 1400 + 1440 = 2840
* Height: (1050 is larger than 900 so…) = 1050
* So the line to insert is: Virtual 2840×1050

After sorting out the xorg.conf file from the command line after restarting the X Server (Ctrl+Alt+Backspace, Log Out or Reboot) enter:

xrandr --output VGA-0 --right-of LVDS
xrandr –output VGA-0 –mode 1600×1200

That’s it. Not quite as straight forward but still bloody simple. All we need now is a robust GUI and we’re laughing!
 
Old 11-18-2007, 11:10 PM   #4
nobbean
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
I had actually come to that same conclusion, but had not gotten around to posting just yet. Thank you for the help!
 
Old 10-12-2008, 02:04 PM   #5
pnemeth
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Thanks, after 2 days of digging this solved my problem!

With this info at hand it is easy, I just let sax2 set up the dual display with xinerama. Afterwards modify the xorg.conf and add the "Virtual 2560 1024" line, and it all works. Although when you touch screen resolution the system switch to clone mode, and you must restart x. It is annoying, but at least works.

cheers,
Peter
 
Old 05-05-2009, 12:23 AM   #6
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Rep: Reputation: 15
hello guys.. this solution was working for me using Ubuntu Intrepid, but now with Jaunty this no longer works..
do you know what else needs to be changed?
thanks..

EDIT: apparently it's this bug https://bugs.launchpad.net/ubuntu/+s...el/+bug/370777

Last edited by michal017; 05-05-2009 at 12:35 AM.
 
Old 05-28-2009, 09:00 PM   #7
pnemeth
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
I am back, Hello everybody!

Last year i thought i solved this problem forever, apparently not.
I have to configure dual head display on a new machine with nvidia G92 card and 2 Dell SE198WFP monitors. I am tweaking xorg on Suse 11.0 for a day, but just doesn't want to work. Here is my current xorg.conf:

Code:
# /.../

Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection

Section "ServerFlags"
  Option       "AllowMouseOpenFail" "on"
  Option       "ZapWarning" "on"
EndSection

Section "Module"
  Load         "freetype"
  Load         "type1"
  Load         "dbe"
  Load         "glx"
  Load         "extmod"
EndSection

Section "InputDevice"
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "microsoftpro"
  Option       "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "Dell USB Optical Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
  Option       "CalcAlgorithm" "XServerPool"
  DisplaySize  340 270
  HorizSync    50-70
  Identifier   "Monitor[0]"
  ModelName    "1440X900@60HZ"
  Option       "DPMS"
  Option       "PreferredMode" "1440x900"
  VendorName   "--> VESA"
  VertRefresh  50-60
  UseModes     "Modes[0]"
EndSection

Section "Monitor"
  DisplaySize  340 270
  HorizSync    50-70
  Identifier   "EXT"
  ModelName    "1440X900@60HZ"
  Option       "RightOf" "Monitor[0]"
  Option       "PreferredMode" "1440x900"
  VendorName   "--> VESA"
  VertRefresh  50-60
  UseModes     "Modes[0]"
EndSection


Section "Modes"
  Identifier   "Modes[0]"
EndSection


Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480" 
    Virtual    2880 900
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480" 
    Virtual    2880 900
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480" 
    Virtual    2880 900
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480" 
    Virtual    2880 900
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection


Section "Device"
  BoardName    "Framebuffer Graphics"
  BusID        "1:0:0"
  Driver       "nvidia"
  Identifier   "Device[0]"
  Option       "SaXDualHead"
  Option       "monitor-DVI0" "Monitor[0]"
  Option       "SaXDualMonitorVendor" "DELL"
  Option       "SaXDualOrientation" "RightOf"
  Option       "SaXDualResolution" "1280x1024"
  Option       "SaXDualMode" "Xinerama"
  Option       "SaXDualHSync" "50-70"
  Option       "SaXDualMonitorModel" "1907FPT"
  Option       "monitor-DVI1" "EXT"
  Option       "SaXDualVSync" "50-60"
  Screen       0
  VendorName   "VESA"
EndSection



Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection


Section "DRI"
    Group      "video"
    Mode       0660
EndSection

Section "Extensions"
  Option       "Composite" "on"
EndSection
Although, when i give:

Code:
#xrandr --auto --output DVI1 --right-of DVI0
everything works perfect. I just don't know how could i make this a permanent and automatic setup. If anybody has any advice please share with me! Thank You! Peter
 
Old 05-29-2009, 09:57 PM   #8
pnemeth
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Well, my bad! It needed just a new driver, what could be fixed with online update including the nvidia repository. After that it was straightforward.
 
  


Reply

Tags
xrandr



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
Problem with "xrandr" caspian Linux - General 5 05-13-2009 09:08 AM
Switching "nv" to "nvidia" = screen shifted to the left? mpriddy Linux - General 5 02-28-2007 10:38 PM
"Xcursor and Xrandr for redhat 7.2" sumitnagpal Linux - General 1 07-04-2006 09:35 AM
"Xcursor and Xrandr for redhat 7.2" sumitnagpal Red Hat 0 07-04-2006 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration