Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't set card profile of bluetooth device EE1219 to headset_head_unit #12

Open
janvda opened this issue Sep 4, 2019 · 4 comments
Open

Comments

@janvda
Copy link
Owner

janvda commented Sep 4, 2019

root@ba7c427:/# pactl set-card-profile 0 headset_head_unit
xcb_connection_has_error() returned true
Failure: Input/Output error
root@ba7c427:/# 

The effect is that the card profile is set to off.

@janvda
Copy link
Owner Author

janvda commented Sep 4, 2019

setting card profile to `a2dp_sink does work but takes some time

root@ba7c427:/# pactl set-card-profile 0 a2dp_sink
No protocol specified
xcb_connection_has_error() returned true
root@ba7c427:/# pactl list cards
No protocol specified
xcb_connection_has_error() returned true
Card #0
        Name: bluez_card.30_21_62_55_08_E9
        Driver: module-bluez5-device.c
        Owner Module: 28
        Properties:
                device.description = "EE1219"
                device.string = "30:21:62:55:08:E9"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "hands-free"
                bluez.path = "/org/bluez/hci0/dev_30_21_62_55_08_E9"
                bluez.class = "0x240408"
                bluez.alias = "EE1219"
                device.icon_name = "audio-handsfree-bluetooth"
                device.intended_roles = "phone"
        Profiles:
                headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, priority: 30, available: yes)
                a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 40, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: a2dp_sink
        Ports:
                handsfree-output: Handsfree (priority: 0, latency offset: 0 usec)
                        Part of profile(s): headset_head_unit, a2dp_sink
                handsfree-input: Handsfree (priority: 0, latency offset: 0 usec)
                        Part of profile(s): headset_head_unit
root@ba7c427:/# 

@janvda
Copy link
Owner Author

janvda commented Sep 4, 2019

restarting the pulseaudio-serverservice didn't fix the issue.

@janvda
Copy link
Owner Author

janvda commented Sep 4, 2019

rebooting also no effect.

FYI Active Profile = off

root@ba7c427:/# pactl set-card-profile 0 headset_head_unit
No protocol specified
xcb_connection_has_error() returned true
Failure: Input/Output error
root@ba7c427:/# 

log file:

04.09.19 19:25:45 (+0200)  pulseaudio-server  I: [pulseaudio] client.c: Created 8 "Native client (UNIX socket client)"
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Protocol version: remote 32, local 32
04.09.19 19:25:45 (+0200)  pulseaudio-server  I: [pulseaudio] protocol-native.c: Got credentials: uid=0 gid=0 success=1
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: SHM possible: yes
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Negotiated SHM: yes
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Memfd possible: yes
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Negotiated SHM type: shared memfd
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] srbchannel.c: SHM block is 65496 bytes, ringbuffer capacity is 2 * 32724 bytes
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Enabling srbchannel...
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for pactl
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Client enabled srbchannel.
04.09.19 19:25:45 (+0200)  pulseaudio-server  I: [pulseaudio] protocol-native.c: Application "pactl" requests card profile change. card = bluez_card.30_21_62_55_08_E9, profile = headset_head_unit
04.09.19 19:25:45 (+0200)  pulseaudio-server  D: [pulseaudio] module-bluez5-device.c: Acquiring transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd16
04.09.19 19:25:45 (+0200)  pulseaudio-server  I: [pulseaudio] backend-native.c: doing connect
04.09.19 19:25:45 (+0200)  pulseaudio-server  E: [pulseaudio] backend-native.c: connect(): Protocol not supported
04.09.19 19:25:45 (+0200)  pulseaudio-server  I: [pulseaudio] client.c: Freed 8 "pactl"
04.09.19 19:25:45 (+0200)  pulseaudio-server  I: [pulseaudio] protocol-native.c: Connection died.

@janvda
Copy link
Owner Author

janvda commented Sep 4, 2019

Changing to a2dp_sink does work:

root@ba7c427:/# pactl set-card-profile 0 a2dp_sink
No protocol specified
xcb_connection_has_error() returned true
root@ba7c427:/# 

log file:

04.09.19 19:27:39 (+0200)  pulseaudio-server  I: [pulseaudio] client.c: Created 10 "Native client (UNIX socket client)"
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Protocol version: remote 32, local 32
04.09.19 19:27:39 (+0200)  pulseaudio-server  I: [pulseaudio] protocol-native.c: Got credentials: uid=0 gid=0 success=1
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: SHM possible: yes
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Negotiated SHM: yes
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Memfd possible: yes
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Negotiated SHM type: shared memfd
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] srbchannel.c: SHM block is 65496 bytes, ringbuffer capacity is 2 * 32724 bytes
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Enabling srbchannel...
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for pactl
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] protocol-native.c: Client enabled srbchannel.
04.09.19 19:27:39 (+0200)  pulseaudio-server  I: [pulseaudio] protocol-native.c: Application "pactl" requests card profile change. card = bluez_card.30_21_62_55_08_E9, profile = a2dp_sink
04.09.19 19:27:39 (+0200)  pulseaudio-server  D: [pulseaudio] module-bluez5-device.c: Acquiring transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] module-bluez5-device.c: Transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0 acquired: fd 25
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0 state: idle -> playing
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] card.c: Setting card bluez_card.30_21_62_55_08_E9 profile a2dp_sink to availability status yes
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] device-port.c: Setting port handsfree-output to status yes
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] module-bluez5-device.c: SBC parameters: allocation=0, subbands=8, blocks=3, bitpool=52
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c: Created sink 3 "bluez_sink.30_21_62_55_08_E9.a2dp_sink" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     bluetooth.protocol = "a2dp_sink"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.description = "EE1219"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.string = "30:21:62:55:08:E9"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.api = "bluez"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.class = "sound"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.bus = "bluetooth"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.form_factor = "hands-free"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     bluez.path = "/org/bluez/hci0/dev_30_21_62_55_08_E9"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     bluez.class = "0x240408"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     bluez.alias = "EE1219"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.icon_name = "audio-handsfree-bluetooth"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] sink.c:     device.intended_roles = "phone"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c: Created source 4 "bluez_sink.30_21_62_55_08_E9.a2dp_sink.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.description = "Monitor of EE1219"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.class = "monitor"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.string = "30:21:62:55:08:E9"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.api = "bluez"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.bus = "bluetooth"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.form_factor = "hands-free"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     bluez.path = "/org/bluez/hci0/dev_30_21_62_55_08_E9"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     bluez.class = "0x240408"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     bluez.alias = "EE1219"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.icon_name = "audio-handsfree-bluetooth"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] source.c:     device.intended_roles = "phone"
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [bluetooth] module-bluez5-device.c: IO Thread starting up
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [bluetooth] core-util.c: Failed to acquire real-time scheduling: No such file or directory
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [bluetooth] module-bluez5-device.c: Transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0 resuming
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [bluetooth] module-bluez5-device.c: Stream properly set up, we're ready to roll!
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] sink.c: bluez_sink.30_21_62_55_08_E9.a2dp_sink: state: INIT -> IDLE
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] source.c: bluez_sink.30_21_62_55_08_E9.a2dp_sink.monitor: state: INIT -> IDLE
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] module-device-restore.c: Could not set format on sink bluez_sink.30_21_62_55_08_E9.a2dp_sink
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] module-bluetooth-policy.c: Profile a2dp_sink cannot be selected for loopback
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] module-suspend-on-idle.c: Sink bluez_sink.30_21_62_55_08_E9.a2dp_sink becomes idle, timeout in 5 seconds.
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] module-switch-on-connect.c: No sink inputs to move away.
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] core.c: default_sink: alsa_output.default -> bluez_sink.30_21_62_55_08_E9.a2dp_sink
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] card.c: Changed profile of card 0 "bluez_card.30_21_62_55_08_E9" to a2dp_sink
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] module-card-restore.c: Storing card profile for card bluez_card.30_21_62_55_08_E9.
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] client.c: Freed 10 "pactl"
04.09.19 19:27:40 (+0200)  pulseaudio-server  I: [pulseaudio] protocol-native.c: Connection died.
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [pulseaudio] bluez5-util.c: Properties changed in transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0
04.09.19 19:27:40 (+0200)  pulseaudio-server  D: [avahi-ml] module-zeroconf-publish.c: Successfully created entry group for root@ba7c427: EE1219.
04.09.19 19:27:41 (+0200)  pulseaudio-server  I: [avahi-ml] module-zeroconf-publish.c: Successfully established service root@ba7c427: EE1219.
04.09.19 19:27:45 (+0200)  pulseaudio-server  I: [pulseaudio] module-suspend-on-idle.c: Sink bluez_sink.30_21_62_55_08_E9.a2dp_sink idle for too long, suspending ...
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [bluetooth] module-bluez5-device.c: Releasing transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0
04.09.19 19:27:45 (+0200)  pulseaudio-server  I: [bluetooth] bluez5-util.c: Transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0 released
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [bluetooth] module-bluez5-device.c: Audio stream torn down
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] sink.c: bluez_sink.30_21_62_55_08_E9.a2dp_sink: suspend_cause: (none) -> IDLE
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] sink.c: bluez_sink.30_21_62_55_08_E9.a2dp_sink: state: IDLE -> SUSPENDED
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] source.c: bluez_sink.30_21_62_55_08_E9.a2dp_sink.monitor: suspend_cause: (none) -> IDLE
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] source.c: bluez_sink.30_21_62_55_08_E9.a2dp_sink.monitor: state: IDLE -> SUSPENDED
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] bluez5-util.c: Transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0 state: playing -> idle
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] card.c: Setting card bluez_card.30_21_62_55_08_E9 profile a2dp_sink to availability status unknown
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] device-port.c: Setting port handsfree-output to status unknown
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
04.09.19 19:27:45 (+0200)  pulseaudio-server  D: [pulseaudio] bluez5-util.c: Properties changed in transport /org/bluez/hci0/dev_30_21_62_55_08_E9/fd0
04.09.19 19:27:50 (+0200)  pulseaudio-server  I: [pulseaudio] module-card-restore.c: Synced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant