{"id":115,"date":"2025-08-27T22:49:05","date_gmt":"2025-08-27T14:49:05","guid":{"rendered":"https:\/\/caoxunyi.cn\/?p=115"},"modified":"2025-08-27T22:49:13","modified_gmt":"2025-08-27T14:49:13","slug":"%e5%9c%a8-arch-linux-%e4%b8%ad%e4%bc%98%e9%9b%85%e5%9c%b0%e4%bd%bf%e7%94%a8%e8%93%9d%e7%89%99%ef%bc%9ablueman-%e5%9b%be%e5%bd%a2%e5%8c%96%e7%ae%a1%e7%90%86%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/caoxunyi.cn\/index.php\/115\/","title":{"rendered":"\u5728 Arch Linux \u4e2d\u4f18\u96c5\u5730\u4f7f\u7528\u84dd\u7259\uff1aBlueman \u56fe\u5f62\u5316\u7ba1\u7406\u6559\u7a0b"},"content":{"rendered":"<p>\u672c\u6559\u7a0b\u5c06\u624b\u628a\u624b\u5e26\u4f60\u5b89\u88c5\u548c\u914d\u7f6e <code>Blueman<\/code>\u2014\u2014\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u4e0d\u4f9d\u8d56\u7279\u5b9a\u684c\u9762\u73af\u5883\u7684\u84dd\u7259\u7ba1\u7406\u5668\uff0c\u8ba9\u4f60\u7684 Arch Linux \u84dd\u7259\u4f53\u9a8c\u5982\u4e1d\u822c\u987a\u6ed1\u3002<\/p>\n<h4>\u51c6\u5907\u5de5\u4f5c<\/h4>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u7ecf\uff1a<\/p>\n<ol>\n<li>\u62e5\u6709\u4e00\u4e2a\u6b63\u5e38\u8fd0\u884c\u7684 Arch Linux \u7cfb\u7edf\u3002<\/li>\n<li>\u5b89\u88c5\u4e86\u684c\u9762\u73af\u5883\uff08\u5982 XFCE, GNOME, KDE, Cinnamon \u7b49\uff09\u3002<\/li>\n<li>\u62e5\u6709 <code>sudo<\/code> \u6743\u9650\u3002<\/li>\n<\/ol>\n<h4>\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5\u6838\u5fc3\u7ec4\u4ef6\u548c Blueman<\/h4>\n<p>\u6211\u4eec\u9700\u8981\u5b89\u88c5\u51e0\u4e2a\u5173\u952e\u7684\u8f6f\u4ef6\u5305\uff1a\u84dd\u7259\u534f\u8bae\u6808\uff08BlueZ\uff09\u3001\u547d\u4ee4\u884c\u5de5\u5177\uff08bluez-utils\uff09\u4ee5\u53ca\u6211\u4eec\u7684\u4e3b\u89d2\uff08Blueman\uff09\u3002\u540c\u65f6\uff0c\u4e3a\u4e86\u8ba9\u84dd\u7259\u8033\u673a\u80fd\u591f\u6b63\u5e38\u64ad\u653e\u97f3\u4e50\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u786e\u4fdd\u97f3\u9891\u652f\u6301\u662f\u5b8c\u5907\u7684\u3002<\/p>\n<p>\u6253\u5f00\u4f60\u7684\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo pacman -S bluez bluez-utils blueman<\/code><\/pre>\n<p><strong>\u5173\u4e8e\u97f3\u9891\u652f\u6301\u7684\u91cd\u8981\u8bf4\u660e\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u5982\u679c\u4f60\u4f7f\u7528 PipeWire (\u5f53\u524d Arch Linux \u7684\u9ed8\u8ba4\u97f3\u9891\u670d\u52a1)<\/strong>: \u901a\u5e38\u60c5\u51b5\u4e0b\uff0c<code>pipewire-pulse<\/code> \u5305\u5df2\u7ecf\u4e3a\u4f60\u5904\u7406\u597d\u4e86\u84dd\u7259\u97f3\u9891\uff08A2DP\/HSP\/HFP\uff09\u3002\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u662f\u6700\u65b0\u7684\u5373\u53ef\u3002<\/li>\n<li><strong>\u5982\u679c\u4f60\u4ecd\u5728\u4f7f\u7528 PulseAudio<\/strong>: \u4f60\u9700\u8981\u989d\u5916\u5b89\u88c5 <code>pulseaudio-bluetooth<\/code>\u3002\n<pre><code class=\"lang-bash language-bash bash\">sudo pacman -S pulseaudio-bluetooth<\/code><\/pre>\n<p>\u5b89\u88c5\u540e\uff0c\u6700\u597d\u91cd\u542f PulseAudio \u670d\u52a1\u6216\u76f4\u63a5\u91cd\u542f\u7535\u8111\u4ee5\u4f7f\u6a21\u5757\u751f\u6548\u3002<\/p><\/li>\n<\/ul>\n<h4>\u7b2c\u4e8c\u6b65\uff1a\u542f\u52a8\u5e76\u5b88\u62a4\u84dd\u7259\u670d\u52a1<\/h4>\n<p>\u8f6f\u4ef6\u5305\u5b89\u88c5\u597d\u540e\uff0c\u6211\u4eec\u9700\u8981\u542f\u52a8\u7cfb\u7edf\u7684\u84dd\u7259\u670d\u52a1\uff0c\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f\uff0c\u8fd9\u6837\u6bcf\u6b21\u5f00\u673a\u540e\u84dd\u7259\u529f\u80fd\u5c31\u4f1a\u81ea\u52a8\u51c6\u5907\u5c31\u7eea\u3002<\/p>\n<ol>\n<li>\n<p><strong>\u7acb\u5373\u542f\u52a8\u84dd\u7259\u670d\u52a1<\/strong>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo systemctl start bluetooth.service<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/strong>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo systemctl enable bluetooth.service<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u670d\u52a1\u72b6\u6001\uff08\u53ef\u9009\uff09<\/strong>\uff1a\n\u4f60\u53ef\u4ee5\u968f\u65f6\u68c0\u67e5\u84dd\u7259\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u786e\u4fdd\u6ca1\u6709\u9519\u8bef\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo systemctl status bluetooth.service<\/code><\/pre>\n<p>\u5f53\u4f60\u770b\u5230\u7eff\u8272\u7684 <code>active (running)<\/code> \u5b57\u6837\u65f6\uff0c\u4e00\u5207\u5c31\u7eea\uff01<\/p>\n<pre><code>\u25cf bluetooth.service - Bluetooth service\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/bluetooth.service; enabled; preset: disabled)\n     Active: active (running) since Tue 2025-08-26 22:40:00 PDT; 5s ago\n       Docs: man:bluetoothd(8)\n   Main PID: 1234 (bluetoothd)\n     Status: &quot;Running&quot;\n      Tasks: 1 (limit: 9425)\n     Memory: 2.1M\n        CPU: 45ms\n     CGroup: \/system.slice\/bluetooth.service\n             \u2514\u25001234 \/usr\/lib\/bluetooth\/bluetoothd<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>\u7b2c\u4e09\u6b65\uff1a\u4f7f\u7528 Blueman \u8fde\u63a5\u4f60\u7684\u8bbe\u5907<\/h4>\n<p>\u73b0\u5728\uff0c\u6fc0\u52a8\u4eba\u5fc3\u7684\u65f6\u523b\u5230\u4e86\uff01\u91cd\u542f\u4f60\u7684\u7535\u8111\u6216\u91cd\u65b0\u767b\u5f55\u684c\u9762\u73af\u5883\uff0cBlueman \u7684\u56fe\u6807\u5c31\u4f1a\u81ea\u52a8\u51fa\u73b0\u5728\u4f60\u7684\u7cfb\u7edf\u6258\u76d8\uff08\u901a\u5e38\u5728\u5c4f\u5e55\u7684\u53f3\u4e0b\u89d2\u6216\u53f3\u4e0a\u89d2\uff09\u3002<\/p>\n<ol>\n<li>\n<p><strong>\u627e\u5230 Blueman \u56fe\u6807<\/strong>\uff1a\n\u5b83\u662f\u4e00\u4e2a\u84dd\u8272\u7684\u84dd\u7259\u6807\u5fd7\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6253\u5f00\u84dd\u7259\u9002\u914d\u5668<\/strong>\uff1a\n\u5de6\u952e\u5355\u51fb\u84dd\u7259\u56fe\u6807\uff0c\u786e\u4fdd\u4f60\u7684\u84dd\u7259\u9002\u914d\u5668\u5904\u4e8e\u5f00\u542f\u72b6\u6001\u3002\u5982\u679c\u5b83\u662f\u5173\u95ed\u7684\uff0c\u83dc\u5355\u4e2d\u4f1a\u6709\u201c\u5f00\u542f\u84dd\u7259\u201d\u6216\u201cTurn on Bluetooth\u201d\u7684\u9009\u9879\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u641c\u7d22\u8bbe\u5907<\/strong>\uff1a\n\u53f3\u952e\u5355\u51fb\u84dd\u7259\u56fe\u6807\uff0c\u6216\u8005\u5de6\u952e\u5355\u51fb\u540e\u5728\u4e3b\u7a97\u53e3\u4e2d\u9009\u62e9 \u201c\u9002\u914d\u5668(Adapter)\u201d -> \u201c\u641c\u7d22(Search)\u201d\u3002Blueman \u4f1a\u5f00\u59cb\u626b\u63cf\u5468\u56f4\u7684\u84dd\u7259\u8bbe\u5907\u3002<\/p>\n<ol start=\"4\">\n<li>\n<p><strong>\u914d\u5bf9\u8bbe\u5907<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5c06\u4f60\u7684\u84dd\u7259\u8bbe\u5907\uff08\u4f8b\u5982\uff0c\u7d22\u5c3c XM4 \u8033\u673a\uff09\u8bbe\u7f6e\u4e3a<strong>\u914d\u5bf9\u6a21\u5f0f<\/strong>\u3002<\/li>\n<li>\u5f88\u5feb\uff0c\u4f60\u5e94\u8be5\u80fd\u5728 Blueman \u7684\u8bbe\u5907\u5217\u8868\u4e2d\u770b\u5230\u4f60\u7684\u8bbe\u5907\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u4f60\u7684\u8bbe\u5907\uff0c\u9009\u62e9\u201c<strong>\u914d\u5bf9(Pair)<\/strong>\u201d\u3002\u6839\u636e\u8bbe\u5907\u7684\u9700\u8981\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5728\u7535\u8111\u4e0a\u786e\u8ba4\u4e00\u4e2a PIN \u7801\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p><strong>\u4fe1\u4efb\u5e76\u8fde\u63a5\u8bbe\u5907<\/strong>\uff1a<\/p>\n<ul>\n<li>\u914d\u5bf9\u6210\u529f\u540e\uff0c\u4e3a\u4e86\u8ba9\u8bbe\u5907\u5c06\u6765\u80fd\u81ea\u52a8\u8fde\u63a5\uff0c\u518d\u6b21\u53f3\u952e\u5355\u51fb\u8bbe\u5907\uff0c\u9009\u62e9\u201c<strong>\u4fe1\u4efb(Trust)<\/strong>\u201d\u3002\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u63a8\u8350\u7684\u6b65\u9aa4\uff01<\/li>\n<li>\u6700\u540e\uff0c\u518d\u6b21\u53f3\u952e\u5355\u51fb\u8bbe\u5907\uff0c\u6839\u636e\u4f60\u7684\u9700\u6c42\u8fdb\u884c\u8fde\u63a5\u3002\u5982\u679c\u662f\u8033\u673a\uff0c\u901a\u5e38\u9700\u8981\u8fde\u63a5\u5230 \u201c<strong>\u97f3\u9891\u914d\u7f6e\u6587\u4ef6(Audio Profile)\u201d -> \u201cA2DP \u9ad8\u54c1\u8d28\u97f3\u9891\u63a5\u6536(Sink)<\/strong>\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u8fde\u63a5\u6210\u529f\u540e\uff0c\u84dd\u7259\u56fe\u6807\u4f1a\u663e\u793a\u5df2\u8fde\u63a5\u7684\u72b6\u6001\uff0c\u4f60\u73b0\u5728\u53ef\u4ee5\u5728\u7cfb\u7edf\u7684\u58f0\u97f3\u8bbe\u7f6e\u4e2d\u5c06\u97f3\u9891\u8f93\u51fa\u5207\u6362\u5230\u4f60\u7684\u84dd\u7259\u8033\u673a\u4e86\uff01<\/p>\n<h4>\u5e38\u89c1\u95ee\u9898\u6392\u67e5 (Troubleshooting)<\/h4>\n<ol>\n<li>\n<p><strong>\u7cfb\u7edf\u6258\u76d8\u6ca1\u6709\u84dd\u7259\u56fe\u6807\uff1f<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd <code>blueman-applet<\/code> \u5df2\u7ecf\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f\u52a8\u3002\u5927\u591a\u6570\u684c\u9762\u73af\u5883\u4f1a\u81ea\u52a8\u5904\u7406\uff0c\u4f46\u5982\u679c\u6ca1\u6709\uff0c\u4f60\u53ef\u4ee5\u624b\u52a8\u5c06\u5176\u6dfb\u52a0\u5230\u201c\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u201d\u4e2d\u3002<\/li>\n<li>\u5728\u7ec8\u7aef\u8fd0\u884c <code>blueman-applet<\/code> \u770b\u770b\u662f\u5426\u6709\u62a5\u9519\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u627e\u4e0d\u5230\u4efb\u4f55\u84dd\u7259\u8bbe\u5907\uff1f<\/strong><\/p>\n<ul>\n<li>\u9996\u5148\u786e\u8ba4\u4f60\u7684\u7269\u7406\u84dd\u7259\u5f00\u5173\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\u662f\u6253\u5f00\u7684\u3002<\/li>\n<li>\u4f7f\u7528 <code>rfkill list<\/code> \u547d\u4ee4\u68c0\u67e5\u84dd\u7259\u662f\u5426\u88ab\u8f6f\u4ef6\u963b\u6b62\u3002\u5982\u679c\u663e\u793a <code>Soft blocked: yes<\/code>\uff0c\u8bf7\u8fd0\u884c <code>rfkill unblock bluetooth<\/code> \u6765\u89e3\u9501\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8bbe\u5907\u5df2\u8fde\u63a5\uff0c\u4f46\u6ca1\u6709\u58f0\u97f3\uff1f<\/strong><\/p>\n<ul>\n<li>\u8fd9\u662f\u6700\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u901a\u5e38\u548c\u97f3\u9891\u670d\u52a1\u6709\u5173\u3002<\/li>\n<li>\u786e\u4fdd\u4f60\u5df2\u7ecf\u6309\u7167\u7b2c\u4e00\u6b65\u5b89\u88c5\u4e86\u6b63\u786e\u7684\u97f3\u9891\u652f\u6301\u5305\uff08<code>pipewire-pulse<\/code> \u6216 <code>pulseaudio-bluetooth<\/code>\uff09\u3002<\/li>\n<li>\u5b89\u88c5 <code>pavucontrol<\/code> (<code>sudo pacman -S pavucontrol<\/code>)\uff0c\u8fd9\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u97f3\u91cf\u63a7\u5236\u5668\u3002\u6253\u5f00\u5b83\uff0c\u5728\u201c\u914d\u7f6e(Configuration)\u201d\u9009\u9879\u5361\u4e2d\uff0c\u627e\u5230\u4f60\u7684\u84dd\u7259\u8033\u673a\uff0c\u5e76\u786e\u4fdd\u5176\u914d\u7f6e\u6587\u4ef6\u88ab\u8bbe\u7f6e\u4e3a \u201cA2DP Sink\u201d\u3002\u5728\u201c\u8f93\u51fa\u8bbe\u5907(Output Devices)\u201d\u4e2d\uff0c\u70b9\u51fb\u8bbe\u5907\u65c1\u8fb9\u7684\u201c\u8bbe\u4e3a\u540e\u5907(Set as Fallback)\u201d\u6309\u94ae\uff0c\u5c06\u5176\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u7ed3\u8bed<\/h4>\n<p>\u606d\u559c\u4f60\uff01\u73b0\u5728\u4f60\u7684 Arch Linux \u7cfb\u7edf\u62e5\u6709\u4e86\u4e00\u4e2a\u5f3a\u5927\u53c8\u6613\u7528\u7684\u56fe\u5f62\u5316\u84dd\u7259\u7ba1\u7406\u5de5\u5177\u3002\u65e0\u8bba\u662f\u8fde\u63a5\u65e0\u7ebf\u8033\u673a\u3001\u9f20\u6807\u8fd8\u662f\u624b\u673a\uff0c\u90fd\u53ea\u9700\u8981\u8f7b\u677e\u70b9\u51fb\u51e0\u4e0b\u3002\u4eab\u53d7\u65e0\u7ebf\u7684\u81ea\u7531\u5427\uff01<\/p>\n<p>Happy Arching!<\/p>\n<hr \/>","protected":false},"excerpt":{"rendered":"<p>\u672c\u6559\u7a0b\u5c06\u624b\u628a\u624b\u5e26\u4f60\u5b89\u88c5\u548c\u914d\u7f6e Blueman\u2014\u2014\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u4e0d\u4f9d\u8d56\u7279\u5b9a\u684c\u9762\u73af\u5883\u7684\u84dd\u7259\u7ba1\u7406\u5668\uff0c\u8ba9\u4f60\u7684 Arch Linux \u84dd\u7259\u4f53 &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[6,1],"tags":[],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-endeavoros","category-learn"],"_links":{"self":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":1,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/115\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}