-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
MacOS Client: Globe Modifier sometimes gets sent / stuck #199
Comments
Seems to be related to #198. To do this, run LAN_MOUSE_LOG_LEVEL=trace lan-mouse |
This doesn't only happen with the globe/fn key. It also does it with caps lock and probably other modifiers too. I'm using NixOS with Gnome as my server with an M1 Mac as the client. I've been seeing this issue a lot and it makes lan-mouse nearly unusable for me... I have to turn it off any time I'm doing a presentation or anything important because it happens so frequently. It seems to happen more often when typing quickly, though that could just be coincidence. |
I have a suspicion what is going on here, could someone check if #206 fixes this problem? Let me know, if you need help with testing that branch, you can download a debug build from https://github.com/feschber/lan-mouse/actions/runs/10999236745?pr=206 |
Running commit 196d0f on the client device I still get this issue... Running it on my Linux host as well made my mac client infinitely repeat some characters (though I'm fairly sure running it on linux didn't change anything. AFAIK changes to the mac input emulation only runs on the mac. I just hadn't run in to the issue before deploying the version to my linux server), and I couldn't make it stop even after closing lan-mouse. I had to forcibly restart the mac. 😅 I made another comment over here: #198 (comment) I wonder if that'd provide some more useful context? |
Reproducing this a second time, I can see that console on the client device gets repeatedly spammed with
And the key is never released, even after terminating lan-mouse. Pressing the key that's held down on the client device does nothing to release it either. |
I just realized this point was never clarified: Caps-lock, fn/globe and other modifiers are being sent and stuck even when we never press them |
@Jacoby6000 could you test the log-keypress branch This would tell me whether or not its a problem with the emulation or capture code. In any case, thank you for your detailed reports! |
Alright, here's a detailed session reproducing some funkiness Here are the exact keystrokes I entered
And here's the actual text output from those inputs:
The You can see the lan-mouse-linux-server.txt Before the copy/paste test, I did a long test typing normally without any modifiers besides shift, and it worked fine. So something strange is happening with cmd (Meta) inputs I think. In normal use I suspect I run in to the issue often because I (and probably most programmers) use cmd hotkeys for a lot of stuff. Cmd-tab always seems to work Okay initially, but sometimes might act a little funky. Copy and paste has never been consistent for me but works sometimes. |
okay this definitely seems to be an issue with the MacOS emulation code, presumably something to do with modifier keys. |
@feschber I saw that #206 got merged. Just a reminder that when I was testing on that branch, my mac got in to a state where it would hold down a key and I could not make it stop no matter what I did. I had to restart the machine to make the key stop repeating. Closing lan-mouse did not fix the issue. My previous comment about it may not have made that clear |
That's weird, it should functionally be identical. Could you test this on the latest commit? |
In my testing this resolves the issue at least with the command and option keys. I am however unsure about the globe modifier. From my testing on the input-capture side, the globe modifier does not get picked up at all, (there seems to be no keycode associated with it atm) so it technically should not even work at all right now. Would be great, if you could test this PR (#219) @Jacoby6000 @zhurai |
And in case you notice: I'm aware that caps lock does not work correctly. Will have to fix that as well |
I will merge this for now, as it definitely fixes some of the problems with modifier keys in my testing. |
Hello, I'm having pretty good luck with using lan-mouse between KDE (Wayland) and MacOS, however when I'm typing quickly, it sometimes it seems like the Globe modifier gets sent/stuck somehow. I have a regular US keyboard layout. I'm not sure what key is triggering that.
Server:
KDE Plasma: 6.1.5
KDE Framework: 6.5
Qt Version: 6.7.2
Kernel: 6.10.9-arch1-2
Graphics: Wayland
Client:
M3 MBP
The text was updated successfully, but these errors were encountered: