Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 23 Sep 2019, 13:28
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Alsa mixer auto switch headphone/speaker detection (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
fabrice_035


Joined: 28 Apr 2014
Posts: 642
Location: Bretagne / France

PostPosted: Sun 10 Feb 2019, 14:14    Post subject:  Alsa mixer auto switch headphone/speaker detection (Solved)  

Hey, ** edit ** Cool my bad ... i found the problem with my jack detection.
I had not activated Auto-Mute Mode in Retrovol Embarassed Embarassed Embarassed Embarassed


__


Hi,

I search a tool to auto switch off the speaker when i use jack headset.

I have hope that it exist because i found "evtest" (in PPM) , this program show many events from /dev/input/eventXX

Code:

root# evtest /dev/input/event14
Event: time 1549821541.260320, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1549821542.003070, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1


And it's possible to switch off speaker easy :

Code:

amixer set Speaker 0%


Does anyone know if a program does everything?

Otherwise I'll write a script Rolling Eyes

Or if y are a good programmer, u can adapt source ? https://gist.github.com/carlesso/5487457 ?

Thanks.

_________________
xenialpup 7.5 / Linux Kernel: 4.4.95 / Window Manager: JWM v2.3.7
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Sun 10 Feb 2019, 19:30    Post subject:  

Quote:
Auto-Mute Mode in Retrovol


Question Question Question

Never seen such mode in retrovol.
Where is it?

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Sun 10 Feb 2019, 19:47    Post subject:  

Not sure how its used but here is the control:

EDIT: oh yeah, it switches the speakers on or off depending on when headphones are plugged in. Heeheee thats cool - now I can have surround sound from my headphone jack (to TV input) and laptop speakers together. Smile

Maybe on some systems this control is not present. Depends on hardware i guess.
automute_retrovol_and_alsa.jpg
 Description   
 Filesize   85.68 KB
 Viewed   117 Time(s)

automute_retrovol_and_alsa.jpg

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5404
Location: King's Lynn, UK.

PostPosted: Sun 10 Feb 2019, 20:14    Post subject:  

It must be dependent on hardware, definitely. It's certainly not present on either of my boxes.....


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Mon 11 Feb 2019, 09:39    Post subject:  

Mike Walsh wrote:
It must be dependent on hardware, definitely. It's certainly not present on either of my boxes.....


Mike. Wink


The same here!

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1905
Location: Japan

PostPosted: Mon 11 Feb 2019, 10:29    Post subject:  

ITSMERSH wrote:
Never seen such mode in retrovol.
Where is it?
What do you see when you right-click the speaker icon in the tray and choose Config window - Hardware tab?
"Auto-Mute Mode" should be one of the possible sliders. May not be activated and therefore may not show up in your display. If so add it to the list of active sliders.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5404
Location: King's Lynn, UK.

PostPosted: Mon 11 Feb 2019, 10:54    Post subject:  

@ MochiMoppel:-

If I bring up my total list of available controls, this is what I get:-

Code:
Master Playback Volume
PCM Playback Volume
Surround Jack Mode
Surround Playback Volume
Center Playback Volume
LFE Playback Volume
Line Playback Volume
CD Playback Volume
Mic Boost (+20dB)
Mic Select
Mic Playback Volume
Phone Playback Volume
Aux Playback Volume
Capture Source
Capture Volume
IEC958 Playback Con Mask
IEC958 Playback Pro Mask
IEC958 Playback AC97-SPSA
IEC958 Playback Default
IEC958 Playback Source
IEC958 Playback Switch
IEC958 Capture Switch
Beep Playback Volume
Channel Mode
Duplicate Front
External Amplifier


Absolutely no sign of Auto-Mute Mode for me. (And please don't ask me what all that IEC958 stuff is, either. I really don't have a clue; all I know is it has no effect on normal playback, etc.)

EDIT:- Apparently, it's something to do with the S/PDIF thing some of us may find in Alsamixer. Stands for the Sony/Philips Digital Interface Format, and is all about the transference of digital audio via co-axial or optical interfaces.....

https://alsa.opensrc.org/DigitalOut

Something new I've learnt today. Lazy, I should think that would be of more interest to you than most of the rest of us.....you being a musician, and all.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1905
Location: Japan

PostPosted: Mon 11 Feb 2019, 11:31    Post subject:  

Mike Walsh wrote:
Absolutely no sign of Auto-Mute Mode for me. (And please don't ask me what all that IEC958 stuff is,
No, I won't ask you. I get the same on a different laptop that sports a HDMI jack. This gives me 2 soundcards to choose from. The HDMI card (hw:0) is the default and lacks - among other modes - the Auto-Mute Mode, but hw:1 ( analog?) is what I'm using and Auto-Mute Mode exists.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5404
Location: King's Lynn, UK.

PostPosted: Mon 11 Feb 2019, 11:51    Post subject:  

@ MochiMoppel:-

According to these available controls, it looks as though the audio chip/card in my old box must have originally been capable of sending the raw PCM values out either across a standard (analog) interface, or across a digital one. However, there's no co-ax/optical audio connector on the rear panel, so what I take away from this is that the chip appears to support those capabilities, but only the analog side of things was ever hooked up.

Cost-cutting measures by the manufacturers, I guess.

I do have two sound cards, but one is actually an integral part of the rather chunky USB connector of a Logitech digital headset I bought shortly before Xmas last year. It's a neat idea, and makes doing screen recordings/captures, etc, a breeze, since it has a built-in boom mic, and its own dedicated set of mixer controls. No mistakes with making sure you're adjusting the appropriate levels.....

http://www.murga-linux.com/puppy/viewtopic.php?p=1011264#1011264


Mike. Wink

Last edited by Mike Walsh on Mon 11 Feb 2019, 12:39; edited 1 time in total
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Mon 11 Feb 2019, 12:24    Post subject:  

All sliders active.

No auto-mute mode available.

Thanks for the link, Mike. Will have a look...
Screenshot-2019-02-11-17-20-57.jpg
Description 
jpg

 Download 
Filename  Screenshot-2019-02-11-17-20-57.jpg 
Filesize  103.06 KB 
Downloaded  32 Time(s) 
Screenshot-2019-02-11-17-19-17.jpg
 Description   
 Filesize   65.21 KB
 Viewed   56 Time(s)

Screenshot-2019-02-11-17-19-17.jpg


_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0432s ][ Queries: 12 (0.0029s) ][ GZIP on ]