making audio automatically cut out if headphones are pulled out
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
making audio automatically cut out if headphones are pulled out
I'm honestly not sure whether this is properly an issue of my distro (MX 16) or my desktop environment (XFCE). At some point in an earlier version of my distro (again, I'm not sure the distro has anything to do with it), the audio was set to instantly cut out if my headphones were unplugged form the audio jack. This was useful for preventing me from inadvertently annoying people with noise in a library or other public place expecting quiet. My current installation of the distro won't do it anymore. I no longer remember what setting it was, and have been unable to find it again. I thought it was the "auto-mute," but I tried it and it doesn't appear to accomplish what I'm describing.
I just had the scenario described: I was in the college library listening to music on headphones while studying, and suddenly noticed my headphones weren't fully plugged in. Nobody actually came over and told me to turn it off (and thus I wonder if they actually heard anything), but I'm still pretty embarrassed. (This, after I was just grumbling to myself about how stupid the school is to have maintenance trimming the trees outside the library with noisy tools in the middle of the day.) At least I don't listen to very loud or disruptive music.
I did already ask in my distro forum (not on LQ), but no one had any suggestions, possibly because it's not the distro's fault.
Last edited by newbiesforever; 09-20-2018 at 03:32 PM.
I did already ask in my distro forum (not on LQ), but no one had any suggestions, possibly because it's not the distro's fault.
yes it is. it's just a feature they care not to figure out how to do, if they had even thought of such a thing.
if you are using pulse audio and it can tell when you have headphone or speaker on, then you too can gain this information by whatever means they do, then exploit it to your benefit to mute your speakers whenever the right condition(s) occurs. or you can look into how to mute your speakers permanently and not your head phones.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.