You are not logged in.

#1 2023-12-27 13:45:22

hpmachining
Member
From: Michigan
Registered: 2016-11-23
Posts: 42
Website

[SOLVED] AirPods play / pause control not functioning

My AirPods connect and work for audio but I can't pause and play by tapping the earbuds.

  1. Window manager is i3

  2. I installed pipewire-pulse package

  3. In pavucontrol I selected Headset Head Unit (HSP/HFP, codec mSBC) profile. I also tried High Fidelity Playback (A2DP Sink, codec AAC)

  4. I tried with and without mpris-proxy

I've tried with brave, firefox, vlc and clementine. See the mpris-proxy output. Here is the output from some commands that might be helpful. Let me know if you need anything else.

sudo journalctl -b
http://0x0.st/HEHn.txt

bluetoothctl info

Device 28:F0:33:A6:F3:A0 (public)
	Name: AirPods
	Alias: AirPods
	Class: 0x00240418 (2360344)
	Icon: audio-headphones
	Paired: yes
	Bonded: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	LegacyPairing: no
	UUID: Service Discovery Serve.. (00001000-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (74ec2172-0bad-4d01-8f77-997b2be0722a)
	Modalias: bluetooth:v004Cp200Fd4C0F

pactl info

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 87
Tile Size: 65472
User Name: paul
Host Name: arch-charlie
Server Name: PulseAudio (on PipeWire 1.0.0)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: bluez_output.28_F0_33_A6_F3_A0.1
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: f57f:ed11

pactl list sinks

Sink #55
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1f.3.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 19650 /  30% / -31.39 dB,   front-right: 19650 /  30% / -31.39 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.class = "generic"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC256 Analog"
		alsa.long_card_name = "HDA Intel PCH at 0x6103108000 irq 169"
		alsa.name = "ALC256 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA Intel PCH at 0x6103108000 irq 169"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "7"
		device.api = "alsa"
		device.class = "sound"
		device.id = "46"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
		node.nick = "ALC256 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:front:0:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "35"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "55"
		object.serial = "55"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1f.3"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1f.3"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "4206866"
		device.product.id = "0x43c8"
		device.product.name = "Tiger Lake-H HD Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		device.string = "0"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 4, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm

Sink #77
	State: SUSPENDED
	Name: bluez_output.28_F0_33_A6_F3_A0.1
	Description: AirPods
	Driver: PipeWire
	Sample Specification: s16le 1ch 16000Hz
	Channel Map: mono
	Owner Module: 4294967295
	Mute: no
	Volume: mono: 26214 /  40% / -23.88 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: bluez_output.28_F0_33_A6_F3_A0.1.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		api.bluez5.address = "28:F0:33:A6:F3:A0"
		api.bluez5.codec = "msbc"
		api.bluez5.profile = "headset-head-unit"
		api.bluez5.transport = ""
		card.profile.device = "1"
		device.id = "58"
		device.intended_roles = "Communication"
		device.routes = "1"
		factory.name = "api.bluez5.sco.sink"
		device.description = "AirPods"
		node.name = "bluez_output.28_F0_33_A6_F3_A0.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 = "61"
		object.serial = "77"
		client.id = "35"
		api.bluez5.class = "0x240418"
		api.bluez5.connection = "disconnected"
		api.bluez5.device = ""
		api.bluez5.icon = "audio-headphones"
		api.bluez5.id = "0"
		api.bluez5.path = "/org/bluez/hci0/dev_28_F0_33_A6_F3_A0"
		bluez5.profile = "off"
		device.alias = "AirPods"
		device.bus = "bluetooth"
		device.form_factor = "headphone"
		device.icon_name = "audio-headphones-bluetooth"
		device.name = "bluez_card.28_F0_33_A6_F3_A0"
		device.product.id = "0x200f"
		device.string = "28:F0:33:A6:F3:A0"
		device.vendor.id = "bluetooth:004c"
	Ports:
		headphone-hf-output: Handsfree (type: Headphones, priority: 0, available)
	Active Port: headphone-hf-output
	Formats:
		pcm

mpris-proxy

org.bluez appeared
Bluetooth Adapter /org/bluez/hci0 found

player org.mpris.MediaPlayer2.brave.instance1364 at :1.43 found
Can't register player
Operation is not supported
Bluetooth Transport /org/bluez/hci0/dev_28_F0_33_A6_F3_A0/fd0 found

player org.mpris.MediaPlayer2.firefox.instance_1_66 at :1.66 found
Can't register player
Operation is not supported
player org.mpris.MediaPlayer2.firefox.instance_1_66 at :1.66 disappear

player org.mpris.MediaPlayer2.vlc at :1.72 found
Can't register player
Operation is not supported
player org.mpris.MediaPlayer2.vlc at :1.72 disappear

player org.mpris.MediaPlayer2.clementine at :1.74 found
Can't register player
Operation is not supported
player org.mpris.MediaPlayer2.clementine at :1.74 disappear

Last edited by hpmachining (2023-12-28 01:24:31)

Offline

#2 2023-12-28 01:23:45

hpmachining
Member
From: Michigan
Registered: 2016-11-23
Posts: 42
Website

Re: [SOLVED] AirPods play / pause control not functioning

I have it working. I forgot that I had created this drop in file for bluetooth.service (https://wiki.archlinux.org/title/Blueto … low_volume) sometime back. Removing it resolved the issue.

/etc/systemd/system/bluetooth.service.d/noplugin-avrc.conf

[Service]
ExecStart=
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=avrcp

Offline

Board footer

Powered by FluxBB