[Spice-devel] xspice multiple monitor

Uri Lublin uril at redhat.com
Mon Mar 2 09:00:33 PST 2015


On 03/02/2015 12:45 PM, My Work wrote:
> Hi guys. I need you help, i have installed on my remote server Xorg with
> support spice protocol and i need to add support for spice multiple
> monitors, how i can do it and change my xorg.conf file for this????
> I configured my xorg.conf like this:


Hi "My Work",

With Xspice and Linux X qxl driver, it's easier if only
a single device is used. It supports (given enough memory)
up to 4 monitors per device.

See below for my suggestions on configuration file modifications.

>
> Section "ServerLayout"
>          Identifier  "Layout1"
>          Screen  1 "Screen1"
>          Screen  2 "Screen2"
>          InputDevice "MouseSpice" "CorePointer"
>          InputDevice "KeyboardSpice" "CoreKeyboard"
> EndSection
>
> Section "InputDevice"
>      Identifier  "MouseSpice"
>      Driver      "xspice pointer"
> EndSection
>
> Section "InputDevice"
>      Identifier  "KeyboardSpice"
>      Driver      "xspice keyboard"
> EndSection
>
> Section "Monitor"
>          Identifier  "Monitor1"
> EndSection
>
> Section "Monitor"
>          Identifier  "Monitor2"
> EndSection
> /
>
> /Section "Device"
>          Identifier "Card1"
>          Driver     "spiceqxl"
>          Option "SpicePort" "8901"
>          Option "SpicePassword" "mypassword"
>          Screen  0
> EndSection
>

-------------------
Remove this Section
> Section "Device"
>          Identifier "Card2"
>          Driver     "spiceqxl"
>          Screen  1
> EndSection
> /
-------------------

>
> /Section "Screen"
>          Identifier   "Screen1"
>          Device       "Card1"
>          Monitor      "Monitor1"
>          DefaultDepth 24
> EndSection
>
> Section "Screen"
>          Identifier   "Screen2"

Replace this
>          Device       "Card2"

with
            Device       "Card1"


>          Monitor      "Monitor2"
>          DefaultDepth 24
> EndSection/
>
>
> How you can see, qxl enable only for one screen, but why i don't now,
> help me please with this problem
>
> OS is Debian 8.0
> version of kernel is 3.16.0-4-amd64
> version of xorg is 1:7.7+7
> version of spice driver is 0.1.3
> version of xserver-xorg-video-qxl is 0.1.1-2+b1


My OS is RHEL-6
xorg, spice-server and xspice are built from git (with some minor 
modifications). git describe shows:
xorg-server-1.16.99.901-42-g3e7218a
spice-v0.12.5-45-g69f3f86
xf86-video-qxl-0.1.3-14-gbed5968 (Xspice)

I'm running with spice-vdagent(d) connected to the Xspice session.

After connecting with remote-viewer, click on menu: View -> Displays
and check "Display 2"

Hope that helps,
     Uri.



More information about the Spice-devel mailing list