Skip to Content
X Power Tools
book

X Power Tools

by Chris Tyler
December 2007
Intermediate to advanced
269 pages
6h 17m
English
O'Reilly Media, Inc.
Content preview from X Power Tools

Chapter 4. Advanced X.org Configuration

Multi-Screen Configuration

Some people just can’t get enough—at least when it applies to screen space. Many users can productively benefit from more screen space than a single monitor can provide.

It’s fairly easy to configure the X.org server to support multiple screens on one display, if you have the hardware. In fact, if you get the X server to configure itself, it will do a reasonable job of setting up a multi-screen configuration if it detects multiple video cards and monitors.

To configure or tune a multi-screen setup by hand, take the following steps:

  1. Create two (or more) normal Screen sections and the corresponding Device and Monitor sections in the xorg.conf file. Ensure that each screen has a unique identifier; in the following example, I’ve used the identifiers ScreenA, ScreenB, and ScreenC.

  2. Add both screen sections to the ServerLayout section, numbering the screens starting at 0:

	Section "ServerLayout"
	        Identifier     "Multiscreen layout"
	        Screen      0  "ScreenA" 0 0
	        Screen      1  "ScreenB" Below     "ScreenA"
	        Screen      2  "ScreenC" RightOf   "ScreenA"
	        InputDevice    "Mouse0"            "CorePointer"
	        InputDevice    "Keyboard0"         "CoreKeyboard"
	EndSection

Notice that Screen0 is positioned to 0 0, but Screen1 and Screen2 are positioned relative to Screen0. The positioning keywords available are Above, Below, RightOf, and LeftOf; the keyword is followed by the quoted name of one of the other screens. (There are also other ways of positioning screens; see Section 4.4.)

When you start ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

X Window System User's Guide for X11 R3 and R4 of the X Window System

X Window System User's Guide for X11 R3 and R4 of the X Window System

Valerie Quercia, Tim O'Reilly
Ubuntu® Linux® Bible

Ubuntu® Linux® Bible

William von Hagen
FreeBSD6 Unleashed

FreeBSD6 Unleashed

Brian Tiemann
Mac OS® X Tiger™ Unleashed

Mac OS® X Tiger™ Unleashed

John Ray, William Ray

Publisher Resources

ISBN: 9780596101954Errata Page