High CPU when just moving the mouse

Bug #1848951 reported by Stojan on 2019-10-20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Daniel van Vugt
mutter (Ubuntu)
Daniel van Vugt
xorg-server (Ubuntu)

Bug Description

I have installed fresh Ubuntu 18.04.03 on my PC. Previously I had Ubuntu 16.04 version but didn't have any such problems with the cpu usage.

But I have saw in terminal that somehow the processes Xorg and gnome-shell use always 20% when just moving the mouse around for 18.04 version.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: xorg 1:7.7+19ubuntu7.1
ProcVersionSignature: Ubuntu 5.0.0-31.33~18.04.1-generic 5.0.21
Uname: Linux 5.0.0-31-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 20 20:54:50 2019
DistUpgraded: Fresh install
DistroCodename: bionic
DistroVariant: ubuntu
DkmsStatus: amdgpu, 19.30-855429, 5.0.0-31-generic, x86_64: installed
ExtraDebuggingInterest: No
 Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06) (prog-if 00 [VGA controller])
   Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [1458:d000]
 Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] [1002:683d] (prog-if 00 [VGA controller])
   Subsystem: Micro-Star International Co., Ltd. [MSI] R7770-PMD1GD5 [1462:2710]
InstallationDate: Installed on 2019-10-19 (0 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
MachineType: Gigabyte Technology Co., Ltd. B85M-D2V
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-31-generic root=UUID=1df6f37d-128f-4083-bd66-0a5c437227a0 ro quiet splash vt.handoff=1
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/06/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F2
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B85M-D2V
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF2:bd08/06/2015:svnGigabyteTechnologyCo.,Ltd.:pnB85M-D2V:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnB85M-D2V:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: B85M-D2V
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.97-1ubuntu1~18.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 19.0.8-0ubuntu0~18.04.3
version.libgl1-mesa-glx: libgl1-mesa-glx 19.0.8-0ubuntu0~18.04.3
version.xserver-xorg-core: xserver-xorg-core N/A
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Stojan (stojan97) wrote :
Stojan (stojan97) wrote :
Stojan (stojan97) on 2019-10-20
information type: Public → Public Security
information type: Public Security → Public
description: updated

The attachment "Screenshot from 2019-10-20 20-01-53.png" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Daniel van Vugt (vanvugt) wrote :

I've been working on a number of issues causing this. It is much improved in Ubuntu 19.10 but not yet quite at the point of being declared fixed.

Tracking in: https://gitlab.gnome.org/GNOME/mutter/issues/283

affects: xorg (Ubuntu) → mutter (Ubuntu)
Changed in mutter (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: New → Confirmed
summary: - Xorg and gnome-shell consuming large amount of CPU
+ Xorg and gnome-shell consuming large amount of CPU when just moving the
+ mouse

Your mouse is very fast (1000Hz) so you will notice the problem 8x more than most people (most mice are 125Hz).


summary: - Xorg and gnome-shell consuming large amount of CPU when just moving the
- mouse
+ High CPU when just moving the mouse
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
assignee: nobody → Daniel van Vugt (vanvugt)
tags: added: performance
Stojan (stojan97) wrote :

Is there anything I can do by my side to at least lower the cpu usage or no?

Daniel van Vugt (vanvugt) wrote :

In theory you might be able to avoid around 87% of the problem by changing your mouse polling rate from 1000Hz to 125Hz. To do that you need to add a kernel parameter:


or similar... https://wiki.archlinux.org/index.php/Mouse_polling_rate

Changed in mutter:
status: Unknown → New
Changed in mutter (Ubuntu):
status: Confirmed → In Progress
Changed in gnome-shell (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Medium
Changed in mutter (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.