Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get shared clipboard and good performance? #933

Closed
LorenzoBettini opened this issue Feb 16, 2024 · 7 comments
Closed

How to get shared clipboard and good performance? #933

LorenzoBettini opened this issue Feb 16, 2024 · 7 comments

Comments

@LorenzoBettini
Copy link
Contributor

Expected behaviour

First of all, I'm only experimenting with Linux VMs. And the spice agent software is installed on the host.

I seem to understand that shared clipboard only works when using --display spice. Indeed, it does (only when using an X11, not when the host runs a Wayland session). However, the performance is really bad (3d effects are really slow). Then I tried --display spice-app, however, in that case, the VM window flashes and has serious graphical problems that do not even allow me to log into the VM.

Long story short: is there a way to have a shared clipboard in the Linux VM without sacrificing performance?

Quickemu output

Run quickemu or quickget and paste the output here.

❯ quickemu --version                                           
4.9.1

Linux Distribution & Kernel

Run the following and paste the output.

lsb_release --all

LSB Version:    n/a
Distributor ID: EndeavourOS
Description:    EndeavourOS Linux
Release:        rolling
Codename:       rolling

uname -a

Linux eos-optiplex 6.6.16-1-lts #1 SMP PREEMPT_DYNAMIC Mon, 05 Feb 2024 21:20:21 +0000 x86_64 GNU/Linux
@TuxVinyards
Copy link
Contributor

You are never going to get fast slick graphical desktop performance. The Spice feature is useful for pasting the file. It ends up in the Downloads folder. You can use qqX to set up a shared drive that all the different VM's can access. Also works in SDL mode too ... That's about it.

https://github.com/HikariKnight has a 3D pass through project you might want to look at. I haven't tried it. More aimed at gamers.

@LorenzoBettini
Copy link
Contributor Author

You are never going to get fast slick graphical desktop performance.

You mean with spice, right?
With the default --display sdl the performance are great.

@TuxVinyards
Copy link
Contributor

"With the default --display sdl the performance are great."

Well, I wouldn't say that the performance is ever going to bowl you over, but yes, I think it is a bit crisper with SDL. And you can set things up to launch at a given screen size too ...

@LorenzoBettini
Copy link
Contributor Author

I wouldn't call it just a bit crispier ;)
On my computers, it doesn't even feel like a virtual machine: it's really smooth. And only with an Intel HD Graphics.
When using the spice display instead things degrade a lot.

@TuxVinyards
Copy link
Contributor

Good to hear 👍

@muhmud
Copy link

muhmud commented Feb 17, 2024

I have the same issue, sdl works really great, like native performance, but I can't get the clipboard to work, which I really need. Meanwhile, I can copy/paste with spice, but the performance is disappointing.

Is there anyway to get shared clipboard to work in sdl?

@TuxVinyards
Copy link
Contributor

TuxVinyards commented Feb 17, 2024

No. That's it at present. Those are the tools that we have. But at least we have those ....

Edit & Update to the above and probably over-quick reply:

On the horizon is SDL3. This is not yet in general release and is still somewhat a work in progress.

Things could change in the next few months. @LorenzoBettini @muhmud if you are able to keep an eye on this and post up here, maybe, I think this could get implemented.

Currently, I am working to get the existing quickemu and quickget running as it should within qqX. This is taking up most of my time. But there is quite a bit of discussion going on behind the scenes about how to take the whole project forward.

SDL3-migration

We would probably need to see SDL3 generally available before we can do much. Note in screenshot of Ubuntu 23.10 that only SDL2 is possible. Although, some kind of test for system availability could be worked ... Thinking aloud a bit here; problems with LTS and 6 month update distros etc

According to libsdl here libsdl-org/SDL#8338 a clipboard is making it's way into circulation.

🚀

@quickemu-project quickemu-project locked and limited conversation to collaborators Apr 16, 2024
@flexiondotorg flexiondotorg converted this issue into discussion #1043 Apr 16, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants