cpupower icon indicating copy to clipboard operation
cpupower copied to clipboard

Periodic screen stutter when extension is enabled

Open feer9 opened this issue 2 years ago • 10 comments

CPU: Intel Core i5-8400 GPU: AMD Radeon RX 470 OS: Manjaro Linux Linux kernel: 5.15.16-1-MANJARO Gnome-shell: 41.3-1 cpupower: version 26 installed from extensions.gnome.org

First of all, I'm not completely sure that this bug is only caused by this extension, but the issue manifests when I enable it.

What happens is, with a period of exactly 1 second, the entire screen stutters for about 50 ms (wild guess there). I've noticed that this issue only manifests when running gnome in Wayland. Everything runs smooth in X11.

Here is a video running glxgears. Check the frametime spikes in the graph, and you can visually see the gears stop turning https://youtu.be/KgS0cc01ZLc

https://user-images.githubusercontent.com/19179353/152675325-c52f49e7-29ed-491d-94dc-7591c71d1214.mp4

Any additional info you need just tell me.

feer9 avatar Feb 06 '22 09:02 feer9

Same issues here.

Using latest version of the extension from https://extensions.gnome.org/

My system configs are as follows:

Machine:   Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X421IAY_M413IA v: 1.0 

System:    Host: cosmic Kernel: 5.15.15-76051515-generic x86_64 bits: 64 Console: tty pts/1 
           Distro: Pop!_OS 21.10 

CPU:       Info: 6-Core model: AMD Ryzen 5 4500U with Radeon Graphics bits: 64 type: MCP cache: 
           L2: 3 MiB 
           Speed: 1397 MHz min/max: 1400/2375 MHz Core speeds (MHz): 1: 1397 2: 1397 3: 1806 
           4: 2154 5: 1397 6: 1958 

Graphics:  Device-1: AMD Renoir driver: amdgpu v: kernel 
           Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
           Display: server: X.Org 1.21.1.2 driver: loaded: amdgpu,ati 
           unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.15-76051515-generic LLVM 12.0.1) 
           v: 4.6 Mesa 21.2.2 

Drives:    Local Storage: total: 476.94 GiB used: 97.07 GiB (20.4%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB 

realKarthikNair avatar Feb 09 '22 16:02 realKarthikNair

Hi all! I'm sorry you are experiencing problems with this extension.

The issue is most likely related to the current frequency display. Try disabling the "Show current frequency" option in the settings. Let me know if this helps!

fin-ger avatar Feb 09 '22 17:02 fin-ger

Hi all! I'm sorry you are experiencing problems with this extension.

The issue is most likely related to the current frequency display. Try disabling the "Show current frequency" option in the settings. Let me know if this helps!

Awesome, the stutter disappears when "show current frequency" is disabled. Although whenever you open the extension menu, the reading always is shown, so in that moment the stutter comes back. At least this way It's not so annoying 🙂

feer9 avatar Feb 09 '22 20:02 feer9

Alright, I know how to fix this, but unfortunately I currently don't have the time to do this now. I'll mark this as urgent so it will be fixed with the next release.

fin-ger avatar Feb 09 '22 21:02 fin-ger

Thanks for the support. For the time being I will use slimbook battery module

realKarthikNair avatar Feb 10 '22 14:02 realKarthikNair

Any updates?

realKarthikNair avatar Feb 21 '22 02:02 realKarthikNair

This needs some heavy lifting in the backend, I currently don't have the time to implement this. Unfortunately, this requires very deep knowledge of the internal parts of this extension, so I don't think anyone else can do it without investing a lot of time into this.

But thanks for the bump, maybe I'll code this on a train trip or sth.

fin-ger avatar Apr 30 '22 10:04 fin-ger

#162 is related to this.

fin-ger avatar Apr 30 '22 10:04 fin-ger

I've got the same issue here. I noticed it when I scroll evenly over a web page or something like that. Then it stuttered every second. I am really interested in what can cause stutter the whole desktop from such an extension.

NicolasGoeddel avatar Oct 02 '22 11:10 NicolasGoeddel

I am really interested in what can cause stutter the whole desktop from such an extension.

It seems that on certain CPUs the fetching of the current frequency of each core makes the CPU hang for a moment.

fin-ger avatar Oct 02 '22 11:10 fin-ger