Now I get this: isaac@isaac-Inspiron-3583:~$ sudo gdb [sudo] password for isaac: GNU gdb (Ubuntu 8.3-0ubuntu1) 8.3 Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) attach 794 Attaching to process 794 Reading symbols from target:/usr/local/libexec/bluetooth/bluetoothd... Reading symbols from target:/lib/x86_64-linux-gnu/libglib-2.0.so.0... (No debugging symbols found in target:/lib/x86_64-linux-gnu/libglib-2.0.so.0) Reading symbols from target:/lib/x86_64-linux-gnu/libdbus-1.so.3... (No debugging symbols found in target:/lib/x86_64-linux-gnu/libdbus-1.so.3) Reading symbols from target:/lib/x86_64-linux-gnu/libdl.so.2... Reading symbols from target:/usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.30.so... Reading symbols from target:/lib/x86_64-linux-gnu/libc.so.6... Reading symbols from target:/usr/lib/debug//lib/x86_64-linux-gnu/libc-2.30.so... Reading symbols from target:/lib/x86_64-linux-gnu/libpcre.so.3... (No debugging symbols found in target:/lib/x86_64-linux-gnu/libpcre.so.3) Reading symbols from target:/lib/x86_64-linux-gnu/libpthread.so.0... Reading symbols from /usr/lib/debug/.build-id/7f/4107df84da625f1b445ade877e1e0ab6ba823d.debug... [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Reading symbols from target:/lib/x86_64-linux-gnu/libsystemd.so.0... (No debugging symbols found in target:/lib/x86_64-linux-gnu/libsystemd.so.0) Reading symbols from target:/lib64/ld-linux-x86-64.so.2... (No debugging symbols found in target:/lib64/ld-linux-x86-64.so.2) Reading symbols from target:/lib/x86_64-linux-gnu/librt.so.1... Reading symbols from target:/usr/lib/debug//lib/x86_64-linux-gnu/librt-2.30.so... Reading symbols from target:/lib/x86_64-linux-gnu/liblzma.so.5... (No debugging symbols found in target:/lib/x86_64-linux-gnu/liblzma.so.5) Reading symbols from target:/lib/x86_64-linux-gnu/liblz4.so.1... (No debugging symbols found in target:/lib/x86_64-linux-gnu/liblz4.so.1) Reading symbols from target:/lib/x86_64-linux-gnu/libgcrypt.so.20... (No debugging symbols found in target:/lib/x86_64-linux-gnu/libgcrypt.so.20) Reading symbols from target:/lib/x86_64-linux-gnu/libgpg-error.so.0... (No debugging symbols found in target:/lib/x86_64-linux-gnu/libgpg-error.so.0) --Type <RET> for more, q to quit, c to continue without paging-- 0x00007f888e505f66 in g_main_context_prepare () from target:/lib/x86_64-linux-gnu/libglib-2.0.so.0 (gdb) thread apply all bt Thread 1 (Thread 0x7f888df97c00 (LWP 794)): #0 0x00007f888e505f66 in g_main_context_prepare () from target:/lib/x86_64-linux-gnu/libglib-2.0.so.0 #1 0x00007f888e5069db in ?? () from target:/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f888e506e33 in g_main_loop_run () from target:/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x000055b91a835959 in mainloop_run () at src/shared/mainloop-glib.c:79 #4 0x000055b91a835dc0 in mainloop_run_with_signal (func=<optimized out>, user_data=0x0) at src/shared/mainloop-notify.c:201 #5 0x000055b91a79f5fe in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:770 (gdb) I actually noticed that when I attached the process (or maybe when I backtracked it), it slowed down or even stopped and the CPU fan went off. When I closed gdb and detached it, the process resumed once again taking up lots of CPU power and making the fan go on. I also noticed that this only happens if I don't use the keyboard for a while. If the process is busy and I start typing on the keyboard, it immediately slows down and goes back to normal. I wonder if the keyboard has a feature that it "goes to sleep". Maybe then the bluetooth program is polling for the keyboard and not finding it. Isaac Cohen -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bluez in Ubuntu. https://bugs.launchpad.net/bugs/1871695 Title: Bluetoothd uses 100% of a CPU thread Status in bluez package in Ubuntu: Incomplete Bug description: Hi, I have a bluetooth keyboard that I use for my laptop, which runs Kubuntu 19.04. I noticed though, that a short while after connecting the keyboard, the CPU fan goes on and one of the threads is at 100%. If I open a terminal and type "top", it shows that a process called bluetoothd is taking 12% of the CPU power which is a full thread (100/8=12.5). I'm not sure what it's doing, but it doesn't require that much CPU power to work. If I end the process and restart it, the keyboard works fine and the CPU is calm until it happens again (about 20 minutes later). I reinstalled bluez and even tried recompiling from source, but the problem persists. My specs: Version of bluetoothd: 5.50 Linux Kernel: 5.3.0-46-generic KDE Plasma Version 5.16.5 Thank you, Isaac Cohen --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu8.8 Architecture: amd64 CurrentDesktop: KDE DistroRelease: Ubuntu 19.10 InstallationDate: Installed on 2019-12-15 (115 days ago) InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017) InterestingModules: rfcomm bnep btusb bluetooth Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0c45:671e Microdia Integrated_Webcam_HD Bus 001 Device 002: ID 27c6:5301 HTMicroelectronics Goodix Fingerprint Device Bus 001 Device 004: ID 0cf3:e009 Qualcomm Atheros Communications Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Dell Inc. Inspiron 3583 Package: bluez 5.50-0ubuntu5.1 [modified: lib/systemd/system/bluetooth.service lib/udev/hid2hci lib/udev/rules.d/97-hid2hci.rules] PackageArchitecture: amd64 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-46-generic root=UUID=dad855bd-aa2f-4675-a8a6-6fa960525f41 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 5.3.0-46.38-generic 5.3.18 Tags: eoan Uname: Linux 5.3.0-46-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 05/30/2019 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.5.1 dmi.board.name: 0WHCP7 dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.5.1:bd05/30/2019:svnDellInc.:pnInspiron3583:pvr:rvnDellInc.:rn0WHCP7:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: Inspiron dmi.product.name: Inspiron 3583 dmi.product.sku: 08CA dmi.sys.vendor: Dell Inc. hciconfig: hci0: Type: Primary Bus: USB BD Address: AC:D5:64:CC:54:D6 ACL MTU: 1024:8 SCO MTU: 50:8 UP RUNNING PSCAN ISCAN RX bytes:47194 acl:2390 sco:0 events:266 errors:0 TX bytes:3046 acl:50 sco:0 commands:163 errors:0 mtime.conffile..etc.dbus-1.system.d.bluetooth.conf: 2020-04-07T16:35:14.446062 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1871695/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp