Forum / NoMachine for Linux / NoMachine lag when remote desktop locks after inactivity
- This topic has 3 replies, 2 voices, and was last updated 3 years ago by fr2.
-
AuthorPosts
-
December 2, 2021 at 10:25 #36523fr2Participant
Hi,
I use NoMachine 7.7.4_1 on Linux.
I take directly remote control of other Linux (Xubuntu 20.04).
It works fine.
But for example, if the remote session locks after inactivity or screensaver, after NoMachine is very slowly/time lag.
If I click or type on the keyboard there is a time lag of 2 seconds.
I have tried to restart the remote NX Service but it doesn’t change anything.
The only way to solve the problem I found is to reboot the remote computer.
Does exist a solution to resolve this without reboot?
With this old topic https://forums.nomachine.com/topic/nomachine-time-lag-after-remote-computer-inactivity-lock-screen I check the CPU usage and it’s not high.
Have you an idea ?December 2, 2021 at 20:08 #36539fra81ModeratorHi,
we got this problem before. We investigated and excluded it was a NoMachine issue, but it was rather an issue related to the RANDR X server extension. No Trouble Report exists for this problem and that was a mistake. This issue is annoying and a TR would have been useful as a reference for anyone reproducing it. When the lag occurs, do you experience the same lag on the local, physical machine?
From the investigations we found that applying a resize of the screen of the desktop, using the RANDR X extension, resolved the problem. I don’t remember if applying a resize with the same size the desktop already had made the trick, but you can try it yourself. To try this, open a terminal and use the xrandr command to list the available resolutions (‘xrandr -q’), then set one of them (‘xrandr -s WxH’). This should clear the lag. Another thing we could do is sending a fake input event at intervals to prevent the screen from going to sleep, but this can be obviously annoying, for the user, that would never get its screen into sleep.
BTW, are you using an NVidia graphic card? Are you using the NVidia proprietary graphic driver? Because also these two X driver’s bugs can apply:
https://askubuntu.com/questions/1053973/mouse-cursor-lags-behind-after-screen-lock-user-switching
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1757202
December 3, 2021 at 12:11 #36541fr2ParticipantThank you for the ideas.
An other solution have find is to open other session, restart NoMachine server, and logoff and logon on the first session who had problem before, and lag disappear.
December 3, 2021 at 12:30 #36542fr2Participant*not nvidia drivers
-
AuthorPosts
This topic was marked as solved, you can't post.