Process kwin uses 100% CPU when KDE screen is locked

For some time now, I have noticed that my laptop fan started to make a lot of noise after I locked my screen. Switching to a console and running (a)top, I found that the kwin process was causing this by using 100% of one of my four CPU cores. I found that the problem goes away when I use the Simple Locker instead of a Screen Saver.

I’m using KDE (currently 4.12.5) with X.Org 1.15 on Gentoo Linux, and my settings in KDE System Settings / Hardware / Display and Monitor / Screen Locker used to be
Screen saver / Blank Screen / Setup / Black, which I assumed would save as much energy as possible since my GPU and screen would do nothing and my screen would emit as little light as possible. Since the process causing the trouble was not kblankscrn.kss, I didn’t suspect the screen saver.

However, I found that if I use the Simple Locker instead of Blank Screen, the problem goes away. For most or all other options (other screen savers, Desktop Widgets) the issue seems to exist as well. I should probably file a bug report, but surprisingly few other people seem to have this issue (I think I found one).

On a possibly related note, I found that kwin will also start using 100% of one of my CPU cores when my screen is unlocked and I switch to a text console (e.g. by pressing Ctrl-Alt-F1).

Advertisements
This entry was posted in All, Software and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s