Signed-off-by: Laércio de Sousa <laercioso...@sme-mogidascruzes.sp.gov.br> --- README | 60 ++++++++++++++++++++++++++---------------------------------- TODO | 4 ++-- 2 files changed, 28 insertions(+), 36 deletions(-)
diff --git a/README b/README index 12a2fc6..352c4af 100644 --- a/README +++ b/README @@ -3,68 +3,61 @@ 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) + Xorg :1 -config my.conf -noreset -retro My xorg.conf: -- begin xorg.conf -- +# Omit this section if -seat option is to be passed to Xorg Section "ServerFlags" - Option "AutoEnableDevices" "false" + Option "AutoAddGPU" "false" Option "AutoAddDevices" "false" - Option "AllowEmptyInput" "true" + Option "AutoEnableDevices" "false" EndSection Section "Device" - Identifier "device1" + Identifier "Nested virtual video device" Driver "nested" - Option "Display" ":0" # you can omit this + Option "Display" ":0" # you can omit this + Option "Xauthority" "/var/run/Xauthority/:0" # you can omit this EndSection +# you can omit this section Section "Screen" - Identifier "screen1" - Device "device1" + Identifier "Nested virtual screen" + Device "Nested virtual video device" DefaultDepth 24 - Option "Origin" "100 100" # you can omit this + 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 -- -Mouse and keyboard input events from the client window are forwarded to the nested -xserver, so no mouse/keyboard drivers are needed. +This driver provides an integrated input driver, so that mouse +and keyboard input events from the client window are forwarded +to the nested xserver. This driver is not enabled if -seat option is +passed to Xorg, making it suitable for single-GPU multi-seat. 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: +xorg.conf with 2 screens: -- begin xorg.conf -- Section "ServerFlags" - Option "AutoEnableDevices" "false" + Option "AutoAddGPU" "false" Option "AutoAddDevices" "false" - Option "AllowEmptyInput" "true" -EndSection - -Section "Device" - Identifier "device1" - Driver "nested" + Option "AutoEnableDevices" "false" EndSection Section "Device" - Identifier "device2" + Identifier "Nested virtual video device" Driver "nested" EndSection Section "Screen" - Identifier "screen1" - Device "device1" + Identifier "Nested virtual screen 1" + Device "Nested virtual video device" DefaultDepth 24 SubSection "Display" Depth 24 @@ -73,8 +66,8 @@ Section "Screen" EndSection Section "Screen" - Identifier "screen2" - Device "device1" + Identifier "Nested virtual screen 2" + Device "Nested virtual video device" DefaultDepth 24 SubSection "Display" Depth 24 @@ -83,9 +76,8 @@ Section "Screen" EndSection Section "ServerLayout" - Identifier "layout1" - Screen "screen1" - Screen "screen2" RightOf "screen1" - InputDevice "mouse1" + Identifier "Nested virtual layout" + Screen "Nested virtual screen 1" + Screen "Nested virtual screen 2" RightOf "Nested virtual screen 1" EndSection -- end xorg.conf -- diff --git a/TODO b/TODO index aed9ca2..a43f2fa 100644 --- a/TODO +++ b/TODO @@ -9,8 +9,6 @@ TODO - implement FreeScreen? (http://www.x.org/archive/X11R6.8.2/doc/DESIGN6.html#38) - implement the code that validates depths, implement other checks - compare Xlib's bpp with pScrn's bpp? is it needed? other similar checks? -- add some Option "fullscreen"? (for Multiseat) -- write the xcb backend - write other backends (for different window systems, or maybe using portable libraries like SDL or Qt) - ability to detach from one xserver and attach to other? @@ -20,3 +18,5 @@ TODO - improve the code that redraws the screen (damage tracking) - fully understand the fb/shadow code to get a clue on what's really going on =) - write a man page +- bring latest Xephyr optimizations (e.g. AccelMethod "glamor" support) to xcb client +- verify support for non-root Xorg. -- 2.1.4 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel