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

100% CPU usage when running swaylock #109

Open
stove-jeebs opened this issue Aug 20, 2023 · 3 comments
Open

100% CPU usage when running swaylock #109

stove-jeebs opened this issue Aug 20, 2023 · 3 comments

Comments

@stove-jeebs
Copy link

stove-jeebs commented Aug 20, 2023

image

problem: swaylock does not appear on screen and uses up most of my CPU

I later fixed the problem by removing screenshots and discovered that it only works with one monitor

this is the output for swaylock -d:

2023-08-20 19:48:08 - [main.c:1813] Found config at /home/stovejeebs/.config/swaylock/config
2023-08-20 19:48:08 - [main.c:1701] Config Line #1: daemonize
2023-08-20 19:48:08 - [main.c:1701] Config Line #2: show-failed-attempts
2023-08-20 19:48:08 - [main.c:1701] Config Line #3: clock
2023-08-20 19:48:08 - [main.c:1701] Config Line #4: screenshots
2023-08-20 19:48:08 - [main.c:1701] Config Line #5: effect-blur=15x15
2023-08-20 19:48:08 - [main.c:1701] Config Line #6: effect-vignette=1:1
2023-08-20 19:48:08 - [main.c:1701] Config Line #7: color=1f1d2e80
2023-08-20 19:48:08 - [main.c:1701] Config Line #8: font="Inter"
2023-08-20 19:48:08 - [main.c:1701] Config Line #9: indicator
2023-08-20 19:48:08 - [main.c:1701] Config Line #10: indicator-radius=200
2023-08-20 19:48:08 - [main.c:1701] Config Line #11: indicator-thickness=20
2023-08-20 19:48:08 - [main.c:1701] Config Line #12: line-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #13: ring-color=191724
2023-08-20 19:48:08 - [main.c:1701] Config Line #14: inside-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #15: key-hl-color=eb6f92
2023-08-20 19:48:08 - [main.c:1701] Config Line #16: separator-color=00000000
2023-08-20 19:48:08 - [main.c:1701] Config Line #17: text-color=e0def4
2023-08-20 19:48:08 - [main.c:1701] Config Line #18: text-caps-lock-color=""
2023-08-20 19:48:08 - [main.c:60] Invalid color "", defaulting to 0xFFFFFFFF
2023-08-20 19:48:08 - [main.c:1701] Config Line #19: line-ver-color=eb6f92
2023-08-20 19:48:08 - [main.c:1701] Config Line #20: ring-ver-color=eb6f92
2023-08-20 19:48:08 - [main.c:1701] Config Line #21: inside-ver-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #22: text-ver-color=e0def4
2023-08-20 19:48:08 - [main.c:1701] Config Line #23: ring-wrong-color=31748f
2023-08-20 19:48:08 - [main.c:1701] Config Line #24: text-wrong-color
=31748f
2023-08-20 19:48:08 - [main.c:1701] Config Line #25: inside-wrong-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #26: inside-clear-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #27: text-clear-color=e0def4
2023-08-20 19:48:08 - [main.c:1701] Config Line #28: ring-clear-color=9ccfd8
2023-08-20 19:48:08 - [main.c:1701] Config Line #29: line-clear-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #30: line-wrong-color=1f1d2e
2023-08-20 19:48:08 - [main.c:1701] Config Line #31: bs-hl-color=31748f
2023-08-20 19:48:08 - [main.c:1701] Config Line #32: grace=2
2023-08-20 19:48:08 - [main.c:1701] Config Line #33: grace-no-mouse
2023-08-20 19:48:08 - [main.c:1701] Config Line #34: grace-no-touch
2023-08-20 19:48:08 - [main.c:1701] Config Line #35: datestr=%a, %B %e
2023-08-20 19:48:08 - [main.c:1701] Config Line #36: timestr=%I:%M %p
2023-08-20 19:48:08 - [main.c:1701] Config Line #37: fade-in=0.3
2023-08-20 19:48:08 - [main.c:1701] Config Line #38: ignore-empty-password
2023-08-20 19:48:08 - [main.c:1823] Parsing CLI Args
2023-08-20 19:48:08 - [main.c:680] output name is HDMI-A-2
2023-08-20 19:48:08 - [main.c:680] output name is eDP-1
2023-08-20 19:48:09 - [main.c:641] Loaded screenshot for output HDMI-A-2
2023-08-20 19:48:09 - [main.c:641] Loaded screenshot for output HDMI-A-2
2023-08-20 19:48:09 - [main.c:641] Loaded screenshot for output eDP-1
@stove-jeebs stove-jeebs changed the title 100 100% CPU usage when running swaylock Aug 20, 2023
@ErrorNoInternet
Copy link

ErrorNoInternet commented Aug 28, 2023

Also started happening to me recently. Can we re-open this?
Edit: this could also be a Hyprland issue.

@stove-jeebs stove-jeebs reopened this Aug 29, 2023
@stove-jeebs
Copy link
Author

stove-jeebs commented Aug 29, 2023

@ErrorNoInternet try remove the screenshots from your swaylock config file in ~/.config/swaylock/config. Also, do you use multiple monitors?

@ErrorNoInternet
Copy link

@ErrorNoInternet try remove the screenshots from your swaylock config file in ~/.config/swaylock/config. Also, do you use multiple monitors?

Yes, I do have the --screenshots flag and I also do use multiple monitors. Your solution works for me. Might be related: jirutka#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants