tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.01k stars 252 forks source link

Mouse forwarding fails when connecting to a Raspberry Pi 3 target #397

Closed mtlynch closed 3 years ago

mtlynch commented 3 years ago

Description

A user reported finding buggy mouse behavior when they connected their TinyPilot to a Raspberry Pi 3 with graphical.target started running LXDE.

What's the behavior that you expect?

Mouse cursor forwarding works as normal.

What's happening instead?

Mouse movements and clicks are substantially delayed on the remote Pi.

What are the steps to reproduce this behavior?

  1. Provision a target Pi with LXDE
  2. Connect to the Pi from a TinyPilot
ComputerDoktor commented 3 years ago

https://github.com/pikvm/pikvm/blob/master/pages/faq.md#usb-problems-keyboard-mouse-mass-storage-etc Unusual case: RPi4 is used as a Pi-KVM to control RPi3. In this case, the mouse delay may be several seconds. To fix it, just add kernel parameter usbhid.mousepoll=0 in /boot/cmdline.txt on the server (i.e. RPI3 in our case) and reboot it. (Parameter has to be added to cmdline.txt, not to config.txt) Raspi OS kernel has a nonsense default value of 0xffffffff for usbhid.mousepoll. more details here https://wiki.archlinux.org/index.php/mouse_polling_rate

mtlynch commented 3 years ago

Oh, thanks for sharing that solution, @ComputerDoktor!