diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-07 14:23:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-07 16:54:57 +0100 |
commit | 265d94e0aa46b30a3198893544dd3619cc9145de (patch) | |
tree | 1f762b104148a13fd5c07dfb56d1e70614ae4216 /src/sna/sna_module.h | |
parent | ad5ead8257b7dda84a886461873d87831d43e663 (diff) |
sna: Add zaphod support
Zaphod support is a rudimentary method for creating an Xserver with
multiple screens from a single device. The Device is instantiated, with
a duplication of its resources, as many as required up to a maximum of
the number of its outputs, and each instance is attached to a Screen
and added to the ServerLayout. A Device can be bound to a selection of
outputs using a comma separated list of RandR names.
Note: in general, this is not the preferred solution! And will be
superseded by per-crtc-pixmaps in RandR-1.4.
For example, the following xorg.conf fragment creates an XServer with
two screens, one attached to the LVDS panel on the laptop, and the other
to any external output:
Section "Device"
Identifier "Intel0"
Driver "intel"
BusID "PCI:0:2:0"
Option "ZaphodHeads" "LVDS1"
Screen 0
EndSection
Section "Device"
Identifier "Intel1"
Driver "intel"
BusID "PCI:0:2:0"
Option "ZaphodHeads" "DVI1,VGA1"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Intel0"
EndSection
Section "Screen"
Identifier "Screen1"
Device "Intel1"
EndSection
Section "ServerLayout"
Identifier "default"
Screen "Screen0"
Screen "Screen1"
EndSection
Based on a patch by Ben Skegs <bskeggs@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_module.h')
-rw-r--r-- | src/sna/sna_module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_module.h b/src/sna/sna_module.h index 9b14acc3..97d5dd5e 100644 --- a/src/sna/sna_module.h +++ b/src/sna/sna_module.h @@ -1,3 +1,3 @@ const OptionInfoRec *sna_available_options(int chipid, int busid); -void sna_init_scrn(ScrnInfoPtr scrn); +void sna_init_scrn(ScrnInfoPtr scrn, int entity_num); |