Ubuntu 17.10 tons of lags with mouse and window glitch

21,647

Solution 1

Unfortunately, I don't think this is a Wayland only issue. After I upgraded from 17.04, I've found lag/sluggish response with gnome-shell under both Wayland and Xorg. It does seem to be a little worse under Wayland.

In my case, after a reboot, all is good for a while, but things slowly degrade and after a few hours, switching between virtual desktops or moving windows gets slower and slower. When the lock screen kicks in, after hitting a key to bring up the password prompt, there is a definite lag i.e. on a couple of occasions 15 seconds before the lockscreen wallpaper is cleared and the password prompt appears.

This is on a high spec machine i.e. 12 core i7 3Ghz with 32 Gb memory. I'm using the default oss graphics drivers (I have a nvidia gforce card, but not using the nvidia driver as it is not compatible with wayland).

I did not have these problems with 17.04 and the gnome ubuntu remix.

I've now installed MATE and seeing if that works better as the gnome-shell gets sluggish enough to be almost unusable unless I reboot every few hours.

Using journalctl to look at the logs, I see a lot of gnome-shell related errors and warnings.

All pretty disappointing. I was also unlucky enough to run into the fwupd bug related to some Logitech keyboards, so had to change my keyboard to even get 17.10 to work!

Solution 2

GNOME has a history of being incredibly laggy. I have experienced the problems you've described on Ubuntu 17.10 and could not find a fix. I would suggest either downgrading GNOME to version 3.24 or simply downgrading Ubuntu to version 17.04.

Solution 3

I found after first mouse click on the login screen, my USB mouse cursor started lagging and behaving somewhat erratically. Trackpad input works normally.. I tried the above suggestions to no avail. On another forum I saw irqpoll kernel parameter as a possible fix. It worked for me - now mouse works fine under default Ubuntu, Unity and Xfce.

Edit /etc/default/grub :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash irqpoll"

( I normally say noquiet nosplash - I want to see the boot messages! )

Hardware:

  • McBook Pro,5
  • NVidia GeForce 9400M (nvidia 340 driver)
  • USB Mouse

Solution 4

I have gnome extensions installed and system monitor on.

This has caused my lagging. The only fix was to change the Refresh Time in system-monitor to 50.

Share:
21,647

Related videos on Youtube

vinid223
Author by

vinid223

I love programming and I'm working in web development. Full time student in Computer Science.

Updated on September 18, 2022

Comments

  • vinid223
    vinid223 almost 2 years

    I've installed Ubuntu 17.10 on my laptop without any issue, but when I am using the system everything lags and is not fluid. The mouse glitches (I am using a physical mouse and a track-pad), like it jumps, and is not fluid.

    It is the same thing with the windows when I drag them or simply open any apps. The same thing is happening when I open the application page of Gnome.

    I did try to change from Wayland to Xorg from the lock screen and by doing this the mouse is now working without any issue but I still have some glitch and fluidity problem everywhere.

    Is this a problem with my computer or Ubuntu has an issue of some sort with Gnome on some devices and what can I do to fix this?

    My laptop is an Asus Q501LA. I don't have a dedicated graphics card.

    • Jeremy
      Jeremy over 6 years
      You're not alone in this one. I've got the same problem since I updated to Ubuntu 17.10. I also tried Wayland as well as the Xorg session, but the mouse delay remains. The strange this is though, that it works fine at the beginning after a restart and then the mouse movement delay starts kicking in at a random moment, not turning back to normal after that. Do you experience the same?
    • vinid223
      vinid223 over 6 years
      @Forage Yeah something similar it's random. I mostly have window movement lag than mouse lag
    • amDude1848
      amDude1848 over 6 years
      Same problem here with 17.10 Xorg-Session. Mouse ist working at the beginng and a few hours later the OS is getting slower and slower and sometimes unfortunatelly mouse-clicks are missed, even 2-3 times in a row.
    • Luis Rodero-Merino
      Luis Rodero-Merino over 6 years
      Hi! I had the same problem in 17.10. Using Unity instead of default Gnome has solved the problem for me. See itsfoss.com/use-unity-ubuntu-17-10 for info about how to choose Unity at login.
    • vinid223
      vinid223 over 6 years
      @LuisRodero-Merino Thanks for the info but I am really not interested in using Unity.
    • vinid223
      vinid223 over 6 years
      I do think I found a way but it is still not perfect. But I tried to update the linux kernel from 4.13 to 4.14 and removing some dash to dock or dash to panel gnome extension. It seems to be a bit more fluent but still not the best
    • saubhik
      saubhik over 6 years
      For whatever it's worth, I often faced sluggish touchpad response in Ubuntu 17.10 Gnome 3.26.2. I use sudo modprobe -r psmouse, followed by sudo modprobe psmouse to fix the sluggish pointer issue.
  • vinid223
    vinid223 over 6 years
    Thanks for that answer. I would have wish to get a solution to keep GNOME 3.26 without lags but I guess it is just not stable yet
  • Mena
    Mena over 6 years
    Similar issue here, I had to downgrade to 17.04 for the time being. The OS worked fine, but the machine went bonkers while playing games requiring my (laptop) CPU to go on turbo. I suspect these issues are really hard to troubleshoot - at least I couldn't find a solution myself after hours digging...
  • sergiouribe
    sergiouribe over 6 years
    Same issue here. The screen freeze randomly, the mouse shows several lags and when I type sometimes freeze and then the text appears like thiiiiiiiiiiis
  • sergiouribe
    sergiouribe over 6 years
    I tried askubuntu.com/questions/966651/… with success so far
  • vinid223
    vinid223 over 6 years
    Thanks for the info but like I said in my question I've already switched from wayland to xorg
  • vinid223
    vinid223 over 6 years
    My problem is that even after switching back to xorg, I still have lag issue, but I do not have the mouse issue anymore
  • Cedric Reichenbach
    Cedric Reichenbach over 6 years
    Plagiarism of this answer: askubuntu.com/a/966709/166291
  • Rick-777
    Rick-777 over 6 years
    I am in a similar situation. I have kept open top -d 120 and it shows gnome-shell always consuming 10% to 20% cpu. This is far more than would be reasonable.
  • Tim X
    Tim X over 6 years
    I have installed the nvidia driver for my gforce card and am now running the Gnome xorg version (not the ubuntu flavoured version) and so far, I'm not seeing the lag problems anymore. Journalctl is still showing quite a few errors which need further investigation, but I'm not seeing all the gnome-shell errors I was getting witht he Ubuntu flavoured version.
  • vinid223
    vinid223 over 6 years
    @TimX Yeah installing the Nvidia drivers help the lag, but not completely and on my laptop which doesn't have a dedicated graphics card I can't install any graphics driver. The lag is just awful
  • Tim X
    Tim X over 6 years
    @vinid223 After a few days running the Nvidia drivers with the Gnome xorg version I had no repetition of the lag issue. I should also note that I also removed all the packaged shell extensions (except those which the gnome and ubuntu desktop packages rely on) and installed the key extensions I wanted using the web extension directly from the gnome site. I've not seen the lag problems reproduced. I have now switched back to the ubuntu xorg version and so far, no lag problems either. Recommend removing as many of the extensions you can and see if that has any impact. I'll monitor my system for n
  • Tim X
    Tim X over 6 years
    In my case, adding the Nvidia driver, removing Ubuntu bundled gnome extensions in preference to direct install via chrome gnome extension and running under xorg rather than wayland has SIGNIFICANTLY improved the stability of my system and addressed the lag problem. I do seem to get an increased lag over time, but it has now gone to days of uptime rather than just hours.
  • vinid223
    vinid223 over 6 years
    That doesn't make any sense with my problem. I have a tons of lags without the system monitor. This is not really a solution
  • David Foerster
    David Foerster over 6 years
    @CedricReichenbach: Even if this answer would properly cite its source (and thus not be plagiarism) we don't allow duplicate answers here since they provide no benefit. However in this case the answer tries to add something to the original source and is thus different.
  • user241281
    user241281 over 6 years
    This is exactly as my experience - when reboot, all is smooth and fast (although not so fast as was in unity with ubuntu 17.04) and after couple of days (I use suspend) it feels like my computer has half of the power - moving windows is not smooth, when screen is locked, password dialog is shown after couple of seconds, etc... Very bad. But I still live with that and hoping it will get better in 18.04.
  • Tim X
    Tim X over 6 years
    Basically, I switched to the Mate desktop as that was the only reliable fix I could find. Unfortunately, amongst my community, Ubuntu 17.10 is pretty much seen as a dog of a release and most of us are switching to a different distro. The Gnome lag issue is, dad to say, only 1 of many issues encountered with this release.
  • Alex Monras
    Alex Monras over 6 years
    thanks! This fixed my issue on UbuntuStudio 16.04 with xfce, so most GNOME solutions didn't apply. Can you describe what's the cause for this, and what this fix does?
  • Volomike
    Volomike about 5 years
    This irqpoll option worked for me on Lubuntu 19.04 with the new QT/C++ desktop.