I started to notice lately that my Ubuntu 22.04.3 Gnome terminal feels kinda laggy. If I pay attention, it turns out that sometimes terminal is one redraw behind when I type. E.g. if I type in "bin" the terminal will show only "bi" until another redraw operation is triggered (for example, by pressing left, or printing another character). Then if I press "u" the terminal shows "bin", and "u" waits for the next key press.
This also happens with more complex operations. For example, pressing enter to run a command that does not print anything usually shows a new line for a new command, but in my case the new line will appear only when I start typing.
Important to note, it doesn't happen 100% of times, and usually doesn't happen in freshly open terminal window, only after a few commands are executed.
What I've tried to fix it:
- Installed all updates - no effect
- Checked if it is related to CPU overheating and throttling (since it only happens after I run something). CPU temperature doesn't have any effect.
- Checked if it is related to GPU being used - changed NVidia settings from
BalancetoPerformanceand back - no effect - Tried
terminator,xtermandIdeaterminal emulators instead of Gnome one. All work the same (with same lags). - Tried terminal without X11 (Alt+Ctrl+F3) - super-responsive, I will probably have to work there until I find solution for this issue
- Tried terminal-like applications (
neovide- GUI for neovim), no lags there
I'm completely lost and have no idea where to look for solution for this, but I really need one, as it becomes at times completely unbearable to work in the terminal like this. I feel it must be related to X11 and how it communicates with windows (since native terminal works fine), but don't know how to dig for that...