{"id":1535,"date":"2024-01-06T13:29:06","date_gmt":"2024-01-06T13:29:06","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=1535"},"modified":"2024-01-06T20:45:16","modified_gmt":"2024-01-06T20:45:16","slug":"bluetooth-on-linux","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2024\/01\/06\/bluetooth-on-linux\/","title":{"rendered":"Bluetooth on Linux"},"content":{"rendered":"\n<p>I have never used bluetooth in Linux before. I have a bluetooth headphone from work that works fine with my phone and macos but I wanted to try it in Linux.<\/p>\n\n\n\n<p>So I give it a quick go last night. This was my initial <a href=\"https:\/\/www.howtogeek.com\/829360\/how-to-set-up-bluetooth-on-linux\/\">link<\/a>. I had already installed the driver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># dpkg -l | grep bluez\nii bluez 5.70-1.1 amd64 Bluetooth tools and daemons\nii bluez-obexd 5.70-1.1 amd64 bluez obex daemon\n#<\/code><\/pre>\n\n\n\n<p> I had to install &#8220;blueman&#8221; that is the frontend to manage your bluetooth devices later:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># dpkg -l | grep blueman\nii blueman 2.3.5-3 amd64 Graphical bluetooth manager\n#<\/code><\/pre>\n\n\n\n<p>The service was already enabled:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@athens:\/boot# systemctl status bluetooth.service\n\u25cf bluetooth.service - Bluetooth service\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/bluetooth.service; enabled; preset: enabled)\n     Active: active (running) since Sat 2024-01-06 11:58:33 GMT; 54min ago\n       Docs: man:bluetoothd(8)\n   Main PID: 1137 (bluetoothd)\n     Status: \"Running\"\n      Tasks: 1 (limit: 9334)\n     Memory: 3.1M ()\n     CGroup: \/system.slice\/bluetooth.service\n             \u2514\u25001137 \/usr\/libexec\/bluetooth\/bluetoothd\n\nJan 06 11:58:42 athens bluetoothd&#91;1137]: Endpoint registered: sender=:1.43 path=\/MediaEndpoint\/A2DPSource\/opus_05_duplex\nJan 06 11:58:42 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:42 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nJan 06 11:58:44 athens bluetoothd&#91;1137]: Failed to add UUID: Failed (0x03)\nroot@athens:\/boot# \n<\/code><\/pre>\n\n\n\n<p>Then I had to enable bluetooth:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rfkill list\n0: hci0: Bluetooth\nSoft blocked: yes\nHard blocked: no\n1: phy0: Wireless LAN\nSoft blocked: no\nHard blocked: no\n#\n# rfkill unblock bluetooth\n#\n# rfkill list\n0: hci0: Bluetooth\nSoft blocked: no\nHard blocked: no\n1: phy0: Wireless LAN\nSoft blocked: no\nHard blocked: no\n#<\/code><\/pre>\n\n\n\n<p>Then I can test it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ blueman-manager &amp;<\/code><\/pre>\n\n\n\n<p>But once I paired the device&#8230;. I had an error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>br-connection-profile-unavailable<\/code><\/pre>\n\n\n\n<p>I found several links and this is the only things that worked for me: <a href=\"https:\/\/askubuntu.com\/questions\/1479606\/bluetooth-br-connection-profile-unavailable-issue-on-upgrade-to-xubuntu-23-04\">link1<\/a> and <a href=\"https:\/\/forums.debian.net\/viewtopic.php?t=155520\">link2<\/a>. So I had to install &#8220;libspa-0.2-bluetooth&#8221; and reboot:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># dpkg -l | grep libspa-0.2-bluetooth\nii libspa-0.2-bluetooth:amd64 1.0.0-1 amd64 libraries for the PipeWire multimedia server - bluetooth plugins\n#<\/code><\/pre>\n\n\n\n<p>So I managed to paired the headseats without error but then a new issue&#8230; I lost internet connection&#8230;. And after checking several things, it was just enabling bluetooth that caused the lost of internet access. There was nothing in the logs saying anything about my wifi disconnecting or anything similar&#8230;.<\/p>\n\n\n\n<p>If I disabled bluetooth, my connection was back&#8230;. so more work to do. So it seems there is some interference between the modules or the drivers? Searched things about it. I checked <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=185809\">this<\/a>. But no luck yet. <\/p>\n\n\n\n<p>To be continued.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have never used bluetooth in Linux before. I have a bluetooth headphone from work that works fine with my phone and macos but I wanted to try it in Linux. So I give it a quick go last night. This was my initial link. I had already installed the driver: I had to install &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2024\/01\/06\/bluetooth-on-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bluetooth on Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1535","post","type-post","status-publish","format-standard","hentry","category-unix"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/1535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1535"}],"version-history":[{"count":4,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/1535\/revisions"}],"predecessor-version":[{"id":1539,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/1535\/revisions\/1539"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=1535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=1535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}