xfsettingsd and xfce4-volumed using a lot of CPU after screen lock / unlock
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | xfce4-settings |
Confirmed
|
Medium
|
||
| | xfce4-settings (Ubuntu) |
High
|
Unassigned | ||
| | xfce4-volumed (Ubuntu) |
High
|
Unassigned | ||
Bug Description
Just upgraded to Xubuntu 14.10, had issues with fglrx (see http://
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1572 root 20 0 262892 56672 26480 R 89.7 1.4 6:48.70 Xorg
5025 usr 20 0 312116 11336 4632 R 36.9 0.3 0:17.42 xfce4-volumed
5036 usr 20 0 327328 10556 5760 S 31.5 0.3 0:13.38 xfsettingsd
Additional information:
- Killing and restarting xfsettingsd and xfce4-volumed resolves the issue until next sleep cycle
- When running only xfce4-volumed, but not xfsettingsd, the issue does not appear
- This can be reproduced always. ATI Radeon Mobility HD 5650 video card
- The CPU usage does not seem to go down after a while
- If I got it correctly, it looks like some other processes are also going to high CPU usage after killing xfce4-volumed. I think I saw xfce4-xkb-plugin going to 95% CPU usage
- The issue happens before unlock, i.e. locking then pressing a key to get a login dialog, then switching to vty1 and doing a top yields the above
Not sure what else I should check / post that can be useful for troubleshooting, let me know.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: xfce4-settings 4.11.3-0ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Nov 23 18:34:02 2014
InstallationDate: Installed on 2014-04-24 (213 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
SourcePackage: xfce4-settings
UpgradeStatus: Upgraded to utopic on 2014-11-22 (0 days ago)
| icyrock.com (icyrock-com) wrote : | #1 |
| icyrock.com (icyrock-com) wrote : | #3 |
- xfce4-volumed seems not to be working properly after that
- Restarting xfce4-volumed fixes the multimedia keys not working. One CPU core is still used by xfsettingsd
- Restarting both xfsettingsd and xfce4-volumed or just xfce4-volumed fixes the CPU issue
- If I kill xfsettingsd, leave xfce4-volumed running, run xflock4, unlock the screen, xfce4-volumed seems to be working fine and CPU issue does not manifest
- If I kill xfce4-volumed, leave xfsettingsd running, run xflock4, unlock the screen, I run into the CPU issue. Restarting xfsettingsd resolves the issue
This leads me to believe it's not a xfce4-volumed issue. It looks like these two are influencing each other, though, or something along those lines. Maybe xfsettingsd and xflock4 influencing each other?
One more thing - when unlocking with xfsettingsd running, the whole system seems to freeze for about 10 seconds or so, even the CPU monitors or time displayed in the corner are not moving during that period.
| Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in xfce4-settings (Ubuntu): | |
| status: | New → Confirmed |
| Changed in xfce4-volumed (Ubuntu): | |
| status: | New → Confirmed |
| icyrock.com (icyrock-com) wrote : | #6 |
May be related to https:/
| icyrock.com (icyrock-com) wrote : | #7 |
After reading the bug I mentioned in #6, I tried waiting after logging in. The CPU usage went down in about 3 minutes without restarting xfsettingsd. This leads me to believe these bugs are more related than I thought. Contrary to #10 in that bug (https:/
| Steve Dodier-Lazaro (sidi) wrote : | #8 |
If that's any useful, some of the bug reports I've had with xfce4-volumed were related to how (now defunct) libkeybinder handles keyboard layout changes. Are such changes (even from/to the same layout) triggerred by switching to whatever launcher Xubuntu uses?
| icyrock.com (icyrock-com) wrote : | #9 |
I sometimes see these in a terminal after unlocking the screen:
xmodmap: please release the following keys within 2 seconds:
r (keysym 0x72, keycode 27)
Control_R (keysym 0xffe4, keycode 105)
Not sure if that is related at all to this bug.
Please forward this bug to the Xfce bug tracker. Thanks in advance.
| Steve Dodier-Lazaro (sidi) wrote : | #11 |
The bug would be rejected against upstream xfce4-volumed with the information available so far. I cannot fix bugs that I cannot reproduce. It could help to report against xfce4-settings. Note the following though:
So far the following conditions are known to trigger the bug:
OS: Ubuntu 14.10 64bits
GPU: AMD ???
Keyboard: ???
Layout: ???
Concurrent software that binds keys: ???
X11 version: ???
I don't have Ubuntu and AMD and so I cannot reproduce the bug. I strongly suspect that the issue is not just with xfce4 apps though but with key binding or key pressing, e.g., a X11/driver bug that is triggered (by some unknown conditions) and causes apps that bind keys to freeze.
OP, could you please attach a 'lshw' output and bring this bug report to the attention of X11 Ubuntu maintainers? They might have seen something similar for GNOME/KDE/Unity users.
Thanks.
| icyrock.com (icyrock-com) wrote : | #12 |
Added lshw output.
Answers to other questions:
>> OS: Ubuntu 14.10 64bits
<
Linux aclap 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>> GPU: AMD ???
<
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M]
>> Keyboard: ???
<
Bus 001 Device 004: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
>> Layout: ???
<
English (US)
>> Concurrent software that binds keys: ???
<
I don't think I have any.
>> X11 version: ???
<
ii xserver-xorg 1:7.7+7ubuntu2 amd64 X.Org X server
X.Org X Server 1.16.0
Release Date: 2014-07-16
| Changed in xfce4-volumed (Ubuntu): | |
| importance: | Undecided → High |
| Changed in xfce4-settings (Ubuntu): | |
| importance: | Undecided → High |
| icyrock.com (icyrock-com) wrote : | #13 |
I ran a strace on the xfsettingsd pid, logged out, logged in and I could see a lot of these repeating:
poll([{fd=3, events=
writev(3, [{"\20\
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(
recvmsg(3, 0x7fffc492a350, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7fffc492a350, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=
writev(3, [{"\20\
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(
recvmsg(3, 0x7fffc492a350, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7fffc492a350, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=
writev(3, [{"\20\
poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(
recvmsg(3, 0x7fffc492a350, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, 0x7fffc492a350, 0) = -1 EAGAIN (Resource temporarily unavailable)
The values are different between the calls as you can see (though usually similar), but they seem to be repeating endlessly, till the system settles down several minutes down the road, when it all stops.
Not sure if relevant, let me know if I can provide any information that could help track the issue down.
|
|
#15 |
*Note*: the below is copy & paste from https:/
Just upgraded to Xubuntu 14.10, had issues with fglrx (see http://
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1572 root 20 0 262892 56672 26480 R 89.7 1.4 6:48.70 Xorg
5025 usr 20 0 312116 11336 4632 R 36.9 0.3 0:17.42 xfce4-volumed
5036 usr 20 0 327328 10556 5760 S 31.5 0.3 0:13.38 xfsettingsd
Additional information:
- Killing and restarting xfsettingsd and xfce4-volumed resolves the issue until next sleep cycle
- When running only xfce4-volumed, but not xfsettingsd, the issue does not appear
- This can be reproduced always. ATI Radeon Mobility HD 5650 video card
- The CPU usage does not seem to go down after a while
- If I got it correctly, it looks like some other processes are also going to high CPU usage after killing xfce4-volumed. I think I saw xfce4-xkb-plugin going to 95% CPU usage
- The issue happens before unlock, i.e. locking then pressing a key to get a login dialog, then switching to vty1 and doing a top yields the above
Not sure what else I should check / post that can be useful for troubleshooting, let me know.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: xfce4-settings 4.11.3-0ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Nov 23 18:34:02 2014
InstallationDate: Installed on 2014-04-24 (213 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
SourcePackage: xfce4-settings
UpgradeStatus: Upgraded to utopic on 2014-11-22 (0 days ago)
| icyrock.com (icyrock-com) wrote : | #14 |
As per request by Thaddaeus Tintenfisch (thad-fisch) on 2014-12-13:, I've created a bug report on bugzilla.xfce.org: https:/
| Changed in xfce4-settings: | |
| importance: | Unknown → Medium |
| status: | Unknown → Confirmed |
|
|
#16 |
I have the same issue but with intel graphics. One difference is that that the high load on Xorg goes away after about a minute and the system behaves normally.
I can also produce this high load using
xmodmap -pke > .Xmodmap
xmodmap ~/.Xmodmap
|
|
#17 |
*** Bug 11611 has been marked as a duplicate of this bug. ***
|
|
#18 |
Thanks Timo. Check the comment #7 I posted on the launchpad bug - (https:/
I tried the thing you used to reproduce:
xmodmap -pke > .Xmodmap
xmodmap ~/.Xmodmap
and I can confirm it generates high load on my machine, too. In my case, it took 4 minutes for this one also to calm down, which is somewhat consistent with the 3 minutes I measured before when unlocking the screen.
|
|
#19 |
Thanks for your comment!
Do you have a workaround on your system? Next thing I was going to try is to experiment with different tools to provide screen locking (light-locker, xscreensaver, gnome-screensaver, ...).
|
|
#20 |
Unfortunately, nothing better than just:
killall xfsettingsd; killall xfce4-volumed; sleep 6; xfsettingsd & xfce4-volumed &
I don't think it is a problem with the locker itself though, to me it looks like it's just a trigger for an issue in xfce4-volumed or something related to its interaction with the X system.
Check my comment #3 on the referenced launchpad bug (https:/
Given comment #8 on that bug (https:/
I put as much information on the other bug report as I knew how to gather / thought would be useful. If somebody can let me know what could help fixing, I can try providing those or doing additional testing.
|
|
#21 |
Okay, I found a great workaround for me:
1. I made sure I removed light-locker, gnome-screensaver, xscreensaver, kscreensaver, etc..
2. installed xscreensaver
3. reboot
Standby/resume and screen unlocking now works perfectly. While xmodmap is still broken, I don't care about that.
|
|
#22 |
Thanks Timo - I only had light-locker installed, so I did this:
1. Uninstall light-locker
2. Install xcreensaver
3. Reboot
Agreed, it seems to be working fine now, so might be something related either to light-locker or how it interacts with xfsettingsd.
Thanks for posting a workaround!
| Launchpad Janitor (janitor) wrote : | #23 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in xserver-xorg-video-ati (Ubuntu): | |
| status: | New → Confirmed |
| Changed in xserver-xorg-video-ati (Ubuntu): | |
| importance: | Undecided → High |
| no longer affects: | xserver-xorg-video-ati (Ubuntu) |


Does xfce4-volumed stop working properly (bug 1384831)?