Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > X.Org & Mesa

X.Org & Mesa Discussion of X.Org and Mesa / Gallium3D. This includes the discussion of the X Server, RandR, OpenGL, Kernel-based Mode-Setting, and other X components not covered by other forums.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2007, 08:20 PM
phoronix phoronix is offline
Phoronix News Bot
 
Join Date: Jan 2007
Posts: 3,103
Default A Newbie's Guide To RandR 1.2

Phoronix: A Newbie's Guide To RandR 1.2

Recently there has been much talk about RandR 1.2 support with RadeonHD and Nouveau (among other drivers), and as a result we have been asked many times now "what is RandR, and why do I care?" Well, RandR is the "Resize and Rotate" extension in X.Org and the v1.2 update introduces new functionality such as dynamic hot-plugging support for display devices. To help those who may be new to Linux or just never took advantage of this X.Org technology, we have written a brief guide with some of the RandR basics.

http://www.phoronix.com/vr.php?view=11485
Reply With Quote
  #2  
Old 11-26-2007, 09:47 PM
Tsiolkovsky Tsiolkovsky is offline
Junior Member
 
Join Date: Jun 2006
Posts: 17
Lightbulb

You should also add to the article that Mandriva Linux 2008 was released with RandR applet for KDE. More info here.
Reply With Quote
  #3  
Old 11-27-2007, 05:04 AM
NilsHG NilsHG is offline
Junior Member
 
Join Date: Nov 2007
Posts: 2
Default Cli > Gui

Thank you phoronix!
Still being fairly new to Linux (ubuntu in particular, I started with 7.04) I once again realised the CLI is of far more use than any GUI workaround. grandr kept crashing on my system but everything works fine with xrandr. This report is just what I needed!

Keep up the good work!
Reply With Quote
  #4  
Old 11-27-2007, 08:57 AM
shamooki shamooki is offline
Junior Member
 
Join Date: Nov 2007
Posts: 19
Default Any use with fglrx?

Thanks for the article! I've been searching for a primer on xrandr for quite some time now.

However, I wonder if I can make any use of xrandr's display switching features when using the ATI fglrx-Driver.

shamooki
Reply With Quote
  #5  
Old 11-27-2007, 09:21 AM
Michael Michael is online now
Phoronix
 
Join Date: Jun 2006
Location: United States
Posts: 4,562
Default

Quote:
Originally Posted by shamooki View Post
However, I wonder if I can make any use of xrandr's display switching features when using the ATI fglrx-Driver.
Hi,

Not right now you can't as the fglrx driver currently isn't compliant with RandR 1.2. However, that could change in the not so distant future. Right now you need to use aticonfig (see aticonfig --help).
Reply With Quote
  #6  
Old 11-27-2007, 12:49 PM
Danniello Danniello is offline
Junior Member
 
Join Date: Mar 2007
Posts: 9
Default

It is possible to create virtual resolution with xrandr?
For example: Screen size is 1600x1200 but on monitor it is displayed 1024x768 and I can move screen with mouse...
Reply With Quote
  #7  
Old 11-27-2007, 05:05 PM
seba seba is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Default

Great article...
oh there is one little typo in the second paragraph it says "RandR stands for Reside and Rotate"
Reply With Quote
  #8  
Old 12-04-2007, 09:57 AM
CrystalCowboy CrystalCowboy is offline
Phoronix Member
 
Join Date: Nov 2007
Posts: 72
Default

Quote:
Originally Posted by Danniello View Post
It is possible to create virtual resolution with xrandr?
For example: Screen size is 1600x1200 but on monitor it is displayed 1024x768 and I can move screen with mouse...
Yes. with an xorg.conf file, a line goes in the "Display" subsection of the "Screen" section. I'm not sure if this is possible with the CLI, or what the syntax would be.

Here's a sample xorg.conf file for the radeon driver under Fedora 8.
Quote:

Section "ServerLayout"
Identifier "RandR Multihead layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us+inet"
EndSection

Section "Monitor"
Identifier "DVI-0"
ModelName "Acer AL2216W"
Option "PreferredMode" "1680x1050"
Option "DPMS" "on"
EndSection

Section "Monitor"
Identifier "DVI-1"
ModelName "Acer AL2216W"
Option "PreferredMode" "1680x1050"
Option "RightOf" "DVI-0"
Option "DPMS" "on"
EndSection

Section "Device"

# BusID "PCI:1:0:0"
Identifier "Videocard0"
Driver "radeon"
BoardName "Radeon X1050"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "DVI-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Virtual 3360 1050
Depth 24
EndSubSection
EndSection

Right now the naming of display outputs and the recognition of particular RandR lines in xorg.conf varies slightly between the various drivers. I hope there is some convergence on this in the future.
Reply With Quote
  #9  
Old 12-08-2007, 11:49 AM
Danniello Danniello is offline
Junior Member
 
Join Date: Mar 2007
Posts: 9
Default

Quote:
Originally Posted by CrystalCowboy View Post
SubSection "Display"
Virtual 3360 1050
It's working with nVidia too!
Thank you! Now screenshot 3200x2400 for example maps.google.com is not a problem
Reply With Quote
  #10  
Old 12-23-2007, 01:35 AM
jidanni jidanni is offline
Junior Member
 
Join Date: Dec 2007
Location: Taiwan
Posts: 1
Default

I feel so stupid. I thought my IBM Thinkpad could use 800x600
(see bugs.debian.org/cgi-bin/bugreport.cgi?bug=456955 )
but I can't manage it anymore. All I get is younger users laughing at me.
$ xrandr --fb 800x600
xrandr: specified screen 800x600 not large enough for output LVDS (1024x768+0+0)
does that mean that no matter even if one day I am told what to put in
xorg.conf, I will never be able to get less that 1024x768?
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -5. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.