It's not surprising that the dual-screen display of Linux operating systems

Source: Internet
Author: User
Title: Double screen display of Linux operating system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Currently, most display cards on the market are equipped with two video outputs (dual VGA or dual DVI or VGA + DVI). With the help of the driver in Windows XP, we can easily configure dual-display to double the display area. So, for some Linux enthusiasts, is dual-display equally available in Linux? After some exploration on the video card of VNIDIA, the answer is yes. The following describes the configuration process of the Linux release: Fedora Core 3 (FC3.
  
Related hardware: Display Card: GeFore4 MX440 8X dual VGA output; display: TCL 15 inch CRT, EMC 15 inch CRT
  
Related Software: Linux release: Fedora Core 3; nvidia driver: 7167
  
Note: All operations in Linux require the root user.
  
Step 1: determine the order of the two display devices connected to the video card and tell you a simple way: Open "Display Properties" in Windows XP and open the "Settings" tab, click the "recognize (I)" button, then you will see 1 and 2. You don't need to talk about the rest. On my machine, TCL is No. 1, EMC is No. 2, no. 1 is on the left, and No. 2 is on the right. -1.
    
   Figure 1
  
Step 2: Go to http://www.nvidia.com/object/linux.html and select the appropriate driver to download. Note: Linux IA32 indicates that it is applicable to general 32-bit Intel PCs, such as P2, P3, P4, and sai Yang; linux AMD64/EMT64 indicates a 64-CPU computer that supports the AMD64 or EMT64 technology, such as Athlon64 3000 + or PENTIUM 4 630. The author's CPU is Intel Pentium 4 2.4C, so I chose Linux IA32.
  
Step 3: Because the Linux driver of mongoda is compiled and installed, it is required to install the GCC compiler and the source code file of the kernel in Linux. If you select to install the "development tool" when installing FC3, it is included. If not, you can add or delete the tool in FC3 for installation. -2.
    
   Figure 2
  
Step 4: log on to the character terminal because the X server cannot run during installation of the NVIDIA graphics card driver. If the GUI is enabled by default, log on to FC3, open the/etc/inittab file in a text editor (such as gedit or vi), and find "id: 5: initdefault :", change 5 (that is, the one in the middle of two colons) to 3 (Change 3 back to 5 to log on to the GUI by default), save, and restart the computer, the character terminal is displayed on the login page. -3.
    
   Figure 3
  
Step 5: Use the following command to back up the Xorg configuration file (the backup file name is xorg. conf. bak), "cd/etc/X11", "cp. /xorg. conf. /xorg. conf. bak ". Be case sensitive.
  
Step 6: log on to the directory where the downloaded driver is located. If the hard disk partition where the directory is located is not an ext2 or ext3 partition, such as FAT32 or NTFS, copy the driver to an ext2 or ext3 partition, enter the directory, and use "sh. /run the installer in the format of file name, such as sh. /NVIDIA-Linux-x86-1.0-7167-pkg1.run, followed by a green-based interface, asking whether to accept the Protocol, whether to access the ftp server to view the latest version, and then start the installation (this time is relatively long ), after installation, the system automatically exits to the character terminal. Start the graphic interface with startx. The two displays can display the same content at the same time. We recommend that you use statrx to start the following jobs to use gedit in the graphic interface.
  
Step 7: Open the Xorg configuration file (Path:/etc/X11/xorg. cong), find "Section" Monitor ", because there is no dual-explicit configuration, so there is only one, and the configuration is for the 1 display. Change the original value of its "Identifier" item (for convenience, the original value of "XX item" is referred to as "XX item") to "MonitorTCL ", copy the configuration information of the monitor and change "Identifier" to "MonitorEMC" as the configuration information of the No. 2 monitor. If the performance of the two monitors is different, you only need to modify the relevant items.
  
Step 8: locate Section "Device" and change "Deiver" to "nvidia" (case sensitive). Add the new "BusID" and set the value to "PCI: 1: 0: 0 ". This value is a string value, which must be marked with double quotation marks. Add the new" Screen "and set the value to 0. This is an integer without double quotation marks; change the "Identifier" item to "AGP1" as the adapter connected to the No. 1 monitor. Copy the configuration information of this adapter and change the "Identifier" item to "AGP2 ", used as an adapter to connect to the No. 2 display.
  
In step 9, locate Section "Screen", change "Device" to "AGP1", and change "Monitor" to "MonitorTCL ", change the "Identifier" item to "ScreenEMC" as the display screen on the TCL display. Copy the configuration information of this display screen, modify the "Identifier" item to "ScreenEMC" as the display screen on the EMC display.
  
In step 10, find "Secion" ServerLayout "and find the" Screen "item. There is only one item, and it looks like this:" 0 "Screen0" 0 0 ". Change it: "0" ScreenTCL "0 0", add a new "Screen" item, and set the value to "1" ScreenEMC "RighOf" ScreenTCL "". If you want to allow the window of the program to shuttle freely between two monitors as in Widnows XP, add two new "Option" items and set the values: "" Xinerama "" on "", "Clone" "off ". Whether or not these two parameters are added, the Gnome toolbar can be on any side of the two monitors (only when added, You need to drag from the first to the second ); realplay 10 is only played on one monitor in full screen mode and will not be stretched. Note: The modified value does not include Chinese Double quotation marks, but double quotation marks!
  
OK, so far, you can try to enter the "startx" command. If you see a flash of NVIDIA Logo, it indicates that your NVIDIA driver has been installed successfully! If you can access the desktop, you can try the dual-display experience in Linux! -3. If the startup fails, use "cd/etc/X11" and "cp. /xorg. conf. bak. /xorg. conf command to restore the original configuration file, and then start again from Step 6.
  
   Figure 4
  
Finally, let's talk about the difference between adding and not adding two "options" in Step 10: not adding, the desktops of the two monitors are independent of each other, that is to say, the windows of the program cannot be shuttles between two monitors. When the two monitors are merged, the windows of the program can be shuttles between the two monitors. The desktop background spans the display, if you select the stretch mode for your desktop background, the image will be stretched to "ultra-wide ". Therefore, I use Gimp to combine two images, ^ _ ^. In addition, if the resolutions of the two desktops (that is, "Screen") are inconsistent, it is said that the Gnome or KDE may be unstable. If I did not try this, I will leave it to the readers for exploration.

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.