-
Notifications
You must be signed in to change notification settings - Fork 51
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
Slow cursor on reMarkable 2 on Ubuntu 18.04 #47
Comments
The same happens to me. Moreover, while your fix helps a bit it is still far from removing all the lag. |
I made a stripped down version of the script here which should aid in debugging this problem. |
I have the |
Sure. Just post your method and I can compare it to rm1+Debian where I
don't get any lag.
|
I ran this on the > python3 -m cProfile -s tottime remouse.py $(cat) > profile and here is the first 30 or so lines of the output:
I'm beginning to think that some part of the script is especially CPU intensive on my computer because the lag is drastically reduced when remouse is the only program running. I also see huge spikes in CPU usage when I move my marker (although I am using an older laptop, so it's not a particularly capable chip). |
@jonahweissman Can you try out the
Also try to be drawing circles before you start the program until you kill it so the profiler doesn't get stuck waiting for more events. |
I made a bit of progress debugging this problem on Windows: paramiko/paramiko#1801 It may be related. |
Here's my output from
I made sure to continuously draw circles the entire time
I think this could explain my experience. If the big dumps of input take longer to consume than the time spent waiting for them, then the cursor would get farther and farther behind the movements of the marker. |
I tried the rm2 branch with the same hardware but with a different Linux distro installed, and I still had lag. I think it might just be that the processor is too old. |
Using pyinstrument I noticed that remouse is spending a lot of time in
I can improve performance significantly by setting
|
Are these issues still present in |
I'm no longer using remarkable_mouse (just don't have a need for it anymore), so I can't say |
I tried remarkable-mouse now on Ubuntu 20.04. I also experienced the lagging and catching up. the ssh connection was over usb, not wifi. |
This issue is still valid on Ubuntu 24.01 over usb, both when using the default pip release and the rm2 branch. |
I've merged in the suggested changes from @nils-werner. I don't have an rM2 so I can't validate whether it fixes the issue or not. Also the rm2 branch was merged in years ago and there is no reason to use it. I've deleted it. |
I'm using the rm2 branch for my reMarkable2, and I seem to be experiencing some sort of lag. My cursor does not move as quickly as my marker does. As a result if I move my marker for a long time, my cursor will keep moving even after my marker has stopped. I tried the script from #37 (comment), and it seemed normal,
total = 2.32
. My suspicion is that processing the input from the reMarkable happens slower than real time.As a work around, I changed the script to update the cursor less often and the lag disappeared, but the mouse movement got more choppy. Here's the change I made.
I have previously used
remarkable_mouse
on my same computer with a reMarkable 1 with no lag.There's no need to make any changes if I'm the only one having this problem; I'm mostly posting this to see if others are dealing with the same thing.
The text was updated successfully, but these errors were encountered: