Resetting an out-of-range resolution
If you set a resolution inappropriate for your monitor in the Screen Resolution GUI tool, you can reset it by running rm ~/.config/monitors.xml from a terminal.
Dynamically testing different resolutions
You can either use the Screen Resolution GUI tool to experiment with different resolutions, or the more powerful xrandr command-line tool:
$ xrandr
shows you the names of different outputs available on your system (LVDS, VGA-0, etc.) and resolutions available on each:
Screen 0: minimum 320 x 200, current 1400 x 1050, maximum 1400 x 1400
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1400x1050+0+0 (normal left inverted right x axis y axis) 286mm x 214mm
1400x1050 60.0*+ 50.0
[...]
You can direct xrandr to set a different resolution like this:
$ xrandr --output LVDS --mode 1024x768
$ xrandr --output VGA1 --mode 1024x768
The refresh rate may also be changed, either at the same time or independently:
$ xrandr --output LVDS --mode 1024x768 --rate 75
$ xrandr --output VGA1 --mode 1024x768 --rate 60
Note that changes you make using xrandr only last through the current session. xrandr has a lot more capabilities - see man xrandr for details.
Panning viewport
If you want to have a panning viewport, i.e., a virtual screen that's bigger than your physical screen that moves when you move the mouse to the edge ("zoomed in" view) specify the desired physical resolution with --mode and the virtual screen size with --fb and panning area (typically same as virtual screen size) with --panning.
For example,
xrandr --output VGA1 --rate 60 --mode 800x600 --fb 1280x1024 --panning 1280x1024
How to setup a dual monitor
Introduction
http://www.thegeekstuff.com/2009/08/ubuntu-tips-how-to-setup-dual-monitor/
The article above will give you some important background information. I will summarize the points that I think are important and add a few points. It makes life easier if you pop open a terminal and type to open your gui monitor program:
$ gnome-display-properties
Next uncheck same image in all Monitors. If your watch a lot of movies it is important to set your Monitors to your lower resolution. For example, if they are both 1440 x 900 monitors, make sure it is set to that resolution. If the monitors are different resolutions, you will need it to the resolution of the smaller monitor. So, for example, if one monitor is 1440 x 900 and the other is full HD resolution, you will have to set it at 1440×900. The reason for this is your video will be a black screen when trying to watch a movie so this is very important. Click APPLY. Then you will get a warning and you need to keep your new configuration. You will need to restart your session for this to take effect sometimes. There are 2 simple ways to do this. The first is to log out then log back in, and the second is to hit ctrl+alt+backspace. The second method restarts your x session so make you save your work.
http://intellinuxgraphics.org/dualhead.html
This guide is targeted for people who want to use extended desktop mode on two outputs. Clone mode should work out-of-box with a normal configuration.
With RandR 1.2, you can setup dual head and add/remove monitor dynamically (i.e. on-the-fly, without restarting X).
Output port names
Intel driver - UMS
VGA - Analog VGA output
LVDS - Laptop panel
DP1 - DisplayPort output
TV - Integrated TV output
TMDS-1 - First DVI SDVO output
TMDS-2 - Second DVI SDVO output
The SDVO and DVO TV outputs are not supported by the driver at this time.
Intel driver - KMS
LVDS1 - Laptop panel
VGA1 - Analog VGA output
DVI1 - Digital video output
radeon driver
VGA-0 - Analog VGA output
LVDS - Laptop panel
S-video - Integrated TV output
DVI-0 - DVI output
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2
Three methods to setup
By session with .xprofile.
Dynamically by using xrandr tool
Statically by setting in xorg.conf.
Xrandr Graphical Front End GUI.
xrandr tool (an app component in Xorg) is a command line interface to RandR extension, and can be used to set outputs for a screen dynamically, without any specific setting in xorg.conf. You can refer the xrandr manual for details.
By Session with .xprofile
Use your favorite editor and create ~/.xprofile. Put something similar to what your see below in it. Now every time your start your Xsession that command will be run. You can force it to run by logging out and logging back in, ctrl+alt+backspace, or running ~/.xprofile from your terminal.
$ xrandr --output VGA1 --mode 1024x768 --rate 60
Here is an example of my ~/.xprofile. The # are for comments just like you do with shell scripts. The purpose of my setup is sometime have laptop on the left and other times I have my laptop on the right. This makes very simple and easy to change which side you want each monitor to be on. I just added the information on how to set your primary monitor.
xrandr --output VGA1 --mode 1024x768 --rate 60
#Laptop right extra Monitor Left
#xrandr --output VGA1 --left-of LVDS1
#Laptop left extra Monitor right
xrandr --output LVDS1 --left-of VGA1
#This is to set your primary monitor.
#This sets your laptop monitor as your primary monitor.
xrandr --output LVDS1 --primary
#This sets your VGA monitor as your primary monitor.
#xrandr --output VGA1 --primary
Some people think it is a disadvantage that this only works for one user, other people think this is an advantage. If you want to be able to use this just copy it over to your profile folder.
Important Note Be careful with your X if you copy from a website like what you see below otherwise you will get this nice message. xrandr: cannot find mode 1024×768
http://www.ubuntugeek.com/how-to-adjust-screen-resolution-on-ubuntu.html
This website uses some kind of mini x which does not work.
Correct
$ xrandr --output VGA1 --mode 1024x768 --rate 60
$ xrandr --output VGA1 --mode 1024x768 --rate 60
Incorrect
Take a look at the sizes of the the ×x on the second line.
$ xrandr --output VGA1 --mode 1024×768 --rate 60
$ xrandr --output VGA1 --mode 1024×x768 --rate 60
Dynamically setup with xrandr
Xrandr can be used to change outputs' mode, rotation direction, position, etc. In this guide, we only introduce options related with dual head setting.
You can see the outputs' status with option '-q'. Below is an example:
$ xrandr -q
Screen 0: minimum 320 x 200, current 2048 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+1024+0 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.0 + 75.0
1280x960 75.0 70.0 60.0
1152x864 75.0 70.0 60.0
1024x768 75.1 70.1 66.0 60.0*
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
1024x768 60.0*+
800x600 60.3
640x480 59.9
DVI1 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)
In above example, two outputs (VGA1 and LVDS1) are connected, the resolution of both is
[email protected], output VGA's viewport is at (1024, 0) and output LVDS's viewport is at (0, 0), i.e. LVDS1 is located at left of VGA. The size of occupied area by both outputs is 2048x768. The virtual screen size (maximum framebuffer) is 4096 x 4096 which is statically set in xorg.conf (see next section). You can decrease the maximum with '--fb' option but can not increase it. You need make sure your screen size fall into the maximum framebuffer, otherwise you should increase the value in xorg.conf. There are five xrandr options that can be used to set Dual Monitor:
$ xrandr --pos
x
$ xrandr --left-of
没有评论:
发表评论