After I installed fresh Ubuntu 18.04 with GNOME desktop and It had opensource driver I experienced very bad lag.
I Installed Nvidia 390 Driver and the lag was so bad. Changing the driver to Nvidia 340.106 didn't help.
I thought this is about Ubuntu 18.04, so I installed Fedora 28. on Wayland everything was smooth with open source driver but after Installing the 390 driver and switch to X11 lag started (but not as bad as Ubuntu).
I installed GNOME Impatience extension to reduce the lag but it didn't help that much.
I also tried Ubuntu Mate 18.04 with COMPIZ. On Mate, I had much more heavier Effects but those effects were so smooth.
Another Ubuntu 18.04 that I've tried was Budige that is based on the same GNOME. It didn't have any lag at all.
Also installed Nvidia 396 (opensource) from "ppa:graphics-drivers/ppa" repository. It just lags more.
Edit:
Installing sudo ubuntu-drivers autoinstall
didn't solve the problem.
It just install Nvidia 390 driver which I tried before as I mentioned.
I don't have any high CPU usage issue:
nvidia-smi
result:
+------------------------------------------------------+
| NVIDIA-SMI 340.106 Driver Version: 340.106 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 660 Ti Off | 0000:03:00.0 N/A | N/A |
| 10% 32C P8 N/A / N/A | 273MiB / 2047MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
My System
- CPU: Intel i7 920
- GPU: Nvidia Geforce 660 ti
- RAM: 6GB
Is there anyway that I can solve this lag?
Same happened to me. Make sure:
I stopped using Gnome 3 on Ubuntu 18.04 and replaced it with the Mate desktop using the lightdm display manager.
To replicate:
Unfortunately
Gnome
on18.04
is really slow, even with the newest hardware (e.g. Dell XPS 13). If you wanna have a good experience on the LTS without switching to18.10
, the solutions are:Using
unity
. You can choose it before logging in with your user.Waiting until
18.04.2
update. Some patches of Gnome should be backported to LTS. We only can hope, that it will be the ones which makeGnome 3.30
faster.I was experiencing a lot of lag on the splash screen with 18.04 and wanted to put this here as another solution. In my case I had been using an open source graphics card driver (Nouveau) instead of the Nvidia proprietary and it looks to have been the cause of the issue.
Once I switched from the Nouveau display driver to the Nvidia driver metapackage 390, everything ran much more smoothly.
Source
The issue seems to be caused by Wayland as described here and here. You can try to access
/etc/gdm3/custom.conf
( or/etc/gdm/custom.conf
for older versions ) and uncommentWaylandEnable=false
. It worked for me.The problem usually start when you update Nvidia driver up to version 390 or above. It is possible that the fallback to Xorg stopped working in latest versions, and then GDM uses Wayland to manage the display instead.
So I feel some of these answers are sub par. I've installed Ubuntu 16/18 on multiple machines at work at and at home and have experienced at times similar issues to what you are seeing.
First let's look at some potential problems.
If you have a NVIDIA graphics card and you're doing a minimal installation of Ubuntu 18.04.02, you will notice that NVIDIA drivers (as well as non-NVIDIA) drivers are being installed. This is part of the problem.
Normally how I deal with this issue is immediately at the login screen press CTRL+ALT+F3 to enter into a terminal and purge all drivers. However, this morning I was unable to do so for some odd reason.
My Solution
Normally, when you have a NVIDIA graphics card your motherboard (in my case MSI) will disable the Intel Integrated Graphics. You want to enable this (optionally, disable your graphics card). Please see your motherboard's settings/documentation on how to do this.
Shut the desktop down.
If you have your HDMI cable (or whatever) plugged into your graphics card, remove this and plug it into your motherboard's HDMI port.
Turn on your desktop.
Your desktop should be starting up normally now. If it is not, then you know it is not a NVIDIA graphics driver related issue.
If things are running smoothly, please go into Software & Updates > Additional Drivers and select whatever NVIDIA driver option you have. This is the easy way to install those NVIDIA drivers. The hard way is to manually download them from NVIDIA. As of this morning I installed nvidia-390 which was the default option I was given.
After installation, restart your computer. If things are running smoothly, restart the computer once again, but this time go into your motherboard's BIOS.
Re-enable your NVIDIA graphics card. Save settings and restart.
At this point, your desktop should be working normally as with the Intel Integrated Graphics. There's nothing tricky, no third party software (aside from NVIDIA) that needed to be installed. It's really that simple. However, depending on your hardware, the solution may have some variance.
AFAIK Gnome doesn't work on 18.04 nVidia.
I was able to get 144 FPS on Compiz on 18.04 + GSYNC. (I only got like, 40-60 fps on Gnome and no GSYNC) The first time I tried Compiz, it didn't work (I was on nVidia 396) I did
sudo ubuntu-drivers autoinstall
(which put me on 390) and I rebooted then used the little picker icon on login to choose Compiz and it worked great. So I think396
doesn't work with compiz yet but390
does. Oddly390
on Gnome makes me physically nauseous with my monitor but it's fine on compiz, so i think390
on Gnome has a lot of strange refresh rate / redraw issues.(It may be a GSYNC thing but I did get a pixelated word "NORMAL" in the upper right, which I got rid of by turning OpengGL flipping off in
nvidia-settings
)Use the version for your graphic card, I have the same problem, don't use de autoinstall configuration. In your case this
I had to search like this --> nvidia driver
"your graphic card"
linuxIn my case, I removed Remmina Applet from Tweak -> Startup Applications and the problem was solved. Please, refer to: Is remmina an startup application in 16.04 for more details.
I solved my problem by going to https://www.nvidia.com/Download/index.aspx?lang=en-us
Downloading driver *run file for my graphics card, made it executable and ran it as root. Followed on-screen prompts and after reboot the Lag is gone!