[GH-ISSUE #315] Cant get back from linux #165

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

Originally created by @AgCaliva on GitHub (Aug 3, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/315

Its stupid to not allow to get back from linux because you are depending on InputCapture to be enabled, you can have a workaround setting a command line handler for returning back, and setting up an xbindkeys binding to call that one.
Anyway even if its really nice in performance, i cant use it because it "spams" some buttons like cntrl, tab, alt after being pressed once.
Im trying to control a linux pc from windows.

Originally created by @AgCaliva on GitHub (Aug 3, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/315 Its stupid to not allow to get back from linux because you are depending on InputCapture to be enabled, you can have a workaround setting a command line handler for returning back, and setting up an xbindkeys binding to call that one. Anyway even if its really nice in performance, i cant use it because it "spams" some buttons like cntrl, tab, alt after being pressed once. Im trying to control a linux pc from windows.
Author
Owner

@feschber commented on GitHub (Oct 7, 2025):

Could you share some additional information? Specifically which backends are in use?

You could provide this information by pasting the logs when running lan-mouse from the commandline. (Mainly from the linux side)

<!-- gh-comment-id:3378740318 --> @feschber commented on GitHub (Oct 7, 2025): Could you share some additional information? Specifically which backends are in use? You could provide this information by pasting the logs when running lan-mouse from the commandline. (Mainly from the linux side)
Author
Owner

@ToastedWookiee commented on GitHub (Dec 2, 2025):

I have this issue, going from hyprland (wayland) host to an Xfce (X11) client, using git build from the AUR on cachyOS. Once I move mouse to the client I cannot get mouse back to host until I kill lan-mouse on the client.

Edit: Or setting and using the release_bind to return.

Edit 2: When using the release_bind with the example given for ASDF, this will leave the client spamming the 2nd to last key pressed, so if I press d before the last key of f, it will leave leave the d key being spammed on the client, fixed when I press that key again.

Client (Xfce) logs:

❯ lan-mouse
[2025-12-02T21:08:02Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T21:08:02Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T21:08:02Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T21:08:02Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T21:08:02Z INFO  lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml"
[2025-12-02T21:08:02Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2025-12-02T21:08:02Z INFO  lan_mouse::emulation] creating input emulation ...
[2025-12-02T21:08:02Z WARN  input_emulation] wlroots backend: `Could not find wayland compositor`
[2025-12-02T21:08:02Z WARN  input_emulation] libei backend: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found`
[2025-12-02T21:08:02Z WARN  input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found``
[2025-12-02T21:08:02Z WARN  input_capture] layer-shell input capture backend unavailable: error creating layer-shell capture backend: `Could not find wayland compositor`
[2025-12-02T21:08:02Z WARN  input_capture] X11 input capture backend unavailable: error creating x11 capture backend: `X11 input capture is not yet implemented :(`
[2025-12-02T21:08:02Z WARN  lan_mouse::capture] input capture exited: error creating input-capture: `no backend available`
[2025-12-02T21:08:02Z WARN  input_emulation] xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found`
[2025-12-02T21:08:02Z INFO  input_emulation] using emulation backend: X11

(lan-mouse:30008): Gtk-WARNING **: 16:08:08.331: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap'

(lan-mouse:30008): Gtk-WARNING **: 16:08:15.481: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap'
[2025-12-02T21:08:20Z INFO  lan_mouse::listen] dtls client connected, ip: 192.168.10.67:39967
[2025-12-02T21:08:21Z INFO  lan_mouse::emulation] releasing capture: 192.168.10.67:39967 entered this device
		[2025-12-02T21:09:46Z INFO  lan_mouse::service] terminating service ...
[2025-12-02T21:09:46Z INFO  lan_mouse::listen] dtls client disconnected 192.168.10.67:39967
[2025-12-02T21:09:46Z INFO  lan_mouse] service exited!

Host (hyprland) logs:

❯ lan-mouse
[2025-12-02T20:58:15Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T20:58:15Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T20:58:15Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T20:58:15Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T20:58:15Z INFO  lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml"
[2025-12-02T20:58:15Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2025-12-02T20:58:15Z INFO  lan_mouse::emulation] creating input emulation ...
[2025-12-02T20:58:15Z INFO  input_emulation] using emulation backend: wlroots
[2025-12-02T20:58:15Z WARN  input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found``
[2025-12-02T20:58:15Z INFO  input_capture] using capture backend: layer-shell
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell] active outputs: 
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell] active outputs: 
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell] active outputs: 
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * DP-2 2560x1440 @pos (-2560, 0) (Dell Inc. DELL S2721DGF 1M3QT83 (DP-2))
[2025-12-02T21:08:07Z INFO  lan_mouse::service] activated client 0 (top)
[2025-12-02T21:08:07Z INFO  input_capture::layer_shell] adding capture for position top - using outputs: ["HDMI-A-2", "DP-1", "DP-2"]
[2025-12-02T21:08:08Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:08Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:08Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:08Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:08Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify`
[2025-12-02T21:08:15Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:15Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:15Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:15Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:15Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify`
[2025-12-02T21:08:16Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:16Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:16Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:16Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:16Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify`
[2025-12-02T21:08:20Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] client (0) connected @ 192.168.10.59:4242
[2025-12-02T21:08:21Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
[2025-12-02T21:09:46Z WARN  lan_mouse::connect] recv error
[2025-12-02T21:09:46Z WARN  lan_mouse::connect] client (0) @ 192.168.10.59:4242 connection closed
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] active connections: []
[2025-12-02T21:09:46Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:09:47Z WARN  lan_mouse::connect] 192.168.10.59:4242: send error `io error: Connection refused (os error 111)`, closing connection
[2025-12-02T21:09:47Z WARN  lan_mouse::connect] 192.168.10.59:4242 did not respond, closing connection
[2025-12-02T21:09:47Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:09:47Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)`
[2025-12-02T21:09:47Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:09:47Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:09:47Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:09:47Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:09:48Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)`
<!-- gh-comment-id:3604027389 --> @ToastedWookiee commented on GitHub (Dec 2, 2025): I have this issue, going from hyprland (wayland) host to an Xfce (X11) client, using git build from the AUR on cachyOS. Once I move mouse to the client I cannot get mouse back to host until I kill lan-mouse on the client. Edit: Or setting and using the `release_bind` to return. Edit 2: When using the `release_bind` with the example given for `ASDF`, this will leave the client spamming the 2nd to last key pressed, so if I press `d` before the last key of `f`, it will leave leave the `d` key being spammed on the client, fixed when I press that key again. Client (Xfce) logs: ``` ❯ lan-mouse [2025-12-02T21:08:02Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) [2025-12-02T21:08:02Z WARN lan_mouse::config] Continuing without config file ... [2025-12-02T21:08:02Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) [2025-12-02T21:08:02Z WARN lan_mouse::config] Continuing without config file ... [2025-12-02T21:08:02Z INFO lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml" [2025-12-02T21:08:02Z INFO lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse [2025-12-02T21:08:02Z INFO lan_mouse::emulation] creating input emulation ... [2025-12-02T21:08:02Z WARN input_emulation] wlroots backend: `Could not find wayland compositor` [2025-12-02T21:08:02Z WARN input_emulation] libei backend: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found` [2025-12-02T21:08:02Z WARN input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found`` [2025-12-02T21:08:02Z WARN input_capture] layer-shell input capture backend unavailable: error creating layer-shell capture backend: `Could not find wayland compositor` [2025-12-02T21:08:02Z WARN input_capture] X11 input capture backend unavailable: error creating x11 capture backend: `X11 input capture is not yet implemented :(` [2025-12-02T21:08:02Z WARN lan_mouse::capture] input capture exited: error creating input-capture: `no backend available` [2025-12-02T21:08:02Z WARN input_emulation] xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found` [2025-12-02T21:08:02Z INFO input_emulation] using emulation backend: X11 (lan-mouse:30008): Gtk-WARNING **: 16:08:08.331: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap' (lan-mouse:30008): Gtk-WARNING **: 16:08:15.481: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap' [2025-12-02T21:08:20Z INFO lan_mouse::listen] dtls client connected, ip: 192.168.10.67:39967 [2025-12-02T21:08:21Z INFO lan_mouse::emulation] releasing capture: 192.168.10.67:39967 entered this device [2025-12-02T21:09:46Z INFO lan_mouse::service] terminating service ... [2025-12-02T21:09:46Z INFO lan_mouse::listen] dtls client disconnected 192.168.10.67:39967 [2025-12-02T21:09:46Z INFO lan_mouse] service exited! ``` Host (hyprland) logs: ``` ❯ lan-mouse [2025-12-02T20:58:15Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) [2025-12-02T20:58:15Z WARN lan_mouse::config] Continuing without config file ... [2025-12-02T20:58:15Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) [2025-12-02T20:58:15Z WARN lan_mouse::config] Continuing without config file ... [2025-12-02T20:58:15Z INFO lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml" [2025-12-02T20:58:15Z INFO lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse [2025-12-02T20:58:15Z INFO lan_mouse::emulation] creating input emulation ... [2025-12-02T20:58:15Z INFO input_emulation] using emulation backend: wlroots [2025-12-02T20:58:15Z WARN input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found`` [2025-12-02T20:58:15Z INFO input_capture] using capture backend: layer-shell [2025-12-02T20:58:15Z INFO input_capture::layer_shell] active outputs: [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2)) [2025-12-02T20:58:15Z INFO input_capture::layer_shell] active outputs: [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2)) [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1)) [2025-12-02T20:58:15Z INFO input_capture::layer_shell] active outputs: [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2)) [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1)) [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * DP-2 2560x1440 @pos (-2560, 0) (Dell Inc. DELL S2721DGF 1M3QT83 (DP-2)) ``` ``` [2025-12-02T21:08:07Z INFO lan_mouse::service] activated client 0 (top) [2025-12-02T21:08:07Z INFO input_capture::layer_shell] adding capture for position top - using outputs: ["HDMI-A-2", "DP-1", "DP-2"] [2025-12-02T21:08:08Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:08:08Z INFO lan_mouse::connect] client 0 connecting ... [2025-12-02T21:08:08Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) [2025-12-02T21:08:08Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... [2025-12-02T21:08:08Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify` [2025-12-02T21:08:15Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:08:15Z INFO lan_mouse::connect] client 0 connecting ... [2025-12-02T21:08:15Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) [2025-12-02T21:08:15Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... [2025-12-02T21:08:15Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify` [2025-12-02T21:08:16Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:08:16Z INFO lan_mouse::connect] client 0 connecting ... [2025-12-02T21:08:16Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) [2025-12-02T21:08:16Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... [2025-12-02T21:08:16Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify` [2025-12-02T21:08:20Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:08:20Z INFO lan_mouse::connect] client 0 connecting ... [2025-12-02T21:08:20Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) [2025-12-02T21:08:20Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... [2025-12-02T21:08:20Z INFO lan_mouse::connect] client (0) connected @ 192.168.10.59:4242 [2025-12-02T21:08:21Z INFO lan_mouse::capture] client 0 acknowledged the connection! [2025-12-02T21:09:46Z WARN lan_mouse::connect] recv error [2025-12-02T21:09:46Z WARN lan_mouse::connect] client (0) @ 192.168.10.59:4242 connection closed [2025-12-02T21:09:46Z INFO lan_mouse::connect] active connections: [] [2025-12-02T21:09:46Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:09:46Z INFO lan_mouse::connect] client 0 connecting ... [2025-12-02T21:09:46Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) [2025-12-02T21:09:46Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... [2025-12-02T21:09:47Z WARN lan_mouse::connect] 192.168.10.59:4242: send error `io error: Connection refused (os error 111)`, closing connection [2025-12-02T21:09:47Z WARN lan_mouse::connect] 192.168.10.59:4242 did not respond, closing connection [2025-12-02T21:09:47Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:09:47Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)` [2025-12-02T21:09:47Z WARN lan_mouse::capture] releasing capture: not connected [2025-12-02T21:09:47Z INFO lan_mouse::connect] client 0 connecting ... [2025-12-02T21:09:47Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) [2025-12-02T21:09:47Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... [2025-12-02T21:09:48Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)` ```
Author
Owner

@feschber commented on GitHub (Dec 4, 2025):

I have this issue, going from hyprland (wayland) host to an Xfce (X11) client, using git build from the AUR on cachyOS. Once I move mouse to the client I cannot get mouse back to host until I kill lan-mouse on the client.

Edit: Or setting and using the release_bind to return.

Edit 2: When using the release_bind with the example given for ASDF, this will leave the client spamming the 2nd to last key pressed, so if I press d before the last key of f, it will leave leave the d key being spammed on the client, fixed when I press that key again.

Client (Xfce) logs:

❯ lan-mouse
[2025-12-02T21:08:02Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T21:08:02Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T21:08:02Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T21:08:02Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T21:08:02Z INFO  lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml"
[2025-12-02T21:08:02Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2025-12-02T21:08:02Z INFO  lan_mouse::emulation] creating input emulation ...
[2025-12-02T21:08:02Z WARN  input_emulation] wlroots backend: `Could not find wayland compositor`
[2025-12-02T21:08:02Z WARN  input_emulation] libei backend: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found`
[2025-12-02T21:08:02Z WARN  input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found``
[2025-12-02T21:08:02Z WARN  input_capture] layer-shell input capture backend unavailable: error creating layer-shell capture backend: `Could not find wayland compositor`
[2025-12-02T21:08:02Z WARN  input_capture] X11 input capture backend unavailable: error creating x11 capture backend: `X11 input capture is not yet implemented :(`
[2025-12-02T21:08:02Z WARN  lan_mouse::capture] input capture exited: error creating input-capture: `no backend available`
[2025-12-02T21:08:02Z WARN  input_emulation] xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found`
[2025-12-02T21:08:02Z INFO  input_emulation] using emulation backend: X11

(lan-mouse:30008): Gtk-WARNING **: 16:08:08.331: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap'

(lan-mouse:30008): Gtk-WARNING **: 16:08:15.481: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap'
[2025-12-02T21:08:20Z INFO  lan_mouse::listen] dtls client connected, ip: 192.168.10.67:39967
[2025-12-02T21:08:21Z INFO  lan_mouse::emulation] releasing capture: 192.168.10.67:39967 entered this device
		[2025-12-02T21:09:46Z INFO  lan_mouse::service] terminating service ...
[2025-12-02T21:09:46Z INFO  lan_mouse::listen] dtls client disconnected 192.168.10.67:39967
[2025-12-02T21:09:46Z INFO  lan_mouse] service exited!

Host (hyprland) logs:

❯ lan-mouse
[2025-12-02T20:58:15Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T20:58:15Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T20:58:15Z WARN  lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2)
[2025-12-02T20:58:15Z WARN  lan_mouse::config] Continuing without config file ...
[2025-12-02T20:58:15Z INFO  lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml"
[2025-12-02T20:58:15Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2025-12-02T20:58:15Z INFO  lan_mouse::emulation] creating input emulation ...
[2025-12-02T20:58:15Z INFO  input_emulation] using emulation backend: wlroots
[2025-12-02T20:58:15Z WARN  input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found``
[2025-12-02T20:58:15Z INFO  input_capture] using capture backend: layer-shell
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell] active outputs: 
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell] active outputs: 
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell] active outputs: 
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1))
[2025-12-02T20:58:15Z INFO  input_capture::layer_shell]  * DP-2 2560x1440 @pos (-2560, 0) (Dell Inc. DELL S2721DGF 1M3QT83 (DP-2))
[2025-12-02T21:08:07Z INFO  lan_mouse::service] activated client 0 (top)
[2025-12-02T21:08:07Z INFO  input_capture::layer_shell] adding capture for position top - using outputs: ["HDMI-A-2", "DP-1", "DP-2"]
[2025-12-02T21:08:08Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:08Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:08Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:08Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:08Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify`
[2025-12-02T21:08:15Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:15Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:15Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:15Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:15Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify`
[2025-12-02T21:08:16Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:16Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:16Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:16Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:16Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify`
[2025-12-02T21:08:20Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:08:20Z INFO  lan_mouse::connect] client (0) connected @ 192.168.10.59:4242
[2025-12-02T21:08:21Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
[2025-12-02T21:09:46Z WARN  lan_mouse::connect] recv error
[2025-12-02T21:09:46Z WARN  lan_mouse::connect] client (0) @ 192.168.10.59:4242 connection closed
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] active connections: []
[2025-12-02T21:09:46Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:09:46Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:09:47Z WARN  lan_mouse::connect] 192.168.10.59:4242: send error `io error: Connection refused (os error 111)`, closing connection
[2025-12-02T21:09:47Z WARN  lan_mouse::connect] 192.168.10.59:4242 did not respond, closing connection
[2025-12-02T21:09:47Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:09:47Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)`
[2025-12-02T21:09:47Z WARN  lan_mouse::capture] releasing capture: not connected
[2025-12-02T21:09:47Z INFO  lan_mouse::connect] client 0 connecting ...
[2025-12-02T21:09:47Z INFO  lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242])
[2025-12-02T21:09:47Z INFO  lan_mouse::connect] connecting to 192.168.10.59:4242 ...
[2025-12-02T21:09:48Z WARN  lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)`

This is expected, since there is no X11 Capture backend yet.

<!-- gh-comment-id:3611547908 --> @feschber commented on GitHub (Dec 4, 2025): > I have this issue, going from hyprland (wayland) host to an Xfce (X11) client, using git build from the AUR on cachyOS. Once I move mouse to the client I cannot get mouse back to host until I kill lan-mouse on the client. > > Edit: Or setting and using the `release_bind` to return. > > Edit 2: When using the `release_bind` with the example given for `ASDF`, this will leave the client spamming the 2nd to last key pressed, so if I press `d` before the last key of `f`, it will leave leave the `d` key being spammed on the client, fixed when I press that key again. > > Client (Xfce) logs: > > ``` > ❯ lan-mouse > [2025-12-02T21:08:02Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) > [2025-12-02T21:08:02Z WARN lan_mouse::config] Continuing without config file ... > [2025-12-02T21:08:02Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) > [2025-12-02T21:08:02Z WARN lan_mouse::config] Continuing without config file ... > [2025-12-02T21:08:02Z INFO lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml" > [2025-12-02T21:08:02Z INFO lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse > [2025-12-02T21:08:02Z INFO lan_mouse::emulation] creating input emulation ... > [2025-12-02T21:08:02Z WARN input_emulation] wlroots backend: `Could not find wayland compositor` > [2025-12-02T21:08:02Z WARN input_emulation] libei backend: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found` > [2025-12-02T21:08:02Z WARN input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found`` > [2025-12-02T21:08:02Z WARN input_capture] layer-shell input capture backend unavailable: error creating layer-shell capture backend: `Could not find wayland compositor` > [2025-12-02T21:08:02Z WARN input_capture] X11 input capture backend unavailable: error creating x11 capture backend: `X11 input capture is not yet implemented :(` > [2025-12-02T21:08:02Z WARN lan_mouse::capture] input capture exited: error creating input-capture: `no backend available` > [2025-12-02T21:08:02Z WARN input_emulation] xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.RemoteDesktop` was not found` > [2025-12-02T21:08:02Z INFO input_emulation] using emulation backend: X11 > > (lan-mouse:30008): Gtk-WARNING **: 16:08:08.331: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap' > > (lan-mouse:30008): Gtk-WARNING **: 16:08:15.481: Failed to set property GtkLabel.wrap to word-wrap: Could not parse boolean 'word-wrap' > [2025-12-02T21:08:20Z INFO lan_mouse::listen] dtls client connected, ip: 192.168.10.67:39967 > [2025-12-02T21:08:21Z INFO lan_mouse::emulation] releasing capture: 192.168.10.67:39967 entered this device > [2025-12-02T21:09:46Z INFO lan_mouse::service] terminating service ... > [2025-12-02T21:09:46Z INFO lan_mouse::listen] dtls client disconnected 192.168.10.67:39967 > [2025-12-02T21:09:46Z INFO lan_mouse] service exited! > ``` > > Host (hyprland) logs: > > ``` > ❯ lan-mouse > [2025-12-02T20:58:15Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) > [2025-12-02T20:58:15Z WARN lan_mouse::config] Continuing without config file ... > [2025-12-02T20:58:15Z WARN lan_mouse::config] "/home/scott/.config/lan-mouse/config.toml": No such file or directory (os error 2) > [2025-12-02T20:58:15Z WARN lan_mouse::config] Continuing without config file ... > [2025-12-02T20:58:15Z INFO lan_mouse] using config: "/home/scott/.config/lan-mouse/config.toml" > [2025-12-02T20:58:15Z INFO lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse > [2025-12-02T20:58:15Z INFO lan_mouse::emulation] creating input emulation ... > [2025-12-02T20:58:15Z INFO input_emulation] using emulation backend: wlroots > [2025-12-02T20:58:15Z WARN input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found`` > [2025-12-02T20:58:15Z INFO input_capture] using capture backend: layer-shell > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] active outputs: > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2)) > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] active outputs: > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2)) > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1)) > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] active outputs: > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * HDMI-A-2 1080x1920 @pos (2560, 0) (Ancor Communications Inc ASUS VS229 FCLMTF058719 (HDMI-A-2)) > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * DP-1 2560x1440 @pos (0, 0) (Dell Inc. DELL S2721DGF 5KGGV83 (DP-1)) > [2025-12-02T20:58:15Z INFO input_capture::layer_shell] * DP-2 2560x1440 @pos (-2560, 0) (Dell Inc. DELL S2721DGF 1M3QT83 (DP-2)) > ``` > > ``` > [2025-12-02T21:08:07Z INFO lan_mouse::service] activated client 0 (top) > [2025-12-02T21:08:07Z INFO input_capture::layer_shell] adding capture for position top - using outputs: ["HDMI-A-2", "DP-1", "DP-2"] > [2025-12-02T21:08:08Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:08:08Z INFO lan_mouse::connect] client 0 connecting ... > [2025-12-02T21:08:08Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) > [2025-12-02T21:08:08Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... > [2025-12-02T21:08:08Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify` > [2025-12-02T21:08:15Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:08:15Z INFO lan_mouse::connect] client 0 connecting ... > [2025-12-02T21:08:15Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) > [2025-12-02T21:08:15Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... > [2025-12-02T21:08:15Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify` > [2025-12-02T21:08:16Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:08:16Z INFO lan_mouse::connect] client 0 connecting ... > [2025-12-02T21:08:16Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) > [2025-12-02T21:08:16Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... > [2025-12-02T21:08:16Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `Alert is Fatal or Close Notify` > [2025-12-02T21:08:20Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:08:20Z INFO lan_mouse::connect] client 0 connecting ... > [2025-12-02T21:08:20Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) > [2025-12-02T21:08:20Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... > [2025-12-02T21:08:20Z INFO lan_mouse::connect] client (0) connected @ 192.168.10.59:4242 > [2025-12-02T21:08:21Z INFO lan_mouse::capture] client 0 acknowledged the connection! > [2025-12-02T21:09:46Z WARN lan_mouse::connect] recv error > [2025-12-02T21:09:46Z WARN lan_mouse::connect] client (0) @ 192.168.10.59:4242 connection closed > [2025-12-02T21:09:46Z INFO lan_mouse::connect] active connections: [] > [2025-12-02T21:09:46Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:09:46Z INFO lan_mouse::connect] client 0 connecting ... > [2025-12-02T21:09:46Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) > [2025-12-02T21:09:46Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... > [2025-12-02T21:09:47Z WARN lan_mouse::connect] 192.168.10.59:4242: send error `io error: Connection refused (os error 111)`, closing connection > [2025-12-02T21:09:47Z WARN lan_mouse::connect] 192.168.10.59:4242 did not respond, closing connection > [2025-12-02T21:09:47Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:09:47Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)` > [2025-12-02T21:09:47Z WARN lan_mouse::capture] releasing capture: not connected > [2025-12-02T21:09:47Z INFO lan_mouse::connect] client 0 connecting ... > [2025-12-02T21:09:47Z INFO lan_mouse::connect] client (0) connecting ... (ips: [192.168.10.59:4242]) > [2025-12-02T21:09:47Z INFO lan_mouse::connect] connecting to 192.168.10.59:4242 ... > [2025-12-02T21:09:48Z WARN lan_mouse::connect] failed to connect to 192.168.10.59:4242: `io error: Connection refused (os error 111)` > ``` This is expected, since there is no X11 Capture backend yet.
Author
Owner

@AgCaliva commented on GitHub (Dec 4, 2025):

Yes but i already told you a workaround using xbindkey

<!-- gh-comment-id:3613413335 --> @AgCaliva commented on GitHub (Dec 4, 2025): Yes but i already told you a workaround using xbindkey
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#165
No description provided.