Ubuntu 8.04/8.10
Directory:
1. Set the display resolution and xrandroid Introduction
2. How to switch dual screen under GNOME
3. Problems and Solutions for GNOME panel/wine/aliwangwang on dual screen
Body:
1. Set the display resolution and xrandroid Introduction
X Windows has a display resolution concept. By default, the display resolution is Max * max, and Max is equal to the maximum resolution of the display on all your connections. For example, if the maximum resolution of a notebook LCD screen is 1024*768 and that of an external display is 1280*1024, the default display resolution is 1280*1280. If I set both the left and right screens and use the maximum resolution, the total display resolution will reach 2304*1024, exceeding the system's default size. In this case, forcibly setting the dual screen will cause X to enter the ultra-low resolution, and the result has to be manually reset xrog. conf to restore.
To better detect this problem, we need to use the xrandroid software, xrandroid system has come with, if not please install x11-xserver-utils: sudo apt-Get install x11-xserver-utils.
Run xrandroid without parameters to list the current display devices and the modes supported by each device. Screen represents the total display area, VGA represents the display, LVDS represents the notebook LCD screen.
Screen 0: Minimum 320x200, current 1280x768, maximum
1280x1280
VGA connected (normal left inverted right X axis Y axis)
1280x1024 75.0 + 69.8 59.9
1024x768 75.1 70.1 60.0
800x600 72.2 75.0 60.3
640x480 75.0 72.8 65.4
720x400 70.1
LVDS connected 1024x768 + 0 + 0 (normal left inverted right X axis Y axis) 246mm x 184mm
1024x768 50.0 * + 60.0 40.0
800x600 60.3
640x480 60.0 59.9
By default, the system displays a resolution of 1280x1280. The minimum resolution supported by VGA and LVDS exceeds this number when both the left and right sides of the screen are expanded. Of course, X enters the ultra-low resolution. If you are interested, run the following command to open the external monitor and set it to the expanded screen on the right (do not use SUDO) to verify: xrandroid -- output VGA -- Auto -- right-of LVDS
An error occurs in the system, indicating that the screen size exceeds the limit.
Solution: manually modify Xorg. conf and add a line of virtual 2304 1024 in section "screen ".
Section "screen"
Identifier "default screen"
Monitor "configured monitor"
Device "configured video device"
Subsection "display"
Virtual 2304 1024
Endsubsection
Endsection
Note: Xorg. conf in Ubuntu 8.04 is already very simple, and subsection "display" may need to be added by yourself. Do not forget endsubsection.
After setting, enter the following xrandroid command:
$ Xrandroid
Screen 0: Minimum 320x200, current 1024x768, maximum 2304x1024
VGA connected (normal left inverted right X axis Y axis)
....
LVDS connected 1024x768 + 0 + 0 (normal left inverted right X axis Y axis) 246mm x 184mm
....
Now it should be okay. After you use the command to open the dual screen,
$ Xrandroid
Screen 0: Minimum 320x200, current 2304x1024, maximum 2304x1024
VGA connected 1280x1024 + 1024 + 0 (normal left inverted right X axis Y axis) 340mm x 270mm
...
LVDS connected 1024x768 + 0 + 0 (normal left inverted right X axis Y axis) 246mm x 184mm
...
In fact, this display resolution can be set to a higher value. For example, I set it to 4000x2000. If you connect to an external display with the maximum resolution of x1200, you do not need to reset Xorg. conf.
The xrandroid command line allows you to easily switch between two screens. The common method is as follows. You can explore other methods by yourself:
- Xrandroid -- output VGA -- same-as LVDS -- Auto
Turn on the external monitor (maximum resolution), the same content as the notebook LCD screen (clone)
- Xrandroid -- output VGA -- same-as LVDS -- Mode 1024x768
Turn on the external monitor (resolution: 1024x768) and display the same content as the LCD screen of the notebook (clone)
- Xrandroid -- output VGA -- right-of LVDS -- Auto
Turn on the external monitor (maximum resolution) and set it to extend the screen on the right
- Xrandroid -- output VGA -- off
Turn off external display
- Xrandroid -- output VGA -- Auto -- output LVDS -- off
Turn on the external monitor and turn off the notebook LCD screen (only use the External Monitor)
- Xrandroid -- output VGA -- off -- output LVDS -- Auto
Turn off the external monitor and turn on the notebook LCD screen (only use the notebook LCD screen)
(In the last two cases, please be careful not to turn off both screens by mistake ....)
2. How to switch dual screen under GNOME
It is inconvenient to use the command line. Fortunately, we still have many tools available in X:
The "monitor screen resolution Settings" software provided by gnome is very powerful (system-> preferences-> screen resolution). The second monitor can be turned on and off by adjusting its resolution, you can cancel the "clone" operation to set the screen extension. You can also drag the icon to adjust the relative positions of the two screens.
Grandroid is an xrandroid front-end with a graphical interface. Its functions have their own advantages over the previous software. Installation Method: sudo apt-Get install grandroid
There are also two plug-ins that can be added to the GNOME panel to quickly switch the resolution (but cannot switch the dual screen), namely gnome-randroid-Applet and resapplet. If you need to, try again.
For NVIDIA graphics cards, it is said that NVIDIA-settings (SUDO apt-Get install NVIDIA-settings) can be installed, but I have not tried it.
3. Issues and Solutions for GNOME panel/wine/aliwangwang on dual screen
When you expand the screen on the right side, the GNOME panel will automatically go to the external monitor. You can drag it back to the laptop LCD screen.
An interesting phenomenon was found. The Program executed with wine seemed to be only displayed on the screen that was initially displayed, and it could not be rendered normally after being dragged to another screen.
When using aliwangwang 5.7 in dual-Screen mode, you must note that after you start the extended dual-Screen mode, you will not be able to see the icon when you start aliwangwang again. Only one blank icon is displayed in the tray area and the menu cannot be started, therefore, we recommend that you first start aliwangwang and then start the dual-screen extension. (If you have already enabled dual-screen, you can first change the dual-Screen mode to non-extended mode, then start trademanager, and then enable the extended mode ). The command is as follows:
Xrandroid -- output VGA -- same-as LVDS
Start trademanager
Xrandroid -- output VGA -- right-of LVDS
PS by me:
Xrandroid is really a good thing !!
By the way, paste my Xorg. conf (ATI x1250)
Section "ServerLayout" Identifier "Default Layout" Screen 0 "aticonfig-Screen[0]" 0 0 InputDevice "Keyboard0" "CoreKeyboard"# InputDevice "Synaptics" "AlwaysCore" InputDevice "USB Mouse" "AlwaysCore" Option "AIGLX" "0"EndSectionSection "ServerFlags" Option "AllowMouseOpenFail" "true"EndSectionSection "Device" Identifier "ati-x1250" Driver "radeon" Option "AGPFastWrite" "True" Option "AGPMode" "4" Option "AccelDFS" "true" Option "AccelMethod" "EXA" Option "AccelMethod" "exa" Option "ColorTiling" "on" Option "DRI" "on" Option "Dac6Bit" "True" Option "DynamicClocks" "on" Option "EnablePageFlip" "on" Option "FBTexPercent" "0" Option "MonitorLayout" "LVDS" Option "XAANoOffscreenPixmaps" "true"EndSectionSection "InputDevice" Identifier "USB Mouse" Driver "mouse" Option "Device" "/dev/input/mice" Option "SendCoreEvents" "true" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" Option "Buttons" "5"EndSectionSection "InputDevice" Identifier "Synaptics" Driver "synaptics" Option "Protocol" "auto-dev" Option "UpDownScrolling" "on" Option "LeftRightScrolling" "on" Option "LeftEdge" "100" Option "RightEdge" "900" Option "TopEdge" "80" Option "BottomEdge" "680" Option "FingerLow" "25" Option "FingerHigh" "30" Option "MaxTapTime" "1000" Option "MaxTapMove" "220" Option "VertScrollDelta" "100" Option "MinSpeed" "0.6" Option "MaxSpeed" "1" Option "SHMConfig" "on" Option "SHMConfig" "1"EndSectionSection "DRI" Group "video" Mode 0666EndSectionSection "Extensions" Option "Composite" "0"EndSectionSection "Files" FontPath "/usr/share/fonts/misc" FontPath "/usr/share/fonts/corefonts" FontPath "/usr/share/fonts/TTF" FontPath "/usr/share/fonts/100dpi" FontPath "/usr/share/fonts/75dpi" FontPath "/usr/share/fonts/default/ghostscript" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/OTF" FontPath "/usr/share/fonts/Type1/" FontPath "/usr/share/fonts/100dpi/" FontPath "/usr/share/fonts/75dpi/" ModulePath "/usr/lib/xorg/modules"EndSectionSection "Module" Load "GLcore" Load "bitmap" Load "dbe" Load "ddc" Load "dri" Load "extmod" Load "glx" Load "record" Load "vbe" Load "drm"EndSectionSection "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbVariant" ",winkeys" Option "XkbLayout" ""EndSectionSection "Monitor" Identifier "ASUS-LCD" Option "DPMS" "true"EndSectionSection "Screen" Identifier "aticonfig-Screen[0]" Device "ati-x1250" Monitor "ASUS-LCD" DefaultDepth 24 SubSection "Display" Virtual 4000 2000 Depth 24 Viewport 0 0 EndSubSectionEndSection |