You are not logged in.

#1 2011-07-21 07:34:02

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

bluetoothd using 100% CPU

I updated Arch yesterday and since then the bluetoothd process is using 100% of one of the CPU cores (displays as 50%). Tried restarting but to no avail.
Bluetooth received is off (through the applet) and there is nothing connected to it.

Any ideas?

Last edited by Lockheed (2011-07-21 07:35:20)

Offline

#2 2011-07-21 09:54:29

wazow
Member
From: Europe
Registered: 2008-11-11
Posts: 39

Re: bluetoothd using 100% CPU

Seeing precisely the same down here.

Offline

#3 2011-07-21 17:06:34

kernel_geek
Member
From: UK
Registered: 2010-06-19
Posts: 17
Website

Re: bluetoothd using 100% CPU

Same here too!

Offline

#4 2011-07-23 09:42:41

Silenzium
Member
From: Germany
Registered: 2011-05-03
Posts: 32

Re: bluetoothd using 100% CPU

I can confirm this, too. Stopping the daemon as a work around.

Offline

#5 2011-07-23 17:56:00

spark666
Member
Registered: 2011-05-23
Posts: 137

Re: bluetoothd using 100% CPU

i have the same problem:(

Offline

#6 2011-07-26 19:59:11

rickdg
Member
From: The Lowlands
Registered: 2011-01-01
Posts: 24

Re: bluetoothd using 100% CPU

For me it usually happens after a resume from suspend. Can't look into the log files because somehow they're all empty... (but that's for another topic)

Offline

#7 2011-07-27 17:30:39

giddie
Member
From: Birmingham, UK
Registered: 2009-03-25
Posts: 125

Re: bluetoothd using 100% CPU

I get bluetoothd running rampant at 100% CPU every time I resume from suspend.  It's fine after it's restarted.  Rebuilding bluez from ABS didn't help.

It should be possible to work around this by restarting the "bluetooth" daemon from /etc/pm/sleep.d, but I'd rather find a proper fix.

Offline

#8 2011-07-28 03:33:18

michaudg
Member
Registered: 2009-12-11
Posts: 11

Re: bluetoothd using 100% CPU

Same here when i resume from sleep mode.

Offline

#9 2011-07-28 05:34:00

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: bluetoothd using 100% CPU

In my case it is like this at all times, not just after resume.

Last edited by Lockheed (2011-07-28 05:34:11)

Offline

#10 2011-07-29 20:21:16

Sunny
Member
Registered: 2011-07-29
Posts: 1

Re: bluetoothd using 100% CPU

Same here. It happens every time i switch off my bluetooth.

Offline

#11 2011-07-31 21:02:57

syre
Member
From: Denmark
Registered: 2009-08-04
Posts: 100

Re: bluetoothd using 100% CPU

same here, after resume from suspend

Offline

#12 2011-07-31 21:49:51

giddie
Member
From: Birmingham, UK
Registered: 2009-03-25
Posts: 125

Re: bluetoothd using 100% CPU

I created the following file at /etc/pm/sleep.d/90bluetoothd-workaround as a temporary workaround:

#!/bin/sh
#
# Workaround for bluetoothd CPU usage after suspend

case "$1" in
hibernate|suspend)
;;
thaw|resume)
/etc/rc.d/bluetooth restart
;;
*) exit $NA
;;
esac

Offline

#13 2011-08-01 08:05:37

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: bluetoothd using 100% CPU

giddie wrote:

I created the following file at /etc/pm/sleep.d/90bluetoothd-workaround as a temporary workaround:

#!/bin/sh
#
# Workaround for bluetoothd CPU usage after suspend

case "$1" in
hibernate|suspend)
;;
thaw|resume)
/etc/rc.d/bluetooth restart
;;
*) exit $NA
;;
esac

That is very nice but what about those of us who have the deamon using 100% of cpu regardless of the system being resumed or freshly restarted (basically ALWAYS)?

Offline

#14 2011-08-01 09:10:28

giddie
Member
From: Birmingham, UK
Registered: 2009-03-25
Posts: 125

Re: bluetoothd using 100% CPU

I would probably stop the "bluetooth" daemon and only start it when I actually *need* bluetooth, which for me is not very often at all.  If it was really a priority issue, I might spend some time with strace or a similar tool to try & find out why bluetoothd is locked up, and search around for a related patch.

Offline

#15 2011-08-01 09:17:54

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: bluetoothd using 100% CPU

The problem is the daemon does not really work. It crashes when I try to transfer files, so even keeping it off (as I do now) and enabling when needed, would not work.

Offline

#16 2011-08-01 09:22:57

giddie
Member
From: Birmingham, UK
Registered: 2009-03-25
Posts: 125

Re: bluetoothd using 100% CPU

I assume you've tried rebuilding bluez from ABS, yeah?  That's usually my first port of call.

Then I'd suggest you try to get a backtrace (if it crashes), or strace, or similar debug information, and search for a related bug report against bluez, or file a new one.  It seems pretty likely that it's an upstream bug.

Offline

#17 2011-08-02 15:30:36

giddie
Member
From: Birmingham, UK
Registered: 2009-03-25
Posts: 125

Re: bluetoothd using 100% CPU

This seems to have been fixed for me with the recent upgrade to bluez 4.96-1.

Offline

#18 2011-08-04 14:34:35

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: bluetoothd using 100% CPU

Hallelujah.

Offline

Board footer

Powered by FluxBB