Ubuntu 21.04 - 移动鼠标时 CPU 峰值较高

fus*_*ser 5 mouse gnome xorg cpu 21.04

我在 上遇到以下 CPU 问题Ubuntu 21.04。\n在版本 20.10 和之前的版本上,情况并非如此。

\n

当鼠标在我的电脑上频繁移动时,我的 CPU 会出现巨大的峰值。温度高于60℃。

\n

gnome-shell进程加载CPU。

\n
    \n
  • CPU - AMD Ryzen 9 5950X-频率提升默认开启
  • \n
  • 显卡NVIDIA GP102 [GeForce GTX 1080 Ti]--ZOTAC GeForce\xc2\xae GTX 1080 Mini
  • \n
  • nvidia-driver-460 (NVIDIA Corporation: GP102[GeForce GTX 1080 Ti])-driver使用专有技术
  • \n
  • 老鼠 -Razer Basilisk Ultimate Wireless
  • \n
  • 启用直接渲染
  • \n
  • $ echo $XDG_SESSION_TYPE==>\n x11- 默认情况下使用 Xorg 而不是 Wayland,因为我的主板上有 NVIDIA。
  • \n
  • 安装的 gnome 扩展:
  • \n
\n
$ ls -al ~/.local/share/gnome-shell/extensions\ntotal 16\ndrwxrwxr-x 4 user user 4096 May 24 07:32 .\ndrwx------ 4 user user 4096 May 25 18:10 ..\ndrwxrwxr-x 3 user user 4096 Oct 29  2020 apps-menu@gnome-shell-extensions.gcampax.github.com\ndrwxrwxr-x 4 user user 4096 Oct 29  2020 auto-move-windows@gnome-shell-extensions.gcampax.github.com\n\n\n$ ls -al /usr/share/gnome-shell/extensions\ntotal 20\ndrwxr-xr-x 5 root root 4096 Oct 17  2019 .\ndrwxr-xr-x 7 root root 4096 May 12 07:30 ..\ndrwxr-xr-x 2 root root 4096 May 12 07:34 desktop-icons@csoriano\ndrwxr-xr-x 3 root root 4096 May 12 07:34 ubuntu-appindicators@ubuntu.com\ndrwxr-xr-x 3 root root 4096 May 12 07:34 ubuntu-dock@ubuntu.com\n\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试根据此建议 - XORG - HIGH CPU 使用率来减少鼠标轮询。

\n

该答案中的所有案例也都经过尝试 - GNOME-SHELL HIGH CPU USAGE

\n

唯一有帮助的是gnome-shell通过重新加载Alt+F2 -> r。但我需要每天执行 15 次或更多才能禁用这些 CPU 峰值。

\n

请您建议是否可以对上述问题有一个永久的解决方案,这样就不必一直手动重新gnome-shell加载。

\n

小智 1

遇到了同样的问题,我将分享这个错误报告,它很有帮助: bug 1900760