OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Automatic Headphone Audio Switching?
teh.sean
post Sep 25 2018, 07:51 PM
Post #1





Group: Members
Posts: 84
Joined: 23-April 08
From: Cleveland, OH USA
Member No.: 21,673



Does anybody have automatic headphone audio switching working under the Planet Computers provided Debian TP2 environment?

I can switch audio manually using the 'PulseAudio Volume Control' application (pavucontrol?), but I've yet to find a way to set PulseAudio to automatically switch output from the built in speakers to headphones when I plug into the 3.5mm audio jack.

Thanks!
Go to the top of the page
 
+Quote Post
ArchiMark
post Sep 25 2018, 08:54 PM
Post #2





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Hey there, teh.sean....

Ol' ArchiMark here....been awhile...

Glad to see you took the plunge and got a Gemini...

Sorry, but haven't tried headphones yet....if I do, I'll report back...

Mark

Go to the top of the page
 
+Quote Post
teh.sean
post Sep 26 2018, 03:57 AM
Post #3





Group: Members
Posts: 84
Joined: 23-April 08
From: Cleveland, OH USA
Member No.: 21,673



Yo! Long time no see! Yeah, I've been lurking for a while after getting the Gemini. How are you doing?

So far the Gemini is pretty nice; I'm waiting for a keymat replacement to come in the mail (I have the dreaded floppy keys issue).


Go to the top of the page
 
+Quote Post
ArchiMark
post Sep 26 2018, 05:07 AM
Post #4





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Doin' OK....but been crazy busy at work the past 3 months, as I was asked by my boss to take on the same job temporarily at another location about 20 miles away on top of my current job. And then two weeks after I started doing that, one of the team members left, so, I had to pick up his work temporarily......but other than that......

Main point is I haven't had much time to play with Gemini as I had expected.

As a pocketable device, it's pretty cool. Although linux on it, is still a work in progress....

Sorry to hear you have the keyboard issue, but hopefully, that will be resolved soon for you.

Best,

Mark
Go to the top of the page
 
+Quote Post
Mithren Ithil
post Sep 27 2018, 04:00 AM
Post #5





Group: Members
Posts: 13
Joined: 27-June 18
Member No.: 825,127



I don't have Debs on my Gemini, but if it is PulseAudio switching outputs on connect you can try on the command line (as your session user):

pacmd load-module module-switch-on-connect

If that works then to make it load on boot hunt down the default.pa, normally at:

/etc/pulse/default.pa

and add:

load-module module-switch-on-connect

Also check if you have a user specific one:

~/.config/pulse/default.pa
Go to the top of the page
 
+Quote Post
teh.sean
post Sep 28 2018, 03:59 AM
Post #6





Group: Members
Posts: 84
Joined: 23-April 08
From: Cleveland, OH USA
Member No.: 21,673



Thanks for the information!

I was able to load the module using pacmd, confirmed with pactl list, but no luck. I also rebooted and added it to the default pulseaudio configuration and had the same result; sound comes out of both the headphones and the speaker, and listing the sink / source info after plugging in headphones shows no change.

My next step is to confirm that the headphone jack actually sends an event to the pulseaudio server. I'm guessing that would be some sort of ACPI event, but I'm not sure. (Further research necessary!)

QUOTE(Mithren Ithil @ Sep 27 2018, 08:00 AM) *
I don't have Debs on my Gemini, but if it is PulseAudio switching outputs on connect you can try on the command line (as your session user):

pacmd load-module module-switch-on-connect

If that works then to make it load on boot hunt down the default.pa, normally at:

/etc/pulse/default.pa

and add:

load-module module-switch-on-connect

Also check if you have a user specific one:

~/.config/pulse/default.pa

Go to the top of the page
 
+Quote Post
Mithren Ithil
post Sep 28 2018, 05:57 AM
Post #7





Group: Members
Posts: 13
Joined: 27-June 18
Member No.: 825,127



Hmm thinking about it, is the speakers and headphone jack treated as a single output device with 2 ports?

I believe that the module-switch-on-connect will switch when another output device connects, you will need this to auto switch for a bluetooth headset (which is what I use it for).

If it is a single device with 2 ports then you might need:

module-switch-on-port-available

You can check if its already loaded with:

pacmd list-modules | grep switch

It was already part of my default.pa on Debian 9 on my lappy.

### EDIT

I had a quick Google and someone suggested checking that Auto-Mute is enabled in alsamixer:

https://askubuntu.com/questions/150887/soun...es-and-speakers

Open Terminal (Ctrl+Alt+T)
Type: alsamixer and press Enter/Return
Select the correct sound device by pressing F6
Navigate to the right with → (Right Arrow key) until you highlight Auto-Mute
Press ↑ (Up Arrow key) and select Enabled (or Line Out)
Press Esc to exit
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th November 2019 - 05:24 AM