feschber / lan-mouse

mouse & keyboard sharing via LAN
GNU General Public License v3.0
2.67k stars 86 forks source link

KDE Plasma back to windows make mouse frozen #152

Closed Mzyhe3n6jmFqkYQyFKzFW3kGRGMok8xTYySN4Tm closed 5 months ago

Mzyhe3n6jmFqkYQyFKzFW3kGRGMok8xTYySN4Tm commented 5 months ago

After #134 Windows can control Linux normally. But when back to Windows, the mouse and input will be frozen. There's only I can do is force a computer to shut down.

My linux system is fedora 40 KDE Plasma 6.1.1 Wayland, windows version is 26120.961.

Windows logs:

[2024-07-02T10:05:19Z INFO  lan_mouse::config] using config: "C:\Users\user\AppData\Local\lan-mouse\config.toml"
[2024-07-02T10:05:19Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-07-02T10:05:19Z INFO  lan_mouse::config] using config: "C:\Users\user\AppData\Local\lan-mouse\config.toml"
[2024-07-02T10:05:19Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-07-02T10:05:19Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2024-07-02T10:05:19Z INFO  lan_mouse::server] running service
[2024-07-02T10:05:19Z INFO  lan_mouse::capture] using capture backend: windows
[2024-07-02T10:05:19Z INFO  lan_mouse::emulate] using emulation backend: windows
[2024-07-02T10:05:19Z INFO  lan_mouse::dns] resolving 192.168.8.37 ...
[2024-07-02T10:05:19Z INFO  lan_mouse::dns] 192.168.8.37: adding ip 192.168.8.37
[2024-07-02T10:05:20Z INFO  lan_mouse::capture::windows] [92, 92, 46, 92, 68, 73, 83, 80, 76, 65, 89, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

Linux logs:

[2024-07-02T10:06:41Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-07-02T10:06:41Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2024-07-02T10:06:41Z INFO  lan_mouse::server] running service
[2024-07-02T10:06:41Z WARN  lan_mouse::emulate] could not create input emulation backend: wlroots backend: wlr-virtual-pointer-unstable-v1 protocol not supported: the requested global was not found in the registry
[2024-07-02T10:06:41Z INFO  lan_mouse::dns] resolving 192.168.8.159 ...
[2024-07-02T10:06:41Z INFO  lan_mouse::dns] 192.168.8.159: adding ip 192.168.8.159
[2024-07-02T10:06:41Z INFO  lan_mouse::emulate::libei] requesting permission for input emulation
[2024-07-02T10:06:43Z INFO  lan_mouse::emulate] using emulation backend: libei
[2024-07-02T10:06:43Z INFO  lan_mouse::emulate::libei] libei version 1
[2024-07-02T10:06:44Z INFO  lan_mouse::capture] using capture backend: input-capture-portal
feschber commented 5 months ago

You mean the mouse is frozen in windows or in KDE? In case you mean KDE: See #140, you need to add

capture_backend = "LayerShell"

on the top of your lan-mouse config until that issue is resolved.

Mzyhe3n6jmFqkYQyFKzFW3kGRGMok8xTYySN4Tm commented 5 months ago

Thank you. Is working right now.