You are not logged in.

#1 2024-11-03 20:13:34

bestietamer
Member
Registered: 2024-11-03
Posts: 4

Cannot control sound from my jack headphones.

Why I cannot control sound and stop/play from my jack 3.5 Apple earpods and whether it is possible? I didn't find any information about that on google. Sounds work well, but the controls don't work at all.

➜  ~ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 1046
Tile Size: 65472
User Name: bestietamer
Host Name: thinkpad
Server Name: PulseAudio (on PipeWire 1.2.6)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: ae05:12c2

I am not good at all in Linux sound configuration, so write any commands whose output you need.

Last edited by bestietamer (2024-11-03 20:23:56)

Offline

#2 2024-11-04 00:40:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: Cannot control sound from my jack headphones.

bestietamer,

Welcome to the Arch Linux forums.   We are glad to help, but, as an author, consider your reader.

What are you using as a desktop environment?  Gnome? Plasma? Hyprland? Sway? dwm?
We can see you are using pulseaudio; that is a "good thing"™.
What are you trying to control?  mpd? Plex? Spotify? Vlc?
Are you using an X session? Or is it a Wayland session?

My guess is that you are going to find that the earbuds have an input device that is mapped as a 'keyboard'.You will probably end up binding 'keystrokes' from the virtual keyboard device to a program such as playerctl

What I am dancing about is that we can help, but you need to tell us a great deal more about how you configured things.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2024-11-04 01:31:22

bestietamer
Member
Registered: 2024-11-03
Posts: 4

Re: Cannot control sound from my jack headphones.

ewaller, thanks for the answer, I will try to improve.
I`m using Gnome on Wayland.
You said that I use pulseaudio, but pacman -S pipewire wireplumber said that it`s installed, but maybe I don`t understand something?
I`m trying to control general system sound, like I`m clicking on the keyboard sound button.

About earbuds as input device, I examined libinput list-devices output with plugged and unplugged earbuds, it`s the same.
Any ideas?

Offline

#4 2024-11-04 01:50:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: Cannot control sound from my jack headphones.

You are right.  I read it correctly, but erred in my response.  It is pipewire.  Sorry for the confusion.

I am surprised my the libinput information.  For example, on my system, which is using a BT speaker right now, libinput list-devices includes

Device:           SONY:SRS-X3 (AVRCP)
Kernel:           /dev/input/event14
Group:            8
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

I see similar sections when I attach my Tozo earbuds.   I don't own any iThings, I assumed they used the same model as other BT devices


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2024-11-04 02:03:08

bestietamer
Member
Registered: 2024-11-03
Posts: 4

Re: Cannot control sound from my jack headphones.

I don`t use BT earbuds, it`s jack, as I mentioned in my first message.
Unfortunately, looks like libinput didn`t see my earpods

➜  ~ sudo libinput list-devices | grep ^Device
Device:           Power Button
Device:           Video Bus
Device:           Lid Switch
Device:           Sleep Button
Device:           2.4G Mouse
Device:           2.4G Mouse System Control
Device:           2.4G Mouse
Device:           2.4G Mouse Consumer Control
Device:           AT Translated Set 2 keyboard
Device:           SynPS/2 Synaptics TouchPad
Device:           TPPS/2 IBM TrackPoint
Device:           ThinkPad Extra Buttons

libinput debug-events --show-keycodes also debug every button click, except the buttons on my earpods. Is this the end?

Offline

#6 2024-11-04 11:32:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,189

Re: Cannot control sound from my jack headphones.

Seeing as Apple does their best to avoid standards in order to lock you into their ecosystem, possibly. One sliver of hope I have is whether they just generate ACPI events, though I'm somewhat sure you'd see that in libinput anyway if that was the case. But maybe test for it just in case: https://wiki.archlinux.org/title/Acpid

Offline

#7 2024-11-04 12:23:09

bestietamer
Member
Registered: 2024-11-03
Posts: 4

Re: Cannot control sound from my jack headphones.

Nope, there is no events except jack/headphone HEADPHONE plug/unplug which is really weird because microphone in this earbuds works well.

Offline

#8 2024-11-04 12:50:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,189

Re: Cannot control sound from my jack headphones.

That's probably normal that you just get one plug event (assuming it's a combined headphone+mic jack) and in terms of software reacting to it headphone is usually the more immediate concern (and even if so, on most jack implementations the relevant reroutings of audio/microphone happen on the driver/firmware level, the OS often doesn't receive any information on that).

Offline

Board footer

Powered by FluxBB