quangthanh010290 / keyboard_mouse_emulate_on_raspberry

Bluetooth Keyboard Mouse Emulator on Raspberry Pi
https://thanhlev.github.io/
MIT License
289 stars 98 forks source link

Slow mouse polling? #31

Open baegmon opened 2 years ago

baegmon commented 2 years ago

Hi there, just had a test run of your project. I'm trying to use a Pi Zero as a keyboard+mouse hub for a couple servers using your tool. I've tried pairing to a computer to test and it looks like the mouse movement is laggy (slow polling maybe?).

Any idea on fixes / where to improve? (I can't see in the mouse and btk_server scripts where improvements can be made as I am new to HID devices...).

quangthanh010290 commented 2 years ago

Hi baegmon, Since the pi zero is low speed and the application is server-client design which communicates through another D-BUS service. For the best solution, I think we should use gdbus, and using a single app that read the mouse signal then send directly to Bluez