7

I updated my ubuntu 19.04 to 19.10. After updating there are plenty of lagging occurs in few seconds every time.

Issue is the cursor and keys freezes for a few seconds, especially when trying to switch windows.

I have hybrid graphics (intel and AMD). I try to play with those settings but no luck.

Here are the details of it:

  1. This is not a performance issue, system monitor is showing that resource usage (CPU, RAM, Drive) is under control.

  2. The issue gets worse with Ethernet and WiFi

  3. The issue gets worse with dual monitors

Please suggest some steps to find the root cause of this.

2 Answers2

4

As verified in comments the solution to lagging is to reboot into grub's Advanced Options for Ubuntu menu and select an older kernel.

Going forward try out each new kernel the system installs until one finally works properly. You can tell when a new kernel is being installed because update-initramfs and update-grub run with very unique output. Additionally you will see the new kernels on the grub Advanced Options for Ubuntu menu.

Make sure you do not autoremove the kernel that is working for you now. The only way you can autoremove it is to boot into a newer kernel and type:

sudo apt autoremove

So don't do that!

  • I found that bumping down to the previous kernel (for xubuntu was 5.3.0-23 bumped down to 5.0.0-36) and trying to change video driver (nvidia 430 to 435 to X) fixed this and it's gone even after going back to 5.3 and nvidia 435 BUT the process has deleted all my display settings so my ultrawide is currently 1024x768. So I'll now go through the laborious process of fixing this. Anecdotally lnux kernel 5.4 should be released very soon (end Nov 2019) which will hopefully fix this issue. – dez93_2000 Nov 23 '19 at 19:26
  • @dez93_2000 So going to an older kernel and then reinstalling your nvidia driver fixed it for you? – Dzinic Nov 26 '19 at 17:03
  • Ah I thought it did but now I'm not sure. I've managed to repair the video driver in the newer kernel (it broke in both older then newer) so the new kernel is now working video driver but kernel stutter; old kernel is bad video but no stutter. With me being out of the house & the US holidays approaching I'm hoping there's a new kernel push which magically fixes everything for me! – dez93_2000 Nov 27 '19 at 17:48
  • Edit: 5.3.0.23 bad, 5.3.0.24 now newest still bad, 5.4 won't be included in packages until 20.04 in April. Looks like my 5.0.0.36 may have been autocleaned out as it only keeps 1 older version so I might have to put up with this til April. BOO. – dez93_2000 Dec 10 '19 at 01:07
  • Further annoyance for anyone following this thread: I finally got around to trying to configure the xrandr output using the xorg nouveau driver and the only option is 1024*768 which can't be changed, see "xwindows -on strike-"'s answer at the bottom of https://unix.stackexchange.com/questions/176452/how-to-fix-error-xrandr-cannot-find-output-vga1 – dez93_2000 Jan 11 '20 at 17:56
  • Upgraded kernel from 5.3.0.42 to 5.5.11, no improvement – dez93_2000 Mar 21 '20 at 23:28
  • Updated kernel to 5.5.11, no improvment. change swappiness & bfq, no improvement. can't use nouveau driver other than 1024*768. nvidia-driver-440 is latest. I'm out of ideas & xubuntu20.04 not here til end April. – dez93_2000 Mar 22 '20 at 00:18
  • 1
    @dez93_2000 It is better to post a new question with all your system details and brief history of how the problem developed. – WinEunuuchs2Unix Mar 22 '20 at 12:29
  • cheers, done here https://askubuntu.com/questions/1219696/video-lag-after-updating-to-19-10-from-19-04 – dez93_2000 Mar 24 '20 at 03:45
1

The problem is apparently caused by the swapping and disk writes in general. I found my solution by manually downgrading to kernel 5.2.21 from https://kernel.ubuntu.com/~kernel-ppa/mainline/

I'm now running it second day without problems. Micro freezes are gone and system is generally more responsive.

  • how do I downgrade my version? – Chiptus Apr 24 '20 at 22:10
  • I simply downloaded kernel builds relevant for me (amd64, generic) frorm here:

    https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.2.21/

    A only need headers, image and module for amd64, generic.

    Then I installed these deb files one by one as follows

    sudo dpkg -f linux-image-unsigned-5.2.21-050221-generic_5.2.21-050221.201910111731_amd64.deb etc. etc.

    Finally I restart system and select this kernel to be loaded in Grub menu. Of course you need to do this on every restart.

    – user1046748 May 03 '20 at 12:56