mirror of
https://github.com/pikvm/pikvm.git
synced 2026-03-02 18:16:56 -05:00
When connecting using bvnc clipboard is pasted upon connect every time #960
Labels
No labels
component:documentation
help wanted
resolution:delayed
resolution:duplicate
resolution:fixed
resolution:invalid
resolution:rejected
resolution:wontfix
success story
type:bug
type:bug
type:feature
type:question
type:question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pikvm-pikvm#960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Raptor-TK on GitHub (Oct 30, 2024).
Originally assigned to: @mdevaev on GitHub.
Describe the bug
When connecting using bvnc, clipboard from android is pasted upon connect every time.
To Reproduce
Steps to reproduce the behavior, like:
Expected behavior
The clipboard should not be pasted upon connect.
VNC client phone:
PiKVM info:
pacman -Q | grep kvmd4.10pacman -Q | grep ustreamer6.14uname -aLinux pikvm 6.6.45-7-rpi 1 SMP Mon Sep 2 09:16:27 UTC 2024 armv7l GNU/LinuxAdditional context
KVMD: 4.10
Streamer: 6.14 (ustreamer)
HAS_PDEATHSIG: Yes
WITH_GPIO: Yes
WITH_PTHREAD_NP: Yes
WITH_SETPROCTITLE: Yes
WITH_SYSTEMD: Yes
Linux kernel:
Machine: armv7l
Release: 6.6.45-7-rpi
Version: #1 SMP Mon Sep 2 09:16:27 UTC 2024
@Raptor-TK commented on GitHub (Oct 30, 2024):
#284 #926 are related issues.
For 284, the user must of copied some logs when trying to debug something and upon connect it auto pasted.
@Raptor-TK commented on GitHub (Oct 31, 2024):
I also noticed that this also happens on AVNC as well when connecting to PiKVM.
Tested and reproduce on a Samsung Fold 6 and a Sony Xperia Pro-i
@Raptor-TK commented on GitHub (Oct 31, 2024):
One workaround is to use an app like the following to clear the clipboard in android before connecting to the PiKVM.
https://github.com/amnesica/ClearClipboard
It can be automated using routines and setting a rule for the clear clipboard to be run whenever a vnc client is opened.
@mdevaev commented on GitHub (Nov 2, 2024):
I suppose this is a problem on the client side. PiKVM receives a clipboard insertion signal from them and simply executes this command.
@mdevaev commented on GitHub (Nov 2, 2024):
Please attach
journalctl -u kvmd-vnclog with timestamps. If this event arrives immediately after the connection, I can add some delay during which clipboard events will be ignored.@Raptor-TK commented on GitHub (Nov 2, 2024):
I reproduced the issue copying the word "Test" before connecting to the PiKVM several times.
In the log it prints:
kvmd-vnc.log
@mdevaev commented on GitHub (Nov 2, 2024):
Try this hack. Patch your file
/usr/lib/python3.12/site-packages/kvmd/apps/vnc/rfb/__init__.pylike this:If you do not know how to do this, I will send you the whole file.
@mdevaev commented on GitHub (Nov 2, 2024):
Updated ^^^
@Raptor-TK commented on GitHub (Nov 3, 2024):
Thanks I'll try this and update you when I've tested it.
@Raptor-TK commented on GitHub (Nov 4, 2024):
It works!
Tested it several times with both AVNC and bVNC clients in android.
Thank you for resolving this issue!
@mdevaev commented on GitHub (Nov 4, 2024):
You're welcome. It will be available in the next release also.
@Raptor-TK commented on GitHub (Nov 4, 2024):
Actually, I jumped the gun.
I found another scenario it happens.
When VNC Client is running but was running in background but not disconnected.
If you switch focus back to it, the clipboard contents is pasted still.
In this case I'm not sure if there is an easy solution.
But at least the situation of it pasting the clipboard on the initial connect is not happening.
@mdevaev commented on GitHub (Nov 5, 2024):
There's no way I can fix it. VNC is not really designed for something like PiKVM, and clients are trying to synchronize clipboard contents with the host. But PiKVM doesn't have a clipboard, only keyboard access, so it tries to type this.
@Raptor-TK commented on GitHub (Nov 5, 2024):
Thanks for the hint there that this is likely something that needs solving on the client side.
I checked in AVNC client for android and there is an option to disable clipboard sync that solves this issue.
In bVNC on android, there is no option to disable clipboard sync.