Extended display in Linux

Source: Internet
Author: User
Linux extended display-general Linux technology-Linux technology and application information. The following is a detailed description. This problem was fixed just a few days ago. The problem was not fixed and I almost gave up. I did not expect that I had a good luck and finally solved it.

First, let's talk about the preface. ECHO arrived a few days ago and found a CRT lying on the ground. It was ruthlessly abandoned by its master, which aroused my impulse because during my internship, I often use dual-display to view the code, so I always wanted to use dual-display in linux, So I suffered from no conditions. Now everything is ready, and I immediately started to itch.

Now let's talk about the solution.

My situation is: Ben + FC5 (It hurts every time I talk about it here, the bunch of ubuntu kids are so happy) + Intel 915GM's chipset + a CRT, therefore, it is estimated that many Nvidia and ATI users can only be part of the reference.

In fact, what you need to do is very simple. Connect the monitor, modify the xorg. conf file, restart the Xwindow, and use the Fn + XX key in your current book to switch between them.

The following describes how to modify xorg. conf:

We strongly recommend that you back up the file before modifying xorg. conf in/etc/X11.

Cp xorg. conf xorg. conf. backup

Modifying:
1. Monitor
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "External"
Option "DPMS"
EndSection

The description is as follows:
Section "Monitor"
Identifier "Generic Monitor" // only this one is useful, that is, the name of the Monitor, which will be pointed out later in the Screen module.
Option "DPMS"
EndSection

2. Device
Section "Device"
Identifier "915-Default"
Driver "i810"
BusID "PCI: 0: 2: 0"
Option "MonitorLayout" "CRT, LFP"
Screen 0
EndSection

Section "Device"
Identifier "915-External"
Driver "i810"
BusID "PCI: 0: 2: 0"
Option "MonitorLayout" "CRT, LFP"
Screen 1
EndSection

The description is as follows:
Section "Device"
Identifier "915-Default" // as shown in the preceding figure, the device name will be used later.
Driver "i810" // use the i810 Driver.
BusID "PCI: 0: 2: 0" // run the lspci command to view the BusID and VGA compatible controller.
Option "MonitorLayout" "CRT, LFP" // two Layout channels, "pipeA, pipeB". From my experiment, my current screen is pipeB.
Screen 0
EndSection

Section "Device"
Identifier "915-External" // different names
Driver "i810" // The same Driver
BusID "PCI: 0: 2: 0" // same BusID
Option "MonitorLayout" "CRT, LFP" // same Layout
Screen 1
EndSection

3. Screen
Section "Screen"
Identifier "Default Screen"
Equipment "915-Default"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "Screen"
Identifier "External Screen"
Equipment "915-External"
Monitor "External"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

The description is as follows:
Section "Screen"
Identifier "Default Screen" // Screen name, which will be used later.
Device "915-Default" // The name of the previous Device
Monitor "Generic Monitor" // Monitor name
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" // the above lines are very simple. You can modify the screen configuration as needed.
EndSubSection
EndSection

4. ServerLayout

Section "ServerLayout"
Identifier "Multihead layout"
Screen "Default Screen"
Screen "External Screen" RightOf "Default Screen"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
InputDevice "Mouse0" "AlwaysCore"
Option "Xinerama" "on"
EndSection

The following is an explanation:

Section "ServerLayout"
Identifier "Multihead layout"
Screen "Default Screen" // Screen name
Screen "External Screen" RightOf "Default Screen" // sets the relative positions of the two screens.
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
InputDevice "Mouse0" "AlwaysCore"
Option "Xinerama" "on" // set "Xinerama" to "on", "clone" to "off", or simply remove it, so that the screen can be expanded.
EndSection

PS: Xinerama, from en wikipedia:

Xinerama is an extension to the X Window System which enables multi-headed X: applications and window managers which use two (or more) physical displays as one large virtual display.

Other things do not need to be modified.

Restart Xwindow, Ctrl + Alt + BackSpace. If there is any problem with Xserver, start it manually and enter startx. If you can start Xwindow and use your Fn + XX key to switch the screen, there will always be one that suits you. Finally, you will have an extended screen, which can drag your stuff in two screens and look down at your four work zones. They all become wider. Haha, dual screen world.

If there is a problem with this conf file and there is a fatal error, you can modify it based on the error information. It is not possible to copy the backup conf file back.

Cp xorg. conf. backup xorg. conf

My own problems:
1. The screen that starts to be connected is not on. The solution is to use Fn + XX for switching, dumb.

2. The external screen is highlighted, but it is an image of the main screen. The two screens are identical. What do you want. Solution: Use the conf file mentioned above to modify it.

3. fcitx's note is in the middle of two screens. Solution: In the fcitx configuration file, set the value of the center of the selector to 0, and drag it to any place.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.