Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing make disappear mouse pointer and make unusable the keyboard + have to hard reset pc #165

Closed
dontlookherepls opened this issue Jul 30, 2024 · 17 comments

Comments

@dontlookherepls
Copy link

Happening between two devices running the latest plasma installment

More precisely:
On my host machine while i put the credential of my client machine logs looks positive, but once i hit, with my mouse pointer, my screen edge suddenly nothing works anymore and I have to hard reset my PC.

[2024-07-30T21:19:00Z WARN  lan_mouse::config] Continuing without config file ...
[2024-07-30T21:19:00Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-07-30T21:19:00Z INFO  lan_mouse] Press Ctrl+Alt+Shift+Super to release the mouse
[2024-07-30T21:19:00Z INFO  lan_mouse::server] running service
[2024-07-30T21:19:00Z INFO  lan_mouse::emulate] wayland backend not available: the requested global was not found in the registry
[2024-07-30T21:19:00Z INFO  lan_mouse::emulate::libei] requesting permission for input emulation

(lan-mouse:2192): Adwaita-WARNING **: 23:19:00.554: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
[2024-07-30T21:19:03Z INFO  lan_mouse::emulate] using libei input emulation
[2024-07-30T21:19:03Z INFO  lan_mouse::emulate::libei] libei version 1
[2024-07-30T21:19:03Z INFO  lan_mouse::capture] using libei input capture
[2024-07-30T21:19:05Z INFO  lan_mouse::server::frontend_task] added client 0
[2024-07-30T21:19:22Z INFO  lan_mouse::dns] resolving thinkpad ...
[2024-07-30T21:19:22Z INFO  lan_mouse::dns] thinkpad: adding ip 192.168.1.115
[2024-07-30T21:19:22Z INFO  lan_mouse::dns] resolving thinkpad ...
[2024-07-30T21:19:22Z INFO  lan_mouse::dns] thinkpad: adding ip 192.168.1.115
[2024-07-30T21:19:22Z INFO  lan_mouse::dns] resolving thinkpad ...
[2024-07-30T21:19:22Z INFO  lan_mouse::dns] thinkpad: adding ip 192.168.1.115
[2024-07-30T21:19:27Z INFO  lan_mouse::dns] resolving thinkpad ...
[2024-07-30T21:19:27Z INFO  lan_mouse::dns] thinkpad: adding ip 192.168.1.115
@feschber
Copy link
Owner

Are you using the latest version of lan-mouse?

@dontlookherepls
Copy link
Author

dontlookherepls commented Jul 30, 2024

Ok the officials arch repos installed lan-mouse 0.8 something... (even if I updated the whole system 10 min prior to installing the program). Now that problem doesn't persist anymore but I can't manage to make it work anyway.


[2024-07-30T21:35:52Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:35:53Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:35:53Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!

Edit 2
Maybe this gives more insight on the issue

[2024-07-30T21:33:54Z WARN input_emulation] wlroots backend wayland protocol "wlr-virtual-pointer-unstable-v1" not supported: the requested global was not found in the registry

@feschber
Copy link
Owner

feschber commented Jul 30, 2024

Yes, It was just updated today. You can use 0.9.1 from lan-mouse-bin / lan-mouse-git on the AUR until it lands in the official repos.

As for "client not responding, releasing pointer": Make sure to configure both sides i.e. add + activate Device A on device B and vice versa.

This behaviour is confusing and I'm planning to change it (#164)

  1. no thats just a warning (and maybe it should not be a warning)

@dontlookherepls
Copy link
Author

Thank you now I'm going to it.

@feschber
Copy link
Owner

https://archlinux.org/packages/extra/x86_64/lan-mouse/

Actually, it seems like 0.9.1 already landed in the repos. This should include the fix for plasma 6.1

@dontlookherepls
Copy link
Author

https://archlinux.org/packages/extra/x86_64/lan-mouse/

Actually, it seems like 0.9.1 already landed in the repos. This should include the fix for plasma 6.1

yep already installed on both devices but the issue persist.

@feschber
Copy link
Owner

Thank you now I'm going to it.

I'm not quite sure what you mean? So it still does not work?
Just to be sure: Could you run killall lan-mouse and run it again on both devices to make sure the new version is actually running?

@dontlookherepls
Copy link
Author

Yeah sorry it's late so my brain read something completely different.

I've performed the command but still:


[2024-07-30T21:47:47Z INFO  input_emulation] using emulation backend: libei
[2024-07-30T21:47:47Z INFO  input_capture] using capture backend: input-capture-portal
[2024-07-30T21:47:47Z INFO  lan_mouse::server::capture_task] []
[2024-07-30T21:48:11Z INFO  lan_mouse::server] added client 0
[2024-07-30T21:48:21Z INFO  lan_mouse::dns] resolving (0) `thinkpad` ...
[2024-07-30T21:48:21Z INFO  lan_mouse::dns] thinkpad: adding ip 192.168.1.115
[2024-07-30T21:48:21Z INFO  lan_mouse::dns] resolving (0) `thinkpad` ...
[2024-07-30T21:48:21Z INFO  lan_mouse::dns] thinkpad: adding ip 192.168.1.115
[2024-07-30T21:48:25Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:25Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:26Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:26Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:44Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.1.127:4242
[2024-07-30T21:48:44Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:45Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:45Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-07-30T21:48:46Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!

Should I unistall libei ?

@feschber
Copy link
Owner

No everything is working fine on this end.
Could you show a log from the other device?

@dontlookherepls
Copy link
Author

Yes give me a couple of minutes for logging with github into the other pc

@feschber
Copy link
Owner

hold on: I think there is something wrong with your dns.
DNS says thinkpad has ip 192.168.1.115 but the events are coming from 192.168.1.127

@dontlookherepls
Copy link
Author

YES I've noticed right now, turns out that my thinkpad was using my wireless connection

@feschber
Copy link
Owner

You could manually configure the ips with a config like this:

[left]
hostname = "thinkpad"
ips = ["192.168.1.127", "192.168.1.115"]

@dontlookherepls
Copy link
Author

Do I have to make a folder in .config/ ?

@feschber
Copy link
Owner

yeah

mkdir ~/.config/lan-mouse/

@feschber
Copy link
Owner

or fix your dns ^^

@dontlookherepls
Copy link
Author

dontlookherepls commented Jul 30, 2024

Now everything works perfectly. I'll fix asap my dns 😅

PS: Thanks for your time and help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants