LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2020, 10:51 AM   #1
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Rep: Reputation: Disabled
Pulseaudio Output Won't Switch - Spkrs>Headphones


Manjaro/Budgie 20.0.1 on Dell Inspiron 13 7000
pulseaudio 13.99.3-1
pulseaudio-alsa 1:1.2.2-2
pavucontrol 1:4.0-2

Not selecting headphones output automatically when headphones are plugged in (which it used to do on my previous installation of Manjaro/Budgie).

- default setting: sound to spkrs works fine
- plug in headphones: no sound to spkrs or headphones
- manually change output to "headphones" in Settings>Sound or in pavucontrol
- sound now in headphones and cut off to spkrs
- unplug headphones: sound to spkrs resumes
- replug headphones: no sound to spkrs or headphones
 
Old 11-10-2020, 09:01 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Try udevadm in monitor mode to see if you get an event when connecting. It's not hard to add a udev rule that can run pavucontrol.
 
Old 11-10-2020, 10:42 AM   #3
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
Try udevadm in monitor mode to see if you get an event when connecting. It's not hard to add a udev rule that can run pavucontrol.
I have not used this previously - not familiar with it. Checking through arch-wiki it seems I will need to specify a device to be monitored, else I will get a printout of all udev kernel events, which could be voluminous.
 
Old 11-12-2020, 03:36 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Really? You are connecting and disconnecting devices that often that it would be voluminous?
 
Old 11-12-2020, 04:13 PM   #5
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
Really? You are connecting and disconnecting devices that often that it would be voluminous?
Sorry, I ran an incorrect script. This is what is returned when I plug in the headphones - nothing.

Code:
[drew@drew-dell ~]$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
 
Old 11-15-2020, 11:07 AM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
I tried on a CentOS system to see if I got any ACPI or udev events, and I don't get either. I think you are dependent on the polling in pulseaudio, and I don't know of a way to trigger a script on that.
 
Old 11-15-2020, 12:34 PM   #7
llewellen
Member
 
Registered: Oct 2016
Location: Vancouver Island, Canada
Distribution: Crunchbang++ Openbox
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
I tried on a CentOS system to see if I got any ACPI or udev events, and I don't get either. I think you are dependent on the polling in pulseaudio, and I don't know of a way to trigger a script on that.
Thanks for looking into it. I'll try posting on the Manjaro forum; maybe someone there has a solution. If so, I'll report back here.
 
  


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
My Headphones stopped working after install of Pulseaudio Duglas Linux - Software 5 08-28-2014 11:45 PM
Alsa PulseAudio only headphones not working master channel firedrake Slackware 7 07-20-2013 04:31 AM
Stereo bluetooth headphones vs Wired Headphones WHITE_POWER General 2 06-04-2013 03:35 PM
Debian Recognizes SB Live but only 2 spkrs work malesandro Linux - Hardware 0 10-11-2005 06:47 PM
SuSE 9.0 and Turtle Beach Montego 2 (4 spkrs) LVSuSE Linux - Hardware 0 08-10-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 AM.

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