I've done more research and this may be related to xorg from what I've been reading. This has also been an issue since ubuntu 17. So many people have this problem and it's not been fixed 3 ubuntu versions down; google search xorg media key lag. In summary short spike of cpu usage when multimedia keys are pressed such as volume or brightness, this can be from a headset or using keyboard fn keys.
** Description changed: From https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3020 =============================================================== Affected version Ubuntu 20.04 GNOME Shell 3.36.3 - Don't know if Wayland or XOrg is applicable + XOrg Bug summary The volume OSD on Ubuntu 20.04, which I assume is a GNOME notification based on a reddit thread I read, when adjusting volume will stutter any game I am playing and will completely freeze my computer when I'm in a certain fullscreen application. Multiple people have this issue; some the volume OSD will stutter their game some it will minimize their game when adjusting the volume. I made a bug post on r/GNOME but I found this gitlab and thought it might be more appropriate to file an issue here on gitlab. Link to my post: https://www.reddit.com/r/gnome/comments/hz9jcj/gnome_notification_like_ubuntu_volume_osd_is/ Steps to reproduce stutter: Start up any game like CS:GO for example, it's completely free to play. If you own Minecraft that works too it's way faster to load. Now enter a game and move mouse around while adjusting volume or move character while adjusting volume and observe stutter. Now the freeze, I used technic launcher which requires a Minecraft account; but technic launcher is ran as an executable jar file so I hope that helps; maybe it can also reproduced by running a jar file eg a game in fullscreen. However I know these steps work on the technic launcher How to reproduce freeze: Download the technic launcher jar file to desktop Right click jar file and allow executing of file as program under permissions Double click the jar file to run it Log in Install empty forge 1.12.2 After installed run that modpack (empty forge 1.12.2) Head into options and enable fullscreen Adjust volume and observe freeze (I'll try to capture this in OBS if I can) What happened After reproducing the steps above the game stutters every time the volume OSD is drawn. What did you expect to happen The volume OSD should draw without lagging anything. Relevant logs, screenshots, screencasts etc. I will download obs and record it happening then post to youtube and provide a link. This will take some time. =================================================================================================== 1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu 2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center 3) What you expected to happen 4) What happened instead 1) Ubuntu 20.04.1 LTS 2) Any video game. I used Minecraft 1.16.1 and CS:GO 3) Volume OSD shows up and doesn't stutter game 4) Volume OSD shows up and stutters game I attatched a short video showing the stutter while in a singleplayer world of Minecraft. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: gnome-shell 3.36.3-1ubuntu1~20.04.2 Uname: Linux 5.7.0-050700-lowlatency x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.4 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Tue Jul 28 01:11:58 2020 DisplayManager: gdm3 InstallationDate: Installed on 2020-07-27 (1 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash RelatedPackageVersions: mutter-common 3.36.3-0ubuntu0.20.04.1 SourcePackage: gnome-shell UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to mutter in Ubuntu. https://bugs.launchpad.net/bugs/1889178 Title: [nvidia] Volume OSD stutters game To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell/+bug/1889178/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs