summaryrefslogtreecommitdiff
path: root/README
blob: 92d7ac37c829f711f727a0bd6e6eaa3daf5f6493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
xf86-video-nested: driver to run Xorg on top of Xorg or something else

= Usage =

This is how I test it:
    X -config my.conf -noreset -retro :1
    (if your Xorg server is old you might need "-sharevts vt7", in case your
    bottom-layer X runs on vt7)

My xorg.conf:

-- begin xorg.conf --
Section "ServerFlags"
    Option "AutoEnableDevices" "false"
    Option "AutoAddDevices" "false"
    Option "AllowEmptyInput" "true"
EndSection

Section "Device"
    Identifier "device1"
    Driver "nested"
    Option "Display" ":0"     # you can omit this
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    DefaultDepth 24
    Option "Origin" "100 100" # you can omit this
    SubSection "Display"
        Depth 24
        Modes "640x480"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen "screen1"
EndSection
-- end xorg.conf --

Input events from the client window are forwarded to the nested xserver, so no
input driver is needed.

You can also have more than one screen with this driver. Here's an example of a
xorg.conf with 2 screens and a mouse:

-- begin xorg.conf --
Section "ServerFlags"
    Option "AutoEnableDevices" "false"
    Option "AutoAddDevices" "false"
    Option "AllowEmptyInput" "true"
EndSection

Section "Device"
    Identifier "device1"
    Driver "nested"
EndSection

Section "Device"
    Identifier "device2"
    Driver "nested"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier "screen2"
    Device "device1"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen "screen1"
    Screen "screen2" RightOf "screen1"
    InputDevice "mouse1"
EndSection
-- end xorg.conf --