Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spice-vdagent clipboard ownership copy-and-paste [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
charlton
n00b
n00b


Joined: 11 Apr 2005
Posts: 39
Location: Monterrey, Mexico

PostPosted: Wed May 16, 2018 7:09 am    Post subject: spice-vdagent clipboard ownership copy-and-paste [solved] Reply with quote

I have a gentoo guest running inside KVM/qemu/virt-manager under a gentoo host. Everything works beautifully except copy-and-paste which only occasionally works. Even within the VM (not cross host<->guest) the copy-and-paste doesn't work. It seems to work the first time, but afterwards when I try to paste it doesn't work and also freezes xorg/terminals for 10 seconds.

I am constantly seeing these in my messages log:
Code:
May 16 01:33:22 triton spice-vdagent[2231]: primary: received clipboard req while not owning guest clipboard
May 16 01:33:22 triton spice-vdagent[2231]: primary: received clipboard req while not owning guest clipboard
May 16 01:33:22 triton spice-vdagent[2231]: primary: received clipboard req while not owning guest clipboard
May 16 01:33:22 triton spice-vdagent[2231]: primary: received clipboard req while not owning guest clipboard
May 16 01:33:22 triton spice-vdagent[2231]: primary: received clipboard req while not owning guest clipboard
May 16 01:33:23 triton spice-vdagent[2231]: primary: received clipboard req while not owning guest clipboard
May 16 01:33:24 triton spice-vdagent[2231]: primary: selection requests pending on clipboard ownership change, clearing

While these seem to be very clear error messages I could google, it comes back with nothing helpful. Maybe I've configured something incorrectly because otherwise I can't see how this isn't a common issue. spice-vdagent and qemu-guest-agent are both running on the guest. Their /etc/conf.d files have not been changed from their defaults (ie all comments). virtio uinput has been compiled in the kernel as a module and is loaded when I check lsmod.


Last edited by charlton on Fri Apr 12, 2019 8:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
charlton
n00b
n00b


Joined: 11 Apr 2005
Posts: 39
Location: Monterrey, Mexico

PostPosted: Mon May 21, 2018 6:03 pm    Post subject: Reply with quote

I can confirm that this also messes with copy-and-paste on the host system as well.
I'm having problems selecting words/sections on the host. If I shut down the VM the problem goes away.
Back to top
View user's profile Send private message
charlton
n00b
n00b


Joined: 11 Apr 2005
Posts: 39
Location: Monterrey, Mexico

PostPosted: Fri Apr 12, 2019 8:18 pm    Post subject: Reply with quote

I can confirm this problem is still in play.
Other threads referencing this problem are:
https://bugzilla.redhat.com/show_bug.cgi?id=1600798
https://gitlab.freedesktop.org/spice/linux/vd_agent/issues/9
https://gitlab.freedesktop.org/spice/spice-gtk/issues/82
https://lists.freedesktop.org/archives/spice-devel/2019-February/048294.html

The following patch has helped a lot. I made my own ebuild in /usr/local/portage and it can be applied to spice-gtk-0.35:

https://gitlab.freedesktop.org/spice/spice-gtk/uploads/2e7f0885266dde1025b6517ea9e1a144/0001-gtk-session-do-not-request-guest-s-clipboard-data-un.patch

Use this patch until the next spice-gtk comes out, however version 0.36 is already out and does not yet fix the problem. The devs are apparently still deciding which patch to push upstream.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum