! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-xkb-plugin-0.5.6 causes cpu spike on resume from suspend
Status:
RESOLVED: LATER
Product:
Xfce4-xkb-plugin
Component:
General

Comments

Description Jose Marino 2013-07-02 00:29:37 CEST
Right after resuming from suspend to ram, anything X related like moving windows, focusing windows, etc is very unresponsive. Everything is very sluggish for around 10s or 20s, while the cpu usage of the X process is very high.
This also happens when switching back from a virtual terminal (ctr-alt-f1 then ctr-alt-f7).
Problem started happening with version 0.5.5

I've done a bisect of the code between 0.5.4.3 and 0.5.5 and found this commit to be the cause:
0aab3c4 Reset xkb config when new keyboard is detected


Reverting that commit on top of 0.5.6 makes the problem go away.
Comment 1 Igor Slepchin editbugs 2013-07-15 19:56:01 CEST
Well, yes - that commit does exactly what's advertised, i.e., it resets XKB settings whenever it gets a new keyboard notification signal, as happens to be the case upon resume. Without this, the plugin will be losing its settings just as it used to. As for the time it takes to restore the settings, there isn't much I can think of to speed this up; it takes pretty much the same time as, say, changing the settings through xkb-plugin's Configure dialog (it might take a bit more since X seems to be sending multiple X-new-device notifications.
Comment 2 Jose Marino 2013-07-15 21:40:28 CEST
Fair enough. My problem is that this reset is very disruptive. It keeps X running at full speed for a few seconds making things very unresponsive. I'm talking about several seconds latency between a mouse click and things happening.

Could it be that the reset is exposing an underlying bug somewhere else. Any ideas how to debug it?
Comment 3 whatmeurgent 2013-12-23 16:57:50 CET
Ditto. I'm experienceing the same issue, only in my case the unresponsiveness, sluggishness, and slow time to usability is on the order of ten seconds. It is really annoying for anyone (like me) who uses multiple x sessions and routinely toggles between virtual terminals.

Please consider raising the priority of this bug because of the following written on the homepage of the xfce website (emphasis added): "Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be --FAST-- and low on system resources".

BTW, I vaguely remember, and I could be wrong, that way back on the xfce4.6 desktop the plugin never did lose its settigns.

Bug #10213

Reported by:
Jose Marino
Reported on: 2013-07-02
Last modified on: 2020-05-21

People

Assignee:
Azamat H. Hackimov
CC List:
4 users

Version

Attachments

Additional information