[Spice-devel] No mouse under Win 10 when Nvidia drivers are active

Frediano Ziglio fziglio at redhat.com
Wed Jun 3 08:59:31 UTC 2020


Hi, 
I think the mouse issue are similar to https://gitlab.freedesktop.org/spice/win32/vd_agent/-/issues/13 and 
https://gitlab.freedesktop.org/spice/win32/vd_agent/-/issues/8 . 
In other word for some combination of displays the agent is not able to handle mouse events 
causing the events to get discarded. The solution would be for the agent to either handle all 
cases or being able to tell the server that is not capable to handle the mouse allowing 
the server to fall back to server mouse. 

I think you can see the display using the "console vnc" feature that allows Qemu 
to use spice to send "frames". 

Ole, what's your configuration for the guest/host or the mediated device? 
Software installed on the host? 
Type of Nvidia card/setup? 

Thanks, 
Frediano 

> Well, I just create a VM with a mediated device, run it, set up Nvidia
> drivers, and after VM reboot its window can be shown with remote-viewer.
> When display is set to "none", just nvidia window appears, when QXL display
> is set, two windows appear.

> 02.06.2020, 17:30, "Uri Lublin" <uril at redhat.com>:

> > On 6/2/20 4:50 PM, ole-krutov at yandex.ru wrote:
> 

> > > Hi,
> > 
> 
> > > No, I do not use spice-streaming-agent with windows VM at all.
> > 
> 

> > How do you see the NVIDIA window on the client ?
> 

> > > 01.06.2020, 22:24, "Uri Lublin" < uril at redhat.com >:
> > 
> 

> > > On 6/1/20 6:59 PM, ole-krutov at yandex.ru
> > 
> 
> > > <mailto: ole-krutov at yandex.ru > wrote:
> > 
> 

> > > Now I have tried different combinations of vd-agent state and
> > 
> 
> > > mouse
> > 
> 
> > > cursor type. In no case mouse cursor was visible on nvidia display
> > 
> 
> > > window. With dual display, qxl+nvidia, stopping vd-agent made
> > 
> 
> > > cursor
> > 
> 
> > > visible on qxl window. Reaction to mouse events was seen on nvidia
> > 
> 
> > > window too, but with invisible mouse cursor.
> > 
> 

> > > Hi,
> > 
> 

> > > I assume you have your own spice-streaming-agent plugin.
> > 
> 

> > > Does it support the display_info interface ?
> > 
> 

> > > Uri
> > 
> 

> > > 01.06.2020, 17:27, "Frediano Ziglio" < fziglio at redhat.com
> > 
> 
> > > <mailto: fziglio at redhat.com >>:
> > 
> 

> > > Hi all,
> > 
> 
> > > when just qxl adapter is attached to VM all works
> > 
> 
> > > well. But
> > 
> 
> > > when Nvidia GRID
> > 
> 
> > > instance is attached and its drivers are running,
> > 
> 
> > > mouse cursor
> > 
> 
> > > is never
> > 
> 
> > > shown on its display window. Sometimes it's just
> > 
> 
> > > invisible but
> > 
> 
> > > active and
> > 
> 
> > > reacting to mouse movements, clicks and wheel scrolling,
> > 
> 
> > > sometimes it's
> > 
> 
> > > totally missing. This behaviour is a bit dependent of is
> > 
> 
> > > Nvidia adapter
> > 
> 
> > > alone or together with qxl. Just sometimes mouse
> > 
> 
> > > cursor is
> > 
> 
> > > visible on qxl
> > 
> 
> > > display but it's very unstable and totally unusable.
> > 
> 
> > > Similar
> > 
> 
> > > behaviour is
> > 
> 
> > > under linux VM too. Is it normal "won't fix" state,
> > 
> 
> > > or can I
> > 
> 
> > > provide some
> > 
> 
> > > additional info? Windows has latest vd-agent and
> > 
> 
> > > spice-agent
> > 
> 
> > > installed.
> > 
> 

> > > Hi,
> > 
> 
> > > recently we got similar reports. Can you try to see
> > 
> 
> > > what's happen if
> > 
> 
> > > you disable the agent?
> > 
> 

> > > It seems that in these conditions the agent is not able to
> > 
> 
> > > handle
> > 
> 
> > > the mouse
> > 
> 
> > > so mouse events are "lost".
> > 
> 

> > > Another test would you could do is to use the "spicy"
> > 
> 
> > > utility. This
> > 
> 
> > > utility
> > 
> 
> > > has an option to switch manually the mouse mode
> > 
> 
> > > (server/client). It
> > 
> 
> > > would be
> > 
> 
> > > helpful to understand different behaviour using the 2 modes.
> > 
> 

> > > Frediano
> > 
> 

> > > _______________________________________________
> > 
> 
> > > Spice-devel mailing list
> > 
> 
> > > Spice-devel at lists.freedesktop.org
> > 
> 
> > > <mailto: Spice-devel at lists.freedesktop.org >
> > 
> 
> > > https://lists.freedesktop.org/mailman/listinfo/spice-devel
> > 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20200603/70fccf53/attachment-0001.htm>


More information about the Spice-devel mailing list