On 03/02/2015 07:12 PM, My Work wrote:
You can follow any responses to explain how to properly use
spice-vdagent(d) Xspice?
I did not realize until the end how to do it
First, you'll need a recent enough spice-vdagent(d) that accept the -S
command line option.
As mentioned in README.xspice there are two methods to run Xspice.
Using scripts/Xspice:
---------------------
I used this method.
With my patches, specifically those that touch scripts/Xspice,
http://lists.freedesktop.org/archives/spice-devel/2015-January/018703.html
one can simply add --vdagent option to Xspice script, e.g
scripts/Xspice --port 5900 --disable-ticketing --xorg $XORG :3.0 --vdagent
Running vdagent manually:
------------------------
I did not use this method.
To run vdagent "manually" one should enable vdagent in Xspice and
provide required information by one of the following options.
Then run spice-vdagentd and spice-vdagent with matching arguments.
Providing Xspice with vdagent information:
1. define the required environment variables:
XSPICE_VDAGENT_ENABLED is needed
XSPICE_VDAGENT_VIRTIO_PATH, and XSPICE_VDAGENT_UINPUT_PATH
are optional. Possibly more are needed.
2. define those required variables in spiceqxl.xorg.conf in
the "Device" section:
"SpiceVdagentEnabled" is needed
"SpiceVdagentVirtioPath", "SpiceVdagentUinputPath" are optional.
Possibly more are needed.
Some testing is needed to find out if other variables are needed.
Running Xorg:
rm -f /tmp/xspice-vdagent /tmp/xspice_-virtio /tmp/xspice-uinput
$XORG -noreset -config spiceqxl.xorg.conf :3.0
Running spice-vdagentd and spice-vdagent:
spice-vdagentd -x -S /tmp/xspice-vdagent -s /tmp/xspice_-virtio -f -u
/tmp/xspice-uinput
spice-vdagent -x -S /tmp/xspice-vdagent -s /tmp/xspice_-virtio
Hope that helps,
Uri.
On 02.03.15 19:00, Uri Lublin wrote:
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.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel