LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2018, 03:39 AM   #1
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Rep: Reputation: Disabled
PulseAudio output device changes automatically


I've just installed MX-16 and having problem with my sound system. In Pulse Audio Volume Control, there are 2 options in output devices : Line Out and Headphone. I have 2 output devices as well, a speaker and an amplifier (which has 3 speakers outside of my room). When I play music from VLC, I need to switch the device output to Headphone in order to make both the speaker and the amplifier works. But it often automatically switched back to Line Out that forced me to switch it back to Headphone, again and again.
I think the problem is not on my speaker or amplifier since it worked well before (I've run Debian Wheezy before this MX-16). I've tried to install Pulse Audio Preferences (paprefs) and tried to use another media player, too.
The question is : What makes the Pulse Audio automatically switches to Line Out and how to keep it on Headphone?
 
Old 01-13-2018, 08:27 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
https://unix.stackexchange.com/quest...ones-connected

https://bbs.archlinux.org/viewtopic.php?id=215248


https://www.tablix.org/~avian/blog/a...output_device/

that is all I could find out on something about this
 
Old 01-13-2018, 08:48 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,791

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I don't have a definitive answer here (and never experienced this behaviour myself), but in an effort to assist I did find this old bug report while conducting a quick search. Anyway, it describes users experiencing similar behaviour, and has some potentially useful information including the use of 'hdajackretask' to disable auto-muting/switching of the headphone output. Read post #13 onwards. It might take some experimentation though.

You might find some pulseaudio logging via
Code:
journalctl -b |grep pulse
or watch in a terminal on the fly with
Code:
journalctl -f |grep pulse
I've read of another workaound involving removing (or commenting out) the following PA module from /etc/pulse/default.pa
Code:
load-module module-switch-on-port-available
but this just apparently helps with the symptoms, not the switching (if that's what is occurring). Here's one example of that...
https://bbs.archlinux.org/viewtopic.php?id=147225
 
Old 01-14-2018, 11:31 PM   #4
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
Thanks for all your help, guys!

After browsed the link that you've posted, I tried this :
List all ports using pacmd list.
I found those two ports : analog-output-lineout and analog-output-headphones
I chose the later by pacmd set-sink-port 0 analog-output-headphones
Then insert that command to /etc/pulse/default.pa

I've been playing VLC for a few hours and everything is OK.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pulseaudio no sound only Dummy Output Bob D Linux - Hardware 2 09-23-2021 12:10 PM
No bluetooth audio output in PulseAudio rooman Mageia 1 11-05-2017 02:43 PM
Record a programs output with PulseAudio gunwald Linux - Software 0 09-01-2011 10:27 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Need help getting pulseaudio on optical output. nio Linux - General 0 12-01-2008 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration