majormili.blogg.se

Win 10 disable automute when headphones plugged in
Win 10 disable automute when headphones plugged in











win 10 disable automute when headphones plugged in

Here is the link to MSDN Documentation of the WMI class.It clearly mentions that, Event Type 3 generated under this class is Device Removed and Event Type 2 is Device arrival (plugged in).Īfter knowing this I believe, now it’s easier to register a WMI event using Powershell cmdlet Register-WMIEventĪnd wait for any of the above events (Event Type 2 or 3) to occur using cmdlet Wait-Event Capture Device Plug-In/Out Events: After some googling and research I found a WMI class Win32_DeviceChangeEvent that represents device change/modification events on a windows machine.Running the script in background:We can create a basic Task in Windows task scheduler to run a PowerShell script whenever machine whenever computer starts to run a PowerShell script This will make sure our script is always running in the background, waiting for a device to be plugged In/out.Or, in the case of Plug-IN event is generated UNMUTE the machine.If a Device Plug OFF event is triggered, make sure to MUTE your machine.That monitors a device plug – IN/OUT events.Run a background PowerShell script (Hidden preferred) always when your machine is up.It was embarrassing but the good part was I was at least not listening to Taylor Swift 😛 , So I thought why not to look for a solution available to fix this for me? Really I didn’t care much about finding one but was more interested in making one with Powershell! 🙂 THE IDEA: Somehow in hurry I managed to mute my PC.

win 10 disable automute when headphones plugged in

You need not restart your PC or anything else.Do you know mobile phones have an inbuilt feature to Auto mute a playing song/music, if by mistake you plug out your earphones from the jack, that prevents your phone to keep playing the music on speakers, which could be quite embarrassing in some surroundings and situations, but unfortunately we don’t have such a feature available on our desktops/laptops 😦Īnd I was victim of such an embarrassing situation a few days back, when I was listening to some music on my developer workstation in my office with my headphones on and tried to rest my head on the chair’s backrest in relaxing position, due to tension the cable got unplugged from headphone jack and allowed the music to be played for a while from my laptop speakers and it took me few seconds to realize that I screwed it and everybody in the office is looking at me 😀. This will change the input device behavior permanently and instantly.

  • Change the Auto-Mute value from Disabled to Enabled using Up/Down arrow keys:.
  • Using arrow keys, scroll the app's interface to the right until you see the trackbar called "Auto-Mute".
  • This will start the alsamixer app in the playback mode.
  • Type the following command: alsamixer -V playback.
  • win 10 disable automute when headphones plugged in

    The default XFCE terminal is a good choice. without pulseaudio but with ALSA, you need to do the following to resolve the headphones issue: Here is a simple solution for this issue. Before installing XFCE, this worked like a charm. When I plugged in headphones, the speakers were not muted. I noticed a weird behavior related to the sound system. Some time ago, I switched from Fluxbox to XFCE in my primary operating system, Arch Linux. RECOMMENDED: Click here to fix Windows issues and optimize system performance













    Win 10 disable automute when headphones plugged in