If booted with headphones in, sound comes from them and speakers
#1
I've started playing music in my headphones without realizing it's also blaring from the speakers in public enough times now to try to fix this.

If headphones are in on boot, sound will come out of both them and the speakers unless you remove them and put them back. How to make only play from headphones if they are in on boot?
  Reply
#2
Which operating system are you running?
Unfortunately, the audio output routing is done in software.
  Reply
#3
Whups forgot to mention this is the default Manjaro it came with
  Reply
#4
This detection issue seems to be caused by the ASoC driver, which is used by the audio codec inside the PineBook Pro.  I'll have a detailed look at the source code of the driver, and I'll report back here.
  Reply
#5
+1

I can resolve it by re-plugging the headphones into the 3.5mm jack, at which point sound only outputs through the headphones.
  Reply
#6
(06-06-2021, 11:42 AM)pietenpol Wrote: +1

I can resolve it by re-plugging the headphones into the 3.5mm jack, at which point sound only outputs through the headphones.
By default, I think manjaro adds a systemd service that switches the output between analog-output-speaker and analog-output-headphones.
If the output is set to analog-output-speaker and anything is plugged into the 3.5 mm jack, then the sound will come from both.

You can switch the output manually with:

Code:
pactl set-sink-port alsa_output.platform-es8316-sound.stereo-fallback analog-output-headphones
I personally have a script to toggle between the two outputs bound to a hotkey.
  Reply
#7
(06-07-2021, 02:25 AM)user18130814200115 Wrote: By default, I think manjaro adds a systemd service that switches the output between analog-output-speaker and analog-output-headphones. If the output is set to analog-output-speaker and anything is plugged into the 3.5 mm jack, then the sound will come from both.

Upon closer inspection, Manjaro ARM provides a pinebookpro-audio package that (slighltly ab)uses the acpid daemon to implement the switching between the audio outputs.  This package also provides a pinebookpro-audio.service systemd service, which is disabled by default, and actually doesn't do proper switching on boot when enabled.  I haven't spent a lot of time debugging that, though.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No Sound on Default Manjaro KDE carlosqueso 4 797 04-01-2021, 07:17 AM
Last Post: carlosqueso
  Hissing noise when using headphones RotatingNut 4 2,113 07-20-2020, 12:56 PM
Last Post: dlowe
  Click or tick sound from right speaker Timpanogos Slim 0 777 06-04-2020, 07:33 PM
Last Post: Timpanogos Slim
  Pine book Pro Speakers bcnaz 27 11,003 05-20-2020, 07:05 AM
Last Post: TDC_PBP
  no sound from firefox Uturn 2 1,330 03-24-2020, 03:49 AM
Last Post: Uturn
  Sound driver 32bit sample format not working, some freezes and crashes through ALSA aeGh7fae 0 988 01-28-2020, 10:16 AM
Last Post: aeGh7fae
Sad New Pinebook Pro - no sound vve1505 9 4,872 01-17-2020, 10:11 AM
Last Post: chip ling
  No Sound, Non Root User deebeez 10 4,972 01-16-2020, 04:04 AM
Last Post: bcnaz
  Sound Quit TonyK 5 2,489 01-14-2020, 01:26 PM
Last Post: tophneal
  No sound.... rick1959 9 4,277 12-19-2019, 10:10 PM
Last Post: rick1959

Forum Jump:


Users browsing this thread: 1 Guest(s)