[GH-ISSUE #220] "device not responding" when typing (keyboard) from Linux to MacOS #103

Closed
opened 2026-05-05 22:09:32 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @PedroHLC on GitHub (Oct 31, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/220

On 7496015d8d, when typing from Linux/wlroots (capture) to MacOS (emulates), if I enter two keys quickly (same second) some random key gets stuck instead, output on MacOS side starts repeating the following:

WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `No route to host (os error 65)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`
WARN  lan_mouse::server::ping_task] device not responding, releasing keys!
WARN  lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)`

It only stops when I kill -KILL it, Ctrl+C shows INFO lan_mouse::server] terminating service but never exists.

The same does not happen if I invert the actors (MacOS captures, wlroots emulates), and I can keep the connection going for hours if I type very slowly.

I always need to restart it on the MacOS side.


On top of that, good work overall with this app, been using it sporadically since February!

NOTE: With the macOS, I only tested this commit and commit 9248007986. When I tried 9248007 in the macOS, the other machines couldn't connect to it at all, and I skipped directly to the last commit, this last commit connects, but I need to ssh machine -- killall -KILL lan-mouse when I forget about this issue.

Originally created by @PedroHLC on GitHub (Oct 31, 2024). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/220 On 7496015d8d36fe58cc2f915991e90d1acc1aa9cd, when typing from Linux/wlroots (capture) to MacOS (emulates), if I enter two keys quickly (same second) some random key gets stuck instead, output on MacOS side starts repeating the following: ``` WARN lan_mouse::server::ping_task] client not responding, releasing pointer! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `No route to host (os error 65)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` WARN lan_mouse::server::ping_task] device not responding, releasing keys! WARN lan_mouse::server::network_task] udp send failed: network error: `Host is down (os error 64)` ``` It only stops when I `kill -KILL` it, `Ctrl+C` shows `INFO lan_mouse::server] terminating service` but never exists. The same does not happen if I invert the actors (MacOS captures, wlroots emulates), and I can keep the connection going for hours if I type very slowly. I always need to restart it on the MacOS side. --- On top of that, good work overall with this app, been using it sporadically since February! NOTE: With the macOS, I only tested this commit and commit 9248007986ade8a0690ce37bccbf463927d2df6b. When I tried `9248007` in the macOS, the other machines couldn't connect to it at all, and I skipped directly to the last commit, this last commit connects, but I need to `ssh machine -- killall -KILL lan-mouse` when I forget about this issue.
Author
Owner

@PedroHLC commented on GitHub (Nov 11, 2024):

I'm unable to reproduce this in the latest commit.

<!-- gh-comment-id:2468214013 --> @PedroHLC commented on GitHub (Nov 11, 2024): I'm unable to reproduce this in the latest commit.
Author
Owner

@feschber commented on GitHub (Nov 11, 2024):

Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;)

<!-- gh-comment-id:2468222044 --> @feschber commented on GitHub (Nov 11, 2024): Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;)
Author
Owner

@mechanicpanic commented on GitHub (Nov 26, 2024):

I have the same issue right now (installed 0.10 with cargo on both sides), Hyprland -> MacOS. Anything I could try? Because otherwise I love the app, using two machines is super useful for me - thanks!

<!-- gh-comment-id:2500507228 --> @mechanicpanic commented on GitHub (Nov 26, 2024): I have the same issue right now (installed 0.10 with cargo on both sides), Hyprland -> MacOS. Anything I could try? Because otherwise I love the app, using two machines is super useful for me - thanks!
Author
Owner

@grodius commented on GitHub (Mar 19, 2025):

Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;)

I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse

<!-- gh-comment-id:2737473083 --> @grodius commented on GitHub (Mar 19, 2025): > Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;) I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse
Author
Owner

@feschber commented on GitHub (Mar 19, 2025):

Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;)

I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse

It would be very helpful, if you could provide the logs from when this happens

<!-- gh-comment-id:2738475271 --> @feschber commented on GitHub (Mar 19, 2025): > > Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;) > > I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse It would be very helpful, if you could provide the logs from when this happens
Author
Owner

@grodius commented on GitHub (Mar 19, 2025):

Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;)

I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse

It would be very helpful, if you could provide the logs from when this happens

`

lan-mouse-error.log

`

sorry about that - here you go

<!-- gh-comment-id:2738560986 --> @grodius commented on GitHub (Mar 19, 2025): > > > Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;) > > > > > > I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse > > It would be very helpful, if you could provide the logs from when this happens ` [lan-mouse-error.log](https://github.com/user-attachments/files/19354809/lan-mouse-error.log) ` sorry about that - here you go
Author
Owner

@grodius commented on GitHub (Mar 24, 2025):

Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;)

I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse

It would be very helpful, if you could provide the logs from when this happens

something I notice, is i've never seen anything involving fingerprint in either client's UI, should I?

and also - are both machines supposed to be "clients"?

<!-- gh-comment-id:2748595131 --> @grodius commented on GitHub (Mar 24, 2025): > > > Sorry I did not respond earlier. The whole response tracking / ping logic has changed with the encryption stuff, hopefully it's working better now ;) > > > > > > I am having an issue where the ping_task is failing, using hyprland -> macos like the above user. It works perfectly until the task fails then I have to kill the process on the mac to release the server's keyboard/mouse > > It would be very helpful, if you could provide the logs from when this happens something I notice, is i've never seen anything involving fingerprint in either client's UI, should I? and also - are both machines supposed to be "clients"?
Author
Owner

@feschber commented on GitHub (Mar 24, 2025):

The fingerprint UI is going to come with version 0.11 soon™. Technically both machines are servers in <= 0.10 but this is now also going to change in that the controlling machine is now a client.

<!-- gh-comment-id:2748629944 --> @feschber commented on GitHub (Mar 24, 2025): The fingerprint UI is going to come with version 0.11 soon™. Technically both machines are servers in <= 0.10 but this is now also going to change in that the controlling machine is now a client.
Author
Owner

@grodius commented on GitHub (Mar 24, 2025):

The fingerprint UI is going to come with version 0.11 soon™. Technically both machines are servers in <= 0.10 but this is now also going to change in that the controlling machine is now a client.

ok.. thought maybe a misconfig of both declaring each other as "clients" could be forcing some loop and breaking the ping...

i hate to push a generous and talented dev into user support... but any idea what is going on with my set up? I posted the trace above too big to paste.

my configs:

hyprland machine (keyboard/mouse)

release_bind = [ "KeyA", "KeyS", "KeyD", "KeyF" ]

port = 4242

frontend = "gtk"

[right]
hostname = "mbp.lan"
activate_on_startup = true
ips = ["192.168.8.186", "192.168.8.187"]

mac ("client")

port = 4242
frontend = "cli"

clients
position = "left"
hostname = "gn0.lan"
ips = ["192.168.9.96"]
activate_on_startup = true

edit for formatting

<!-- gh-comment-id:2749316121 --> @grodius commented on GitHub (Mar 24, 2025): > The fingerprint UI is going to come with version 0.11 soon™. Technically both machines are servers in <= 0.10 but this is now also going to change in that the controlling machine is now a client. ok.. thought maybe a misconfig of both declaring each other as "clients" could be forcing some loop and breaking the ping... i hate to push a generous and talented dev into user support... but any idea what is going on with my set up? I posted the trace above too big to paste. my configs: **hyprland machine (keyboard/mouse)** > release_bind = [ "KeyA", "KeyS", "KeyD", "KeyF" ] > > > port = 4242 > > frontend = "gtk" > > [right] > hostname = "mbp.lan" > activate_on_startup = true > ips = ["192.168.8.186", "192.168.8.187"] > > **mac ("client")** > port = 4242 > frontend = "cli" > > > [[clients]] > position = "left" > hostname = "gn0.lan" > ips = ["192.168.9.96"] > activate_on_startup = true edit for formatting
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#103
No description provided.