48

Since I upgraded to Ubuntu 19.10 my system freezes/lags regularly. The mouse, keyboard and screen are completely stuck, after a few seconds it "unfreezes" again. Sometimes it repeats the input I did. For example if I type "F" in a text field it shows "FFFFFFFF" afterwards.

I seems like a lag is triggered every time the system has to read and write a larger amount of data (e.g. start new program, load new firefox tab).

I completely reinstalled Ubuntu 19.10 again on my machine but it is still the same. It runs on a Dell XPS 13.

The same problem is described but not answered in this posts:

Ubuntu 19.10 cursor freezes randomly

Mouse and Keyboard Freeze

Because it was asked in the other posts here are may gnome extensions: enter image description here

EDIT: Thanks for the comment!

  1. I do not use a PS/2 mouse or keyboard.
  2. The model: Dell XPS 13 9360 (2016 version). On the label it says: Reg Mode: P54G Reg Type No: P54G002

EDIT2: Turning off all extension does unfortunately not solve the problem.

Edit 3: Here is what it looks like in the system monitor when I reload a website. The Network manager

Edit 4: Thank you for your comments! Before I reinstalled Ubuntu 19.10 my swap had 8 GB.

enter image description here

Edit: 6 Increasing the swap to 8GB (I have 8GB of RAM) and setting the swappines to 10 seems to have done something. I will have a further look into it.

Edit: 7 My Bios version is 2.10.0. I'll check of updates.

The Disk utility does not show the SMART data for my ssd.

Philipp
  • 777
  • 1
  • Do you use a PS/2 mouse or keyboard? 2) Please flip the laptop over and look for the serial number sticker. There's a model number there. What is that model number? There are thirteen different XPS 13 models https://www.dell.com/support/search/us/en/19#q=XPS%2013&sort=relevancy&f:langFacet=[en] made by Dell, knowing the right one could help... Please click [edit] and put answers to 1 and 2 in your question. Please do not use Add Comment; use [edit] instead.
  • – K7AAY Nov 01 '19 at 15:28
  • 1
    One thing you could try is to disable all GNOME extensions, see https://askubuntu.com/q/1029376/874649 -- does the problem still appear when they are disabled? – Elias Nov 01 '19 at 15:42
  • 1
    Edit your question and show me free -h and cat /etc/fstab and sudo sysctl vm.swappiness. Your swap is too small. Start comments to me with @heynnema or I'll probably miss them. – heynnema Nov 01 '19 at 16:09
  • 1
    Testing with all extensions disabled indeed is one of the first things to do. Also, run "top" to see which processes are loading the system. Swap indeed is small, but will not be the cause why the system with 8 GB is lagging. – vanadium Nov 01 '19 at 19:39
  • 1
    Setting vm.swappiness=10 is wrong for 8G RAM and 1-8G swap. Set swap to 4G, and try vm.swappiness=70 or 80. Check BIOS version with sudo dmidecode -s bios-version and then check dell.com for an updated BIOS. Report back. – heynnema Nov 02 '19 at 14:02
  • 2
    @vanadium re: "It seems like a lag is triggered every time the system has to read and write a larger amount of data"... is a clue that ram vs swap vs vm.swappiness may be a problem. There may also be a HDD problem. – heynnema Nov 02 '19 at 14:08
  • 1
    Edit your question and show me a screenshot(s) of the Disks app, showing the SMART Data (may take two screenshots to show all of the data. I want to eliminate a possible HDD problem. – heynnema Nov 02 '19 at 14:09
  • 2
    I have the same issue on a dell desktop. with Ubuntu 19.04 there were no probs. It seems to be triggered when I focus on a window containing not trivial js code eg a chrome window showing a js heavy site, the slack application. I only have dastodock extension enabled. – Nikos Tsagkas Nov 02 '19 at 22:18
  • @NikosTsagkas please start a new question, and we can try and help you there. – heynnema Nov 03 '19 at 02:34
  • Your list of two similar unanswered questions as of November 1 has grown considerably now.... – WinEunuuchs2Unix Nov 20 '19 at 03:03
  • @WinEunuuchs2Unix who are you addressing in your last comment? It's unclear. – heynnema Nov 21 '19 at 01:30
  • @heynnema That comment was written before I VTC the question you answered :) – WinEunuuchs2Unix Nov 21 '19 at 01:56
  • @WinEunuuchs2Unix you still lost me. Please explain further. – heynnema Nov 21 '19 at 03:51
  • @heynnema Sorry I was reading too much into your question. My comment was addressed to the OP: Phillipp. Had I been talking to you I would have put @ Yourname in the comment. When responding under the answer or question it is not necessary which is why it was omitted. Sorry for the confusion. – WinEunuuchs2Unix Nov 21 '19 at 03:56
  • @WinEunuuchs2Unix What exactly do you man? – Philipp Nov 21 '19 at 08:35
  • 1
    @Philipp When you said: *"The same problem is described but not answered in this posts:

    Ubuntu 19.10 cursor freezes randomly

    Mouse and Keyboard Freeze "* - this list has grown to 5 at least by now.

    – WinEunuuchs2Unix Nov 21 '19 at 11:24
  • @WinEunuuchs2Unix Thank you for the clarification. Feel free to add the other posts to my question. – Philipp Nov 21 '19 at 11:27
  • 1
    @Philipp What I have been doing is voting to close two new ones to your question. There is also one I answered and was accepted: Lagging after update to 19.10 from 19.04 – WinEunuuchs2Unix Nov 21 '19 at 11:34
  • 1
    problem solved by downgrade kernel to 5.2.21-050221-generic – reza Dec 08 '19 at 22:03
  • I have upgraded to 5.4.2 but lagging is still there – Future King Dec 14 '19 at 21:51
  • Today, the update of Linux kernel 5.3 has been released. I noticed in update logs that the problem with armv8 and i965 has been solved. I hope no more lags. – Ján Яabčan Jan 28 '20 at 09:25
  • That's just Ubuntu for ya. 20.04 freezes all 8 CPU cores on my 16GB RAM when I resize an image in Squoosh in Chromium a few times. – Dan Dascalescu Jun 08 '20 at 07:00