deskhop icon indicating copy to clipboard operation
deskhop copied to clipboard

On one PC, mouse always jumps to top right corner after keyboard input

Open kevinlong206 opened this issue 6 months ago • 11 comments

(accidentally closed this issue an could not re-open it, sorry for duplicate)

Hello,

I was wondering if this is a configuration issue or a bug. I am using two windows PCs with a single 4k monitor on each.

On just one of the PCs, whenever I type something, about 1 second later the mouse cursors jumps to the top right of the screen.

I have tried with the screensaver mode enabled and disabled.

What's strange about this is it's totally related to keyboard input. If I wave the mouse around and pause, it doesn't jump. But if I type a single key, the mouse then jumps to top right of screen, every time, and only one one of my two PCs.

Interestingly, the issue seems to follow the USB port on my device (a "Desktop Jr" I purchased on Etsy). I initially though it must have to do with one of my PCs also having a touchscreen/stylus, but I found that the problem follows the USB ports and not the PC. If I switch the ports, the problem happens on my other PC. Strange!

kevinlong206 avatar Jul 16 '25 03:07 kevinlong206

It looks like the behavior if your mouse would change change screen or be disconnected. Maybe the USB-C port on the mouse side is not receiving enough power.

If it follows the USB port, I would contact the maker of DeskHop Jr @ak66666, maybe he's seen this issue before. Does it follows the USB-C port (between DeskHop and PC) or the USB-A port (between DeskHop and Device)?

As a "quick fix", did you try to change the settings so that the "Cursor Park Position" would be the "Previous" position when you change screen? The default behavior is "Top".

omelettedufromagee avatar Jul 16 '25 14:07 omelettedufromagee

This happens with my QMK keyboard (which has mouse enabled for a trackball) when switching with the "other" side, the receiving side jumps to the parking spot. That issue was first reported here: https://github.com/hrvach/deskhop/issues/151

Are you using a keyboard with mouse keys, or are you moving with the pointer connected to the keyboard side (not always the mouse side)?

swaziloo avatar Jul 17 '25 20:07 swaziloo

I use a QMK board with a touchpad and mouse keys enabled - connected to one side, and a wireless trackball - to another. I noticed the same behaviour when I switch from using the keyboard's mouse keys/trackpad to the trackball.

I changed the "Cursor Park Position" to "Previous", in a hope not to have it jumping to the top right corner over the window closing button, not sure I understand how it supposed to work, jumps to one of the screen edges, don't see the pattern.

I kind of learned to live with that. I have to wiggle the mouse to find it anyway. Windows' "find my mouse by pressing Ctrl key" feature does not seem to work thru Deskhop - for the directly attached computers it does not work, but works in RDP sessions. The mouse cursor gets hidden while I type. For small movements I use keyboard's mouse keys. So I usually switch to the trackball when I need to do something on the other machine, and I spin the ball in the direction of that computer. Whether it jumps or not, it will fly over to that side, and I will finally see it moving and correct to the right spot. Then I will click on whatever app I changed the focus to, and in most cases switch back to the keyboard.

I have a non-QMK board with the touchpad somewhere, will see if/how it works.

ak66666 avatar Jul 17 '25 21:07 ak66666

The exact behavior in my case. Mouse attached to 'A' attached to Left Windows Keyboard/trackball attached to 'B' attached to Right Windows

  • Move cursor from Left to Right with mouse: mouse and trackball pointers are in sync (same position if I move either).
  • Move cursor from Right to Left with mouse: mouse pointer tracks normally, trackball "homes" to the top-right corner.
  • Move cursor from Right to Left with trackball: trackball pointer tracks normally, mouse "homes" to the top-right corner.
  • Move cursor from Left to Right with the trackball: trackball and mouse pointers are in sync.

Let us know if you're seeing this same behavior.

swaziloo avatar Jul 17 '25 21:07 swaziloo

I have a non-QMK board with the touchpad somewhere, will see if/how it works.

HP Wireless Mini U10G with an optical trackpoint - the same jumps. For me the main take is there is no hardware issue.

ak66666 avatar Jul 18 '25 13:07 ak66666

So I opened this issue, but I'm no longer experiencing the problem.

I did change the "park position" to "previous", I also have "Force mouse boot mode", "Enable Acceleration" and "Enforce Ports" checked on.

After changing some of these settings, I fully unplugged the my "Deskhop Jr" device for some time. When I came back and plugged it back in, it wasn't exhibiting the mouse jump issue anymore.

kevinlong206 avatar Jul 18 '25 17:07 kevinlong206

Thank you for sharing this solution.

For me it does not work, unfortunately yet not surprisingly, as my configuration/scenario is different.

ak66666 avatar Jul 18 '25 18:07 ak66666

To help me debug this, please be so kind to describe exactly what's connected to which side and dump all hid reports for all affected devices.

Most likely something else is also acting as a mouse, the box gets confused and parks the cursor. I don't know how to repro this, so you'll have to help with some diagnostic data if possible. Thank you!

hrvach avatar Aug 17 '25 21:08 hrvach

INPUT KEYBOARD + TRACKBALL (LEFT): QMK Keyboard with Pointer enabled (trackball via RP2040/PMW3389 breakout--single USB connection) INPUT MOUSE (RIGHT): Anker vertical USB mouse A7808012 (older version) OUTPUT A: Windows 11 Laptop connected to an external monitor (external primary--not using laptop monitor) OUTPUT B: Windows 11 Desktop connected to an identical monitor (DELL U2717D)

Behavior: Cursor starting on the left (B) screen:

  • Move to right (A) screen with the mouse: cursors are aligned
  • Move to right(A) screen with the trackball: mouse cursor jumps to the parking position (top, right corner)

Cursor starting on the right (A) screen:

  • Move to left (B) screen with the mouse: trackball cursor jumps to the parking position (top, right corner)
  • Move to left (B) screen with the trackball: cursors are aligned

If it would help, I can record a video showing the behavior. I changed the 'Cursor Park Position' from 'Top' to 'Previous' which moves the cursor to the right edge where the cursor departed the other screen. The biggest issue for me is when moving right to left with the mouse. If I start to type and even slightly nudge the trackball right (since it is in the park position), my keyboard jumps to right.

win-hid-dump files for the LEFT and RIGHT sides.

swaziloo avatar Aug 18 '25 06:08 swaziloo

win-hid-dump files for the LEFT and RIGHT sides.

Please dump the keyboard and the mouse descriptors (having them plugged directly to the computer). This is a dump of the box so not possible to tell what plugs into it.

hrvach avatar Aug 18 '25 11:08 hrvach

That makes way more sense. I dumped both devices using both winhiddump and hidapitester. Thanks!

Note that the VID '7377' is just being borrowed until pidcodes merges the project.

swaziloo avatar Aug 18 '25 15:08 swaziloo