{"id":392,"date":"2024-03-24T21:11:01","date_gmt":"2024-03-24T13:11:01","guid":{"rendered":"https:\/\/likesite.win\/?p=392"},"modified":"2024-05-25T21:15:56","modified_gmt":"2024-05-25T13:15:56","slug":"gentoo-bluetooth","status":"publish","type":"post","link":"https:\/\/189505.xyz\/?p=392","title":{"rendered":"gentoo bluetooth"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_40 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" area-label=\"ez-toc-toggle-icon-1\"><label for=\"item-6a1cbb8de0ba4\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-6a1cbb8de0ba4\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/189505.xyz\/?p=392\/#Connection_Failed_br-connection-profile-unavailable\" title=\"\nConnection Failed: br-connection-profile-unavailable \n\">\nConnection Failed: br-connection-profile-unavailable \n<\/a><ul class='ez-toc-list-level-2'><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/189505.xyz\/?p=392\/#%E6%9C%89%E7%94%A8%E7%9A%84%E7%BA%BF%E7%B4%A2\" title=\"\n\u6709\u7528\u7684\u7ebf\u7d22 \n\">\n\u6709\u7528\u7684\u7ebf\u7d22 \n<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/189505.xyz\/?p=392\/#%E5%9F%BA%E4%BA%8Epulseaudio\" title=\"\n\u57fa\u4e8epulseaudio \n\">\n\u57fa\u4e8epulseaudio \n<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/189505.xyz\/?p=392\/#%E6%88%90%E5%8A%9F\" title=\"\n\u6210\u529f \n\">\n\u6210\u529f \n<\/a><ul class='ez-toc-list-level-2'><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/189505.xyz\/?p=392\/#pactl_list%E7%9A%84l%E8%BE%93%E5%87%BA\" title=\"\npactl list\u7684l\u8f93\u51fa \n\">\npactl list\u7684l\u8f93\u51fa \n<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/189505.xyz\/?p=392\/#%E6%9C%80%E7%BB%88%E6%88%90%E5%8A%9F%E8%BF%9E%E6%8E%A5\" title=\"\n\u6700\u7ec8\u6210\u529f\u8fde\u63a5 \n\">\n\u6700\u7ec8\u6210\u529f\u8fde\u63a5 \n<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/189505.xyz\/?p=392\/#%E5%8A%A0%E8%BD%BD%E6%A8%A1%E5%9D%97%E5%A4%B1%E8%B4%A5\" title=\"\n\u52a0\u8f7d\u6a21\u5757\u5931\u8d25 \n\">\n\u52a0\u8f7d\u6a21\u5757\u5931\u8d25 \n<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/189505.xyz\/?p=392\/#taobao\" title=\"\ntaobao \n\">\ntaobao \n<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Connection_Failed_br-connection-profile-unavailable\"><\/span>\nConnection Failed: br-connection-profile-unavailable<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"%E6%9C%89%E7%94%A8%E7%9A%84%E7%BA%BF%E7%B4%A2\"><\/span>\n\u6709\u7528\u7684\u7ebf\u7d22<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/forums.gentoo.org\/viewtopic-p-8810212.html?sid=cf51355a4687ecd59cef7586b7e6b97a\">https:\/\/forums.gentoo.org\/viewtopic-p-8810212.html?sid=cf51355a4687ecd59cef7586b7e6b97a<\/a><\/p>\n<p>\n\u5728\u81ea\u5df1\u673a\u5668\u4e0a\uff0c\u7528\u666e\u901a\u7528\u6237\u770bpa-info\u8f93\u51fa\u548c\/etc\/pulse\/default.pa\u4e2d\u6709\u6ca1\u6709bluetooth\u76f8\u5173\u7684\u5173\u952e\u5b57\n<\/p>\n<p>pulseaudio-daemon\u6709bluetooth\u76f8\u5173\u7684\u5e93<\/p>\n<pre><code>...\nequery f media-sound\/pulseaudio-daemon\n\/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-discover.so\n\/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-policy.so\n\n...\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u5e93\u662f\u8981\u88ab\u7528\u7684<\/p>\n<pre><code>D.Gen|icefire|2024-03-24 21:32:16[ice@ etc]ps aux | grep pulseaudio\nice       4269  0.5  0.0 1315988 23320 ?       Sl   20:46   0:15 \/usr\/bin\/pulseaudio --start --log-target=syslog\nice      19165  0.0  0.0   8628  1788 pts\/1    S+   21:32   0:00 grep --color pulseaudio\nD.Gen|icefire|2024-03-24 21:32:29[ice@ etc]lsof -p 4269 | grep bluetooth\npulseaudi 4269  ice mem       REG                8,5    14192  8009114 \/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-discover.so\npulseaudi 4269  ice mem       REG                8,5    18496  8009230 \/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-policy.so\nD.Gen|icefire|2024-03-24 21:32:31[ice@ etc]lsof \/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-discover.so\nCOMMAND    PID USER  FD   TYPE DEVICE SIZE\/OFF    NODE NAME\npulseaudi 4269  ice mem    REG    8,5    14192 8009114 \/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-discover.so\nD.Gen|icefire|2024-03-24 21:32:49[ice@ etc]lsof \/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-policy.so\nCOMMAND    PID USER  FD   TYPE DEVICE SIZE\/OFF    NODE NAME\npulseaudi 4269  ice mem    REG    8,5    18496 8009230 \/usr\/lib64\/pulseaudio\/modules\/module-bluetooth-policy.so\n<\/code><\/pre>\n<p>\n\u8981\u88ab\u52a0\u8f7d\uff0c\u662f\u8981\u6709\u914d\u7f6e\u6587\u4ef6\u6307\u51fa\n<\/p>\n<p>\u5bf9\u5e94\u7684\u914d\u7f6e\u6587\u4ef6\u662f\/etc\/pulse\/default.pa\uff0c\u5982\u679c\u4ee5\u524d\u5b89\u88c5pulseaudio-daemon\u6ca1\u6709bluetooth\uff0c\uff0c\/etc\/pulse\/default.pa\u4f1a\u4e0dload bluetooth\uff0c\u91cd\u65b0\u5b89\u88c5pulseaudio-daemon with bluetooth\uff0c\/etc\/pulse\/default.pa\u6709\u53ef\u80fd\uff0c\u4e0d\u4f1a\u81ea\u52a8\u52a0\u4e0aload-module module-bluetooth-policy, load-module module-bluetooth-policy<br \/>\n\u6211\u662f\u628a\/etc\/pulse\/._cfg0001_default.pacopy\u6210\/etc\/pulse\/default.pa\u3002<\/p>\n<pre><code>D.Gen|icefire|2024-03-24 21:39:05[ice@ etc]sed -n &#039;58,65p&#039; \/etc\/pulse\/default.pa\n### Automatically load driver modules for Bluetooth hardware\n.ifexists module-bluetooth-policy.so\nload-module module-bluetooth-policy\n.endif\n\n.ifexists module-bluetooth-discover.so\nload-module module-bluetooth-policy\n.endif\n<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E4%BA%8Epulseaudio\"><\/span>\n\u57fa\u4e8epulseaudio<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u597d\u4e0d\u5bb9\u6613\u628aConnection Failed: br-connection-profile-unavailable\u641e\u6389\uff0c\u62a5\u9519\u53d8\u6210\u4e86:<\/p>\n<pre><code>org.freedesktop.DBus.Error.AccessDenied<\/code><\/pre>\n<p>\u641c\u7d22\uff0c\u627e\u5230\u8fd9\u4e2a\u89e3\u51b3\u65b9\u6848<br \/>\n<a href=\"https:\/\/github.com\/sputnikdev\/eclipse-smarthome-bluetooth-binding\/issues\/9\">https:\/\/github.com\/sputnikdev\/eclipse-smarthome-bluetooth-binding\/issues\/9<\/a><br \/>\n\u7ed3\u5408\u81ea\u5df1\u5b9e\u9645\u60c5\u51b5\uff0c\u4fee\u6539\/etc\/dbus-1\/system.d\/bluetooth.conf\u914d\u7f6e<br \/>\n\u628aroot\u7684\u914d\u7f6ecopy\u4e00\u4e2a<\/p>\n<pre><code>  &lt;policy user=&quot;root&quot;&gt;\n    &lt;allow own=&quot;org.bluez&quot;\/&gt;\n    &lt;allow send_destination=&quot;org.bluez&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.Agent1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.MediaEndpoint1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.MediaPlayer1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.Profile1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.GattCharacteristic1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.GattDescriptor1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.LEAdvertisement1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.freedesktop.DBus.ObjectManager&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.freedesktop.DBus.Properties&quot;\/&gt;\n  &lt;\/policy&gt;\n<\/code><\/pre>\n<p>\u666e\u901a\u7528\u6237\u7684\u914d\u7f6e<\/p>\n<pre><code>  &lt;policy user=&quot;ice&quot;&gt;\n    &lt;allow own=&quot;org.bluez&quot;\/&gt;\n    &lt;allow send_destination=&quot;org.bluez&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.Agent1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.Device1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.MediaEndpoint1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.MediaPlayer1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.Profile1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.GattCharacteristic1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.GattDescriptor1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.bluez.LEAdvertisement1&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.freedesktop.DBus.ObjectManager&quot;\/&gt;\n    &lt;allow send_interface=&quot;org.freedesktop.DBus.Properties&quot;\/&gt;\n  &lt;\/policy&gt;<\/code><\/pre>\n<p>\u7279\u522b\u6ce8\u610f:org.bluez.Device1\u8981\u52a0\u4e0a\uff0c\u8fd9\u4e2a\u662f\u5728\u62a5\u9519\u4fe1\u606f\u7ed9\u51fa\u7684\uff0c\u4e00\u5b9a \u8981\u52a0\u4e0a<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E6%88%90%E5%8A%9F\"><\/span>\n\u6210\u529f<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"pactl_list%E7%9A%84l%E8%BE%93%E5%87%BA\"><\/span>\npactl list\u7684l\u8f93\u51fa<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>D.Gen|icefire|2024-03-24 21:13:58[ice@ ~]pactl list | grep -i bluez_card\n    Name: bluez_card.C0_EA_C3_16_6C_E7\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E6%9C%80%E7%BB%88%E6%88%90%E5%8A%9F%E8%BF%9E%E6%8E%A5\"><\/span>\n\u6700\u7ec8\u6210\u529f\u8fde\u63a5<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code>bluetooth]# devices\nDevice A4:45:19:BD:4B:A2 VimerRedmiK30\nDevice 74:E6:81:55:1C:71 74-E6-81-55-1C-71\nDevice D4:84:57:CA:C7:FD midea\nDevice 7A:46:F4:0E:EB:7A 7A-46-F4-0E-EB-7A\nDevice C0:EA:C3:16:6C:E7 iKF-King Pro\n[bluetooth]# scan off\n[bluetooth]# [CHG] Device C0:EA:C3:16:6C:E7 RSSI is nil\n[bluetooth]# [CHG] Device D4:84:57:CA:C7:FD RSSI is nil\n[bluetooth]# [CHG] Device 74:E6:81:55:1C:71 RSSI is nil\n[bluetooth]# [CHG] Device 7A:46:F4:0E:EB:7A TxPower is nil\n[bluetooth]# [CHG] Device 7A:46:F4:0E:EB:7A RSSI is nil\n[bluetooth]# [CHG] Controller 00:1A:7D:DA:71:02 Discovering: no\n[bluetooth]# Discovery stopped\n[bluetooth]# devices\nDevice A4:45:19:BD:4B:A2 VimerRedmiK30\nDevice 74:E6:81:55:1C:71 74-E6-81-55-1C-71\nDevice D4:84:57:CA:C7:FD midea\nDevice 7A:46:F4:0E:EB:7A 7A-46-F4-0E-EB-7A\nDevice C0:EA:C3:16:6C:E7 iKF-King Pro\n[bluetooC0:EA:C3:16:6C:E7A:C3:16:6C:E7\nAttempting to connect to C0:EA:C3:16:6C:E7\n[CHG] Device C0:EA:C3:16:6C:E7 Connected: yes\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 Modalias: bluetooth:v05D6p000Ad0240\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: 00001101-0000-1000-8000-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: 00001200-0000-1000-8000-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 UUIDs: fe010000-1234-5678-abcd-00805f9b34fb\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 ServicesResolved: yes\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 Bonded: yes\n[iKF-King Pro]# [CHG] Device C0:EA:C3:16:6C:E7 Paired: yes\n[iKF-King Pro]# [NEW] Endpoint \/org\/bluez\/hci0\/dev_C0_EA_C3_16_6C_E7\/sep1 \n[iKF-King Pro]# [NEW] Endpoint \/org\/bluez\/hci0\/dev_C0_EA_C3_16_6C_E7\/sep2 \n[iKF-King Pro]# [NEW] Endpoint \/org\/bluez\/hci0\/dev_C0_EA_C3_16_6C_E7\/sep3 \n[iKF-King Pro]# [NEW] Transport \/org\/bluez\/hci0\/dev_C0_EA_C3_16_6C_E7\/sep1\/fd1 \n[iKF-King Pro]# Connection successful\n<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E5%8A%A0%E8%BD%BD%E6%A8%A1%E5%9D%97%E5%A4%B1%E8%B4%A5\"><\/span>\n\u52a0\u8f7d\u6a21\u5757\u5931\u8d25<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<pre><code>modprobe: FATAL: Module btusb not found in directory \/lib\/modules\/6.1.67-gentoo.ice-3-20171001<\/code><\/pre>\n<p>\u89e3\u51b3:<\/p>\n<pre><code>depmod -a<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"taobao\"><\/span>\ntaobao<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<pre><code>\/mast\/packageLinux\/bluetooth_driver\/taobao\/\nhciconfig  hci0 up\n\u91cd\u65b0\u63d2\u62d4\n\/etc\/init.d\/bluetooth restart\nmodprobe rtk_btusb<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Connection Failed: br-connection-profile-unavailable \u6709\u7528 &#8230; <a title=\"gentoo bluetooth\" class=\"read-more\" href=\"https:\/\/189505.xyz\/?p=392\" aria-label=\"More on gentoo bluetooth\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/392"}],"collection":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":17,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/448"}],"wp:attachment":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}