When we came across ubuntu 1804 The problem of gnome-shell interface lag can be solved by updating the system, disabling extensions, and reducing special effects. If the problem persists, you can try more advanced solutions or other desktop environments, here are some specific steps and considerations.
ubuntu 18.04 The CPU usage of the gnome-shell interface rendering is too high, you can try the following methods to solve the problem:
Update the system
Make sure your system is updated to the latest version. ubuntu 18.The latest version of 04 is 1804.5 lts。You can update the system with the following command:
sudo apt updateUpdate the graphics driversudo apt upgrade
If your system is using an NVIDIA graphics card, make sure you have the latest NVIDIA graphics card drivers installed. You can install the latest NVIDIA graphics driver with the following command:
sudo add-apt-repository ppa:graphics-drivers/ppaDisable unnecessary extensionssudo apt update
sudo apt install nvidia-driver-470
The gnome-shell extension can cause excessive CPU usage. Here's how you can disable unnecessary extensions:
OpenSettingsApplication.
ClickExtensionsIcon.
Disable extensions that you don't use.
Reduced special effects
gnome-shell provides a number of special effects, such as window animations and shadows. These effects can cause excessive CPU usage. You can reduce the effect by doing the following:
OpenSettingsApplication.
ClickAppearanceIcon.
InEffectstab, lower the level of the effect.
Use a different desktop environment
If you have tried all of the above and can't fix the problem, you can try using a different desktop environment, such as XFCE or KDE.
Here are some specific workarounds:
Workaround 1: Disable the mutter's render thread
gsettings set org.gnome.mutter experimental-features "['disable-threaded-drawing']"Workaround 2: Use an older version of gnome-shell
sudo apt install gnome-shell=3.28.4-0ubuntu1~18.04.1Workaround 3: Use Compiz
sudo apt install compizconfig-settings-managerNote:The above methods may cause some functions to fail, please choose according to your actual situation.
If you have tried all the above methods and can't solve the problem, you can try the more advanced methods below:
Use Valgrind to analyze CPU usage
Valgrind is a tool that can help you analyze your app's CPU usage. You can use Valgrind to analyze the CPU usage of gnome-shell to find the cause of excessive CPU usage.
Analyze CPU usage with PERF
Perf is another tool that can help you analyze your app's CPU usage. You can use perf to analyze the CPU usage of gnome-shell to find the cause of excessive CPU usage.
Submit a bug report
If you are unable to resolve the issue on your own, you can submit a bug report to the Ubuntu community.
Here are some resources for filing a bug report:
Ubuntu Community Support Forum: "Removed invalid**".
Ubuntu bugzilla: "Removed invalid**".
Hopefully, this information will help you solve your problem.
In addition, you can also try the following methods to improve Ubuntu 1804 Gnome-shell performance:
Disable the transparency effect
The transparency effect may cause the CPU usage to be too high. You can disable the transparency effect in the following ways:
OpenSettingsApplication.
ClickAppearanceIcon.
Inwindowtab, uncheck itEnables the transparency effectOptions.
Reduce the resolution
Lowering the resolution can improve performance by reducing the number of pixels that need to be rendered. Here's how you can reduce the resolution:
OpenSettingsApplication.
ClickDisplayIcon.
InResolutiontab, select a lower resolution.
Use a lightweight theme
Lightweight themes typically take up fewer resources than default themes. Here's how you can install a lightweight theme:
OpenSettingsApplication.
ClickAppearanceIcon.
InThemetab, selectLightweightTheme
February** Dynamic Incentive Program