[GH-ISSUE #351] layer-shell input capture with touchpad producing unusable high sensitivity on client #179

Open
opened 2026-05-05 22:12:54 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @CrypticEntity on GitHub (Nov 9, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/351

Laptop 1: gentoo (plasma 6)
Laptop 2: nixos (plasma6/hyprland)
using latest git version

I assume the issue is with layer-shell as input-capture-portal works fine in plasma and forcing layer-shell in plasma creates the same issue I had using hyprland.
My nixos laptop is much higher resolution and decreasing the client resolution (gentoo) makes the sensitivity higher from what I can tell.
Swapping to gentoo as host, controlling nixos, the sensitivity is lower, but still much higher then the host. Changing the libinput sensitivity doesn't seem to change anything on the client. I tried an external mouse and it has a reasonable sensitivity by default.

Is there any way to change the sensitivity?

Originally created by @CrypticEntity on GitHub (Nov 9, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/351 Laptop 1: gentoo (plasma 6) Laptop 2: nixos (plasma6/hyprland) using latest git version I assume the issue is with layer-shell as input-capture-portal works fine in plasma and forcing layer-shell in plasma creates the same issue I had using hyprland. My nixos laptop is much higher resolution and decreasing the client resolution (gentoo) makes the sensitivity higher from what I can tell. Swapping to gentoo as host, controlling nixos, the sensitivity is lower, but still much higher then the host. Changing the libinput sensitivity doesn't seem to change anything on the client. I tried an external mouse and it has a reasonable sensitivity by default. Is there any way to change the sensitivity?
Author
Owner

@feschber commented on GitHub (Nov 10, 2025):

Currently in the works! #347

Changing the resolution shouldn't influence the sensitivity, so this is a bug.

Could you clarify what you mean by "client" and "decreasing resolution"?

<!-- gh-comment-id:3510744580 --> @feschber commented on GitHub (Nov 10, 2025): Currently in the works! #347 Changing the resolution shouldn't influence the sensitivity, so this is a bug. Could you clarify what you mean by "client" and "decreasing resolution"?
Author
Owner

@CrypticEntity commented on GitHub (Nov 10, 2025):

By client I mean the device I'm controlling, by decreasing resolution I mean changing 1080p->720p

I did some testing and don't think its got to do with the resolution. When using the computer without lan-mouse, (in plasma/hyprland) changing resolution or screen scale changes the effective sensitivity. Eg. changing 1080p->720p and 100%->200% screen scaling massively increases the effective mouse/touchpad sensitivity.

Retesting using gentoo to control nixos, the sensitivity is seems pretty normal when I have similar screen scaling.

Since my nixos laptop is a macbook (asahi), my best guess at this point is just weird driver issues, since the only time I get this massive sensitivity using lan-mouse is when I use the macbook touchpad to control another computer.

The pull request for pre-processing would probably half fix this because since layer-shell does not respect host sensitivity options, I wouldn't be able to change it to suit both the external mouse and touchpad. Not sure what a better fix would be though as I don't understand the inner workings of layer-shell.

<!-- gh-comment-id:3511186364 --> @CrypticEntity commented on GitHub (Nov 10, 2025): By client I mean the device I'm controlling, by decreasing resolution I mean changing 1080p->720p I did some testing and don't think its got to do with the resolution. When using the computer without lan-mouse, (in plasma/hyprland) changing resolution or screen scale changes the effective sensitivity. Eg. changing 1080p->720p and 100%->200% screen scaling massively increases the effective mouse/touchpad sensitivity. Retesting using gentoo to control nixos, the sensitivity is seems pretty normal when I have similar screen scaling. Since my nixos laptop is a macbook (asahi), my best guess at this point is just weird driver issues, since the only time I get this massive sensitivity using lan-mouse is when I use the macbook touchpad to control another computer. The pull request for pre-processing would probably half fix this because since layer-shell does not respect host sensitivity options, I wouldn't be able to change it to suit both the external mouse and touchpad. Not sure what a better fix would be though as I don't understand the inner workings of layer-shell.
Author
Owner

@feschber commented on GitHub (Nov 10, 2025):

Yeah the effective sentitivity changing is expected because the mouse movement is usually done in pixels / logical pixels for scaled outputs. I'm also planning to add separate sensitivity settings for mouse and touchpads which should cover your usecase.

<!-- gh-comment-id:3511231780 --> @feschber commented on GitHub (Nov 10, 2025): Yeah the effective sentitivity changing is expected because the mouse movement is usually done in pixels / logical pixels for scaled outputs. I'm also planning to add separate sensitivity settings for mouse and touchpads which should cover your usecase.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#179
No description provided.