[GH-ISSUE #405] numpad switch doesnt work #213

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

Originally created by @xnicknamex on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/405

i have an arch and an windows machine. im using on both the currently latest build from commit 0ef8edb7b2.
only my windows laptop has a numpad. gonna report back as soon as i can test it also with linux numpad
when i enable the numpad on windows, i cant type the numbers on arch. instead im getting the secondary (or primary ig) functions like pos1, page up down and so on

Originally created by @xnicknamex on GitHub (Mar 28, 2026). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/405 i have an arch and an windows machine. im using on both the currently latest build from commit https://github.com/feschber/lan-mouse/commit/0ef8edb7b269974b918fd0c86ec4b785f36f0e8d. only my windows laptop has a numpad. gonna report back as soon as i can test it also with linux numpad when i enable the numpad on windows, i cant type the numbers on arch. instead im getting the secondary (or primary ig) functions like pos1, page up down and so on
Author
Owner

@xnicknamex commented on GitHub (Mar 29, 2026):

I put an external keyboard on my arch laptop. With arch as a host the numpad works and gets correctly passed to the windows laptop

<!-- gh-comment-id:4149801218 --> @xnicknamex commented on GitHub (Mar 29, 2026): I put an external keyboard on my arch laptop. With arch as a host the numpad works and gets correctly passed to the windows laptop
Author
Owner

@DrYak commented on GitHub (Apr 10, 2026):

Small quirks with how lan-mouse works (it simulates pushes of button, it doesn't carry the characters you type. Each machine is responsible for converting button pressed from the keyboard into characters on the screen):

  • Each machine has it's own NumLock status.

You don't get the number on arch, because you pressed "numLock" while on Windows:

  • Windows saw the button "NumLock" being pressed and it turned on the numpad and the light.
  • When you press the button in the middle of the pad they keyboard send "middle button" and Windows converts it into "5".
  • Arch didn't get anything, so it never turned on the numlock light and activate the pad.
  • When you press the left button, this button press is forwarded by lan-mouse over to the arch laptop and the laptop will convert it into a character, and as its numpad is not active, it will convert it into "left arrow" instead of "4").

So:

  • Move your pointer over to Arch, now press NumLock again:
  • The "numlock" light will turn on on your laptop and the numpad will provide numbers.

(BTW: some older (10-15 yo) laptops have a weird feature that if the NumLock light is turned on, their keyboard will return button pushes for the number instead of letter, as if you where holding "Fn" button)

<!-- gh-comment-id:4222504002 --> @DrYak commented on GitHub (Apr 10, 2026): Small quirks with how lan-mouse works (it simulates pushes of button, it doesn't carry the characters you type. Each machine is responsible for converting button pressed from the keyboard into characters on the screen): - Each machine has it's own NumLock status. You don't get the number on arch, because you pressed "numLock" while on Windows: - Windows saw the button "NumLock" being pressed and it turned on the numpad and the light. - When you press the button in the middle of the pad they keyboard send "middle button" and Windows converts it into "5". - Arch didn't get anything, so it never turned on the numlock light and activate the pad. - When you press the left button, this button press is forwarded by lan-mouse over to the arch laptop and the laptop will convert it into a character, and as its numpad is not active, it will convert it into "left arrow" instead of "4"). So: - Move your pointer over to Arch, now press NumLock again: - The "numlock" light will turn on on your laptop and the numpad will provide numbers. (BTW: some older (10-15 yo) laptops have a weird feature that if the NumLock light is turned on, their keyboard will return button pushes for the number instead of letter, as if you where holding "Fn" button)
Author
Owner

@xnicknamex commented on GitHub (Apr 10, 2026):

doesnt work for me. this is the output to the terminal when pressing the num switch on windows:

[2026-04-10T16:04:32Z WARN input_capture::windows::event_thread] failed to translate to windows scancode: 57413
[2026-04-10T16:04:33Z WARN input_capture::windows::event_thread] failed to translate to windows scancode: 57413

<!-- gh-comment-id:4225112374 --> @xnicknamex commented on GitHub (Apr 10, 2026): doesnt work for me. this is the output to the terminal when pressing the num switch on windows: [2026-04-10T16:04:32Z WARN input_capture::windows::event_thread] failed to translate to windows scancode: 57413 [2026-04-10T16:04:33Z WARN input_capture::windows::event_thread] failed to translate to windows scancode: 57413
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#213
No description provided.