Xorg: High CPU usage when USB mic is plugged in after hibernation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg-server (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Problem:
=========
When I plug in a USB microphone after one, two or three hibernations with work in between* the Xorg process is "going crazy" at around 100% - 130% CPU usage. (please see the attached chart)
Steps (to hopefulle reproduce):
=======
- start pc
- do some usual work for a couple of hours
- hibernate
- wake up
- do some usual work for a couple of hours
- hibernate
- wake up
( you might need more repetitions here)
- do some usual work for a couple of hours
- plug in USB microphone
Actual:
- Xorg has high CPU usage
Expected:
- Xorg has usual CPU usage
Remarks
=========
I could not safely reproduce this behaviour on purpose simply by starting and hibernating. But I experience it on a week to week basis.
I'm not suspending or some kind of suspend+hibernate. It's pure hibernation
I experience this problem, I think, in 16 (started here), (never tried 17), 18, 19.10
I used perftop with flamegraph the other day. It revealed
- DeletePassiveGr
- ResourceClientBits: around 5%
- GrabMatchesSecond: 3 ~ 5%
- trace_raw_
System
=======
lsb_release -rd
-------------------
Description: Ubuntu 19.10
Release: 19.10
apt-cache policy xorg
-------
xorg:
Installed: 1:7.7+19ubuntu12
Candidate: 1:7.7+19ubuntu12
Version table:
*** 1:7.7+19ubuntu12 500
500 http://
100 /var/lib/
Misc
----
- 12GB RAM
- Core i5 4 cores
Debugging
----------
I can help collecting data, but I need assistance
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: xorg 1:7.7+19ubuntu12
ProcVersionSign
Uname: Linux 5.3.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.8
Architecture: amd64
CompizPlugins: No value set for `/apps/
CompositorRunning: None
CurrentDesktop: XFCE
Date: Tue Apr 28 17:29:02 2020
DistUpgraded: 2019-12-01 10:19:03,497 ERROR got error from PostInstallScript ./xorg_
DistroCodename: eoan
DistroVariant: ubuntu
DkmsStatus:
virtualbox, 6.0.14, 5.3.0-40-generic, x86_64: installed
virtualbox, 6.0.14, 5.3.0-46-generic, x86_64: installed
ExtraDebuggingI
GraphicsCard:
Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) (prog-if 00 [VGA controller])
Subsystem: Fujitsu Limited. UHD Graphics 620 [10cf:1959]
MachineType: FUJITSU FMVWB3U27
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
UpgradeStatus: Upgraded to eoan on 2019-12-01 (149 days ago)
dmi.bios.date: 01/23/2018
dmi.bios.vendor: FUJITSU // Insyde Software Corp.
dmi.bios.version: Version 1.07
dmi.board.name: FJNB2BB
dmi.board.vendor: FUJITSU
dmi.board.version: A2
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU
dmi.modalias: dmi:bvnFUJITSU/
dmi.product.family: LIFEBOOK-JR
dmi.product.name: FMVWB3U27
dmi.sys.vendor: FUJITSU
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.99-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
affects: | xorg (Ubuntu) → xorg-server (Ubuntu) |
Is klobalaccel5 also consuming high amounts of CPU? Are you using .Xmodmap?