您尚未登录。

#1 2022-09-25 14:00:01

liuf
会员
所在地: 山东 济南
注册时间: 2015-10-31
帖子: 6
个人网站

蓝牙耳机被识别成免手设备

这次安装系统后遇到这样的问题:GNOME桌面环境,蓝牙耳机(OPPO Enco X)第一次连接蓝牙时,声音输出列表里有耳机和免手设备,都是对应的耳机。如果选择输出到耳机那么正常,如果选择输出到免手设备,在使用上会存在一些问题(音量控制等)。但一但连接中断,重新连接,耳机那一项就消失了,只剩下免手设备一项了。经过测试,systemctl重启蓝牙服务会解决问题,请问有无办法可以一劳永逸?

这是第一次连接或者重启bluetooth服务后的正常情况:
y8sVp9eDHkR3CWo.png

这是耳机重新连接后的异常情况:
qBpAxnsDaoXEFGw.png

离线

#2 2022-09-25 14:03:12

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: 蓝牙耳机被识别成免手设备

HSP 是那样的,音质差、不支持绝对音量,但是支持话筒。
我也不知道你的 A2DP 为什么会消失。建议看蓝牙服务的系统日志。

离线

#3 2022-09-25 19:37:19

SamLukeYes
会员
所在地: Canton, China
注册时间: 2020-07-19
帖子: 320
个人网站

Re: 蓝牙耳机被识别成免手设备

我用 gnome + pipewire 也有类似的问题,每次连接蓝牙耳机都要手动连接才能用 LDAC,如果自动连上的话会和你一样只能识别为免手设备

最近编辑记录 SamLukeYes (2022-09-25 23:04:43)

离线

#4 2022-09-25 20:11:10

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: 蓝牙耳机被识别成免手设备

难道是 GNOME 的问题?我用的不是 GNOME。

离线

#5 2022-09-25 22:38:44

KafCoppelia
会员
所在地: Beijing, China
注册时间: 2022-06-20
帖子: 148
个人网站

Re: 蓝牙耳机被识别成免手设备

我使用华为Freebuds Pro 2也没有A2DP或者LDAC,蓝牙用bluz系列,只有CVSD和mSBC。看了很多wiki,也没解决


二次元开发者

离线

#6 2022-09-26 01:04:07

liuf
会员
所在地: 山东 济南
注册时间: 2015-10-31
帖子: 6
个人网站

Re: 蓝牙耳机被识别成免手设备

依云 说:

难道是 GNOME 的问题?我用的不是 GNOME。

这次用GNOME之前我在电脑上使用了一段时间Sway,使用blueman设置的这个蓝牙耳机。当时在用MPD播放音乐的时候,虽然无法从GUI上面看到使用的免手设备输出,但听声音和免手设备是一样的,有明显的像是打电话一样的回声,而且音量从0上升一档就变很大。因此我猜测是蓝牙连接的问题吧。

离线

#7 2022-09-27 09:10:58

luxni
会员
注册时间: 2014-06-08
帖子: 281

Re: 蓝牙耳机被识别成免手设备

貌似和wiki描述的有点像,可以参考看下:
A2DP sink profile is unavailable


虽然人菜菜的,但也想做个有趣的人。

离线

#8 2022-09-27 22:37:27

BRS5672023
会员
注册时间: 2020-07-07
帖子: 131

Re: 蓝牙耳机被识别成免手设备

KafCoppelia 说:

我使用华为Freebuds Pro 2也没有A2DP或者LDAC,蓝牙用bluz系列,只有CVSD和mSBC。看了很多wiki,也没解决

同款耳机,之前有 LDAC 的选项,但选完自动跳回 AAC,今天发现 LDAC 能正常使用了(pipewire+wireplumber)。。终端 pactl list sinks 输出如下

Sink #111
        State: RUNNING
        Name: bluez_output.D0_F3_F5_84_41_B6.a2dp-sink
        Description: HUAWEI FreeBuds Pro 2
        Driver: PipeWire
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 20972 /  32% / -29.69 dB,   front-right: 20972 /  32% / -29.69 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: bluez_output.D0_F3_F5_84_41_B6.a2dp-sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                api.bluez5.address = "D0:F3:F5:84:41:B6"
                api.bluez5.codec = "ldac"
                api.bluez5.profile = "a2dp-sink"
                api.bluez5.transport = ""
                card.profile.device = "1"
                device.id = "48"
                device.routes = "1"
                factory.name = "api.bluez5.a2dp.sink"
                device.description = "HUAWEI FreeBuds Pro 2"
                node.name = "bluez_output.D0_F3_F5_84_41_B6.a2dp-sink"
                node.pause-on-idle = "false"
                priority.driver = "1010"
                priority.session = "1010"
                factory.id = "8"
                clock.quantum-limit = "8192"
                device.api = "bluez5"
                media.class = "Audio/Sink"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "65"
                object.serial = "111"
                client.id = "33"
                api.bluez5.class = "0x240418"
                api.bluez5.connection = "disconnected"
                api.bluez5.device = ""
                api.bluez5.icon = "audio-headphones"
                api.bluez5.path = "/org/bluez/hci0/dev_D0_F3_F5_84_41_B6"
                bluez5.auto-connect = "[ hfp_hf hsp_hs a2dp_sink ]"
                bluez5.profile = "off"
                device.alias = "HUAWEI FreeBuds Pro 2"
                device.bus = "bluetooth"
                device.form_factor = "headphone"
                device.icon_name = "audio-headphones-bluetooth"
                device.name = "bluez_card.D0_F3_F5_84_41_B6"
                device.product.id = "0x4108"
                device.string = "D0:F3:F5:84:41:B6"
                device.vendor.id = "bluetooth:027d"
        Ports:
                headphone-output: 头戴耳机 (type: Headphones, priority: 0, available)
        Active Port: headphone-output
        Formats:
                pcm

最近编辑记录 BRS5672023 (2022-10-03 13:17:30)

离线

#9 2023-02-03 16:13:39

edward-p
会员
所在地: 成都
注册时间: 2019-03-12
帖子: 34
个人网站

Re: 蓝牙耳机被识别成免手设备

清除 bluetooth 缓存 ( 指删除 /var/lib/bluetooth/<蓝牙适配器mac地址>/cache/* ) 再重启 bluetooth.service 试试


Fake developer; true geek.
Matrix: @edward_p:mozilla.org
Telegram: @real_edward_p

离线

#10 2023-02-04 00:23:45

KafCoppelia
会员
所在地: Beijing, China
注册时间: 2022-06-20
帖子: 148
个人网站

Re: 蓝牙耳机被识别成免手设备

我的arch却识别成免手操作,采样率低,也不是a2dp

BRS5672023 说:
KafCoppelia 说:

我使用华为Freebuds Pro 2也没有A2DP或者LDAC,蓝牙用bluz系列,只有CVSD和mSBC。看了很多wiki,也没解决

同款耳机,之前有 LDAC 的选项,但选完自动跳回 AAC,今天发现 LDAC 能正常使用了(pipewire+wireplumber)。。终端 pactl list sinks 输出如下

Sink #111
        State: RUNNING
        Name: bluez_output.D0_F3_F5_84_41_B6.a2dp-sink
        Description: HUAWEI FreeBuds Pro 2
        Driver: PipeWire
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 20972 /  32% / -29.69 dB,   front-right: 20972 /  32% / -29.69 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: bluez_output.D0_F3_F5_84_41_B6.a2dp-sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                api.bluez5.address = "D0:F3:F5:84:41:B6"
                api.bluez5.codec = "ldac"
                api.bluez5.profile = "a2dp-sink"
                api.bluez5.transport = ""
                card.profile.device = "1"
                device.id = "48"
                device.routes = "1"
                factory.name = "api.bluez5.a2dp.sink"
                device.description = "HUAWEI FreeBuds Pro 2"
                node.name = "bluez_output.D0_F3_F5_84_41_B6.a2dp-sink"
                node.pause-on-idle = "false"
                priority.driver = "1010"
                priority.session = "1010"
                factory.id = "8"
                clock.quantum-limit = "8192"
                device.api = "bluez5"
                media.class = "Audio/Sink"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "65"
                object.serial = "111"
                client.id = "33"
                api.bluez5.class = "0x240418"
                api.bluez5.connection = "disconnected"
                api.bluez5.device = ""
                api.bluez5.icon = "audio-headphones"
                api.bluez5.path = "/org/bluez/hci0/dev_D0_F3_F5_84_41_B6"
                bluez5.auto-connect = "[ hfp_hf hsp_hs a2dp_sink ]"
                bluez5.profile = "off"
                device.alias = "HUAWEI FreeBuds Pro 2"
                device.bus = "bluetooth"
                device.form_factor = "headphone"
                device.icon_name = "audio-headphones-bluetooth"
                device.name = "bluez_card.D0_F3_F5_84_41_B6"
                device.product.id = "0x4108"
                device.string = "D0:F3:F5:84:41:B6"
                device.vendor.id = "bluetooth:027d"
        Ports:
                headphone-output: 头戴耳机 (type: Headphones, priority: 0, available)
        Active Port: headphone-output
        Formats:
                pcm
$ pactl list sinks
Sink #25881
        State: SUSPENDED
        Name: bluez_output.94_08_C7_9D_5F_BB.1
        Description: HUAWEI FreeBuds Pro 2
        Driver: PipeWire
        Sample Specification: s16le 1ch 16000Hz
        Channel Map: mono
        Owner Module: 4294967295
        Mute: no
        Volume: mono: 4369 /   7% / -70.57 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: bluez_output.94_08_C7_9D_5F_BB.1.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                api.bluez5.address = "94:08:C7:9D:5F:BB"
                api.bluez5.codec = "msbc"
                api.bluez5.profile = "headset-head-unit"
                api.bluez5.transport = ""
                card.profile.device = "1"
                device.id = "56"
                device.intended_roles = "Communication"
                device.routes = "1"
                factory.name = "api.bluez5.sco.sink"
                device.description = "HUAWEI FreeBuds Pro 2"
                node.name = "bluez_output.94_08_C7_9D_5F_BB.1"
                node.pause-on-idle = "false"
                priority.driver = "1010"
                priority.session = "1010"
                factory.id = "8"
                clock.quantum-limit = "8192"
                device.api = "bluez5"
                media.class = "Audio/Sink"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "69"
                object.serial = "25881"
                client.id = "33"
                api.bluez5.class = "0x240418"
                api.bluez5.connection = "disconnected"
                api.bluez5.device = ""
                api.bluez5.icon = "audio-headphones"
                api.bluez5.path = "/org/bluez/hci0/dev_94_08_C7_9D_5F_BB"
                bluez5.auto-connect = "[ hfp_hf hsp_hs a2dp_sink ]"
                bluez5.profile = "off"
                device.alias = "HUAWEI FreeBuds Pro 2"
                device.bus = "bluetooth"
                device.form_factor = "headphone"
                device.icon_name = "audio-headphones-bluetooth"
                device.name = "bluez_card.94_08_C7_9D_5F_BB"
                device.product.id = "0x4108"
                device.string = "94:08:C7:9D:5F:BB"
                device.vendor.id = "bluetooth:027d"
        Ports:
                headphone-hf-output: 免手操作 (type: Headphones, priority: 0, available)
        Active Port: headphone-hf-output
        Formats:
                pcm

二次元开发者

离线

页脚