ThomasVon2021/blikvm

[Bug] [BliKVM v1] [v1.2.2] skipping keypresses

vladie opened this issue · 26 comments

I have blikvm v1 connected to linux server
All works fine except that it skips keypresses with some probability
For example if i enter 'hello world' in linux console (through web interface of blikvm, i'm using google chrome as client)
i can see 'helo wrld' entered or 'hell wold'
If i typing faster - probability of keypress skipping is increasing

May I ask if you are using blikvm ui or pikvm ui?

blikvm ui 1.2.2

just updated to 1.4.0 but problem still persists

Is it under the local area network or the public network? Is the delay significant? Are you familiar with using a browser to view messages? Every time you press a button, the browser can view it through the viewing tool.

Local area network, no delay at all. Yes i can view browser log but i can't find anything related to keypresses in that log.

It's not a log, it's a message sent by the browser. I can provide you with a screenshot when I have a device. The log is not open normally.
Of course, if you have an additional SD card, you can burn a pikvm image and test it to confirm whether it is a hardware or software issue.

you can send me instructions what debug information you need, i will do it. my cm4 have embedded disk, no sd cards. but i can ssh to it and install package or change config values.

Browser viewing tool, view messages in network options.
Flash the pikvm os you can see this guide:
https://wiki.blicube.com/blikvm/en/flashing_os/#download-the-image

where this 'messages' in firefox ? i opened developer tools -> network and see http requests, but no messages mentioned

微信图片_20240514150332
I use the chorme

Screenshot 2024-05-14 at 10 17 42

i've attached screenshot
i typed 'workwork', but wokwok appeared in output

After reviewing the relevant code, it was found that the two commands are within the same polling cycle, and the later ones will overwrite the previous ones. A fast typing speed can cause this problem.

can you please fix this in new version ?

If you directly connect the physical keyboard to the controlled computer with a faster printing speed, see if it will be lost.

i've setup OS on this computer without blikvm - by connecting physical keyboard and monitor - without any issues - no keypresses are lost

Do another test, use the assignment and paste function, click on the keyboard logo in the upper left corner, and see if it will be lost.

Works without losing keypresses, but it sends keypresses not very fast - one by one

Ok,can you connect KVM to a desktop system like Windows for testing and see if it will be lost. I see if all systems have issues. I tested and controlled the Windwos system on my end, and even though I pressed it quickly, there were no issues.

my computer runs MacOS, maybe this is different from yours ? maybe browser keypresses works differently in different OSes. i've tried firefox and chrome today (on mac) and both have lost keypresses problem

It refers to the controlled computer connected to KVM. My computer is also macos

my computer runs MacOS, maybe this is different from yours ? maybe browser keypresses works differently in different OSes. i've tried firefox and chrome today (on mac) and both have lost keypresses problem

How is the testing situation?

Will try to setup intel nuc today/tomorrow, connect blikvm to it and report results, i have no other computers now to test with.

just finished setup ubuntu 24.04 server to intel nuc mini pc. results are the same as with previous computer (amd 7950x based pc) - it skipping keypresses in console.