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
  Boot into NVME drive, no wifi, sound, buttons... PaulQ 0 1,084 07-13-2023, 01:50 PM
Last Post: PaulQ
  alarming sound coming from pinebook pro jazzhands 2 2,112 08-21-2022, 02:34 PM
Last Post: foobar
  how to get rid of heavy distortion from the speakers? stozi 2 2,426 02-20-2022, 05:46 AM
Last Post: stozi
  Up-firing speakers!!! mamboman777 6 6,312 07-28-2021, 02:54 PM
Last Post: mamboman777
  No Sound on Default Manjaro KDE carlosqueso 4 5,874 04-01-2021, 07:17 AM
Last Post: carlosqueso
  Hissing noise when using headphones RotatingNut 4 6,024 07-20-2020, 12:56 PM
Last Post: dlowe
  Click or tick sound from right speaker Timpanogos Slim 0 2,303 06-04-2020, 07:33 PM
Last Post: Timpanogos Slim
  Pine book Pro Speakers bcnaz 27 32,017 05-20-2020, 07:05 AM
Last Post: TDC_PBP
  no sound from firefox Uturn 2 4,214 03-24-2020, 03:49 AM
Last Post: Uturn
  Sound driver 32bit sample format not working, some freezes and crashes through ALSA aeGh7fae 0 2,522 01-28-2020, 10:16 AM
Last Post: aeGh7fae

Forum Jump:


Users browsing this thread: 1 Guest(s)