Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

25% cpu and slow screen writing after suspend, when using -b option #153

Closed
bitshiftnetau opened this issue Apr 5, 2019 · 5 comments
Closed
Labels
info requested The developers have requested additional information from the reporter not reproduced The developers have tried but failed to reproduce the issue stale

Comments

@bitshiftnetau
Copy link

Issues after suspend when using -b (run as daemon) option as detailed in this manual: https://jlk.fjfi.cvut.cz/arch/manpages/man/compton.1

and the ArchWiki: https://wiki.archlinux.org/index.php/Compton

Platform

Arch Linux
kernel: 4.19.32-1-lts
OpenBox: 3.6.1

GPU, drivers, and screen setup

Nvidia Quadro 3000M
driver: nvidia-340xx-lts
version 340.107

xf86-video-fbdev 0.5.0-1
xf86-video-vesa 2.4.0-2

glxinfo: command not found

Environment

Bare openbox with Tilda, Tint2, conky, compton and desktop apps. UEFI boot.

Compton version

v6.2

$ compton --diagnostics
[ 04/06/19 08:49:43.583 parse_config_libconfig WARN ] vsync option will take a boolean from now on. "opengl" is interpreted as "true" for compatibility, but this will stop working soon
[ 04/06/19 08:49:43.583 parse_config_libconfig WARN ] glx-swap-method has been deprecated since v6, your setting "undefined" should be removed.
Version: v6.2

Extensions:

  • Shape: Yes
  • XRandR: Yes
  • Present: Present

Misc:

  • Use Overlay: Yes
  • Config file used: /home/access/.config/compton.conf

Compton configuration:

same issue without or without config file

### Steps of reproduction
1. Launch compton from Openbox autostart file with -b option 
2. run systemctl suspend 

### Expected behavior
Normal rendering

### Current Behavior
25% cpu usage
slow, line-by-line screen writing

@bitshiftnetau
Copy link
Author

I've fixed this problem by launching compton with a trailing ambersand (&) to signify running as background process.

This looks like a known issue with certain drivers, I will inform the ArchWiki and instruct the use of ambersand in place of the -b flag if this error presents for other users.

@yshui
Copy link
Owner

yshui commented Apr 5, 2019

@bitshiftnetau It would be very helpful if you can figure out what is actually using the CPU. You can use perf for that. If you want to try remember to build compton with debug info.

@yshui yshui added the info requested The developers have requested additional information from the reporter label Apr 17, 2019
@yshui yshui added the not reproduced The developers have tried but failed to reproduce the issue label May 6, 2019
@heavykisiel
Copy link

I was able to reproduce it on arch:

OS: Arch Linux x86_64
Kernel: 6.7.3-arch1-1
WM: awesome
CPU: 11th Gen Intel i5-11400F (12) @ 4.400GHz
GPU: NVIDIA Geforce RTX 3050

my picom --diagnostics
`Version: vgit-fc1d1

Extensions:

  • Shape: Yes
  • RandR: Yes
  • Present: Present

Drivers (inaccurate):

NVIDIA, modesetting

Backend: glx

  • Driver vendors:
  • GLX: NVIDIA Corporation
  • GL: NVIDIA Corporation
  • GL renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2

Backend: egl

  • Driver vendors:
  • EGL: NVIDIA
  • GL: NVIDIA Corporation
  • GL renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2`

I was using picom -b on startup and my CPU usage varies between 0.1% - 0.3% and takes around 80mb.
When I run systemctl suspend and get out of suspension picom process goes into crazy 11-16 CPU Usage and take twice RAM as before plus temperatures goes high. Unfortunately changing it to picom & not helping and problem persist. After running picom --log-level debug and getting out of suspension I have massive spam of prompts like this:

[ 02/06/2024 15:24:04.885 check_render_finish DEBUG ] Last render did not complete during vblank, msc: 0
[ 02/06/2024 15:24:04.885 check_render_finish DEBUG ] Last render did not complete during vblank, msc: 0
[ 02/06/2024 15:24:04.885 check_render_finish DEBUG ] Last render did not complete during vblank, msc: 0

till I kill process. After reloading my window manager it goes to normal CPU usage. So right now solution that comes to my mind is to write script and run it to kill picom, then run systemctl suspend and run picom -b again, but its kinda doesnt solves software problem.

@absolutelynothelix
Copy link
Collaborator

@heavykisiel, try picom built from the latest commit in the next branch. if your issue is the one i'm thinking about, it should be already fixed there.

@yshui
Copy link
Owner

yshui commented Feb 7, 2024

@heavykisiel your issue seems to be #1168

i will also close this issue as it's very old. if the original problem is still reproducible on latest picom, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info requested The developers have requested additional information from the reporter not reproduced The developers have tried but failed to reproduce the issue stale
Projects
None yet
Development

No branches or pull requests

4 participants