Does Windows log when you plug in / unplug an audio device from a 3.5mm jack?












1















Question: When an audio device is plugged in or unplugged from the 3.5mm jack, does Windows log that anywhere? Where can I find this?



Background: I came back to my desk grabbing coffee and found that my buds were unplugged when I started a podcast. As fringe political shenanigans blared throughout the office, I thought to myself: "sabotage." Someone unplugged my buds while I was gone, hoping that I'd get myself into hot water in just such a way as this. I'll fight this all the way to the supreme court. I'll start a twitter hashtag campaign, #SaveThaler.



Of course it's also possible that I actually had just left them unplugged and forgot. So I want to see if there was a log for an unplugging around the time I stepped away for coffee.



Thanks.










share|improve this question























  • Not by default. You have to write an app to detect plug in/plug out and then generate a user defined event. See Device Events - Windows applications | Microsoft Docs

    – DavidPostill
    Dec 27 '18 at 19:27











  • Okay, sounds like this is the answer. If you'd like to repost as an answer rather than a comment, I'll mark it as the answer. Thanks.

    – D. Thaler
    Dec 28 '18 at 16:47











  • Answer posted ...

    – DavidPostill
    Dec 28 '18 at 18:13
















1















Question: When an audio device is plugged in or unplugged from the 3.5mm jack, does Windows log that anywhere? Where can I find this?



Background: I came back to my desk grabbing coffee and found that my buds were unplugged when I started a podcast. As fringe political shenanigans blared throughout the office, I thought to myself: "sabotage." Someone unplugged my buds while I was gone, hoping that I'd get myself into hot water in just such a way as this. I'll fight this all the way to the supreme court. I'll start a twitter hashtag campaign, #SaveThaler.



Of course it's also possible that I actually had just left them unplugged and forgot. So I want to see if there was a log for an unplugging around the time I stepped away for coffee.



Thanks.










share|improve this question























  • Not by default. You have to write an app to detect plug in/plug out and then generate a user defined event. See Device Events - Windows applications | Microsoft Docs

    – DavidPostill
    Dec 27 '18 at 19:27











  • Okay, sounds like this is the answer. If you'd like to repost as an answer rather than a comment, I'll mark it as the answer. Thanks.

    – D. Thaler
    Dec 28 '18 at 16:47











  • Answer posted ...

    – DavidPostill
    Dec 28 '18 at 18:13














1












1








1








Question: When an audio device is plugged in or unplugged from the 3.5mm jack, does Windows log that anywhere? Where can I find this?



Background: I came back to my desk grabbing coffee and found that my buds were unplugged when I started a podcast. As fringe political shenanigans blared throughout the office, I thought to myself: "sabotage." Someone unplugged my buds while I was gone, hoping that I'd get myself into hot water in just such a way as this. I'll fight this all the way to the supreme court. I'll start a twitter hashtag campaign, #SaveThaler.



Of course it's also possible that I actually had just left them unplugged and forgot. So I want to see if there was a log for an unplugging around the time I stepped away for coffee.



Thanks.










share|improve this question














Question: When an audio device is plugged in or unplugged from the 3.5mm jack, does Windows log that anywhere? Where can I find this?



Background: I came back to my desk grabbing coffee and found that my buds were unplugged when I started a podcast. As fringe political shenanigans blared throughout the office, I thought to myself: "sabotage." Someone unplugged my buds while I was gone, hoping that I'd get myself into hot water in just such a way as this. I'll fight this all the way to the supreme court. I'll start a twitter hashtag campaign, #SaveThaler.



Of course it's also possible that I actually had just left them unplugged and forgot. So I want to see if there was a log for an unplugging around the time I stepped away for coffee.



Thanks.







windows windows-10 audio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 27 '18 at 18:30









D. ThalerD. Thaler

82




82













  • Not by default. You have to write an app to detect plug in/plug out and then generate a user defined event. See Device Events - Windows applications | Microsoft Docs

    – DavidPostill
    Dec 27 '18 at 19:27











  • Okay, sounds like this is the answer. If you'd like to repost as an answer rather than a comment, I'll mark it as the answer. Thanks.

    – D. Thaler
    Dec 28 '18 at 16:47











  • Answer posted ...

    – DavidPostill
    Dec 28 '18 at 18:13



















  • Not by default. You have to write an app to detect plug in/plug out and then generate a user defined event. See Device Events - Windows applications | Microsoft Docs

    – DavidPostill
    Dec 27 '18 at 19:27











  • Okay, sounds like this is the answer. If you'd like to repost as an answer rather than a comment, I'll mark it as the answer. Thanks.

    – D. Thaler
    Dec 28 '18 at 16:47











  • Answer posted ...

    – DavidPostill
    Dec 28 '18 at 18:13

















Not by default. You have to write an app to detect plug in/plug out and then generate a user defined event. See Device Events - Windows applications | Microsoft Docs

– DavidPostill
Dec 27 '18 at 19:27





Not by default. You have to write an app to detect plug in/plug out and then generate a user defined event. See Device Events - Windows applications | Microsoft Docs

– DavidPostill
Dec 27 '18 at 19:27













Okay, sounds like this is the answer. If you'd like to repost as an answer rather than a comment, I'll mark it as the answer. Thanks.

– D. Thaler
Dec 28 '18 at 16:47





Okay, sounds like this is the answer. If you'd like to repost as an answer rather than a comment, I'll mark it as the answer. Thanks.

– D. Thaler
Dec 28 '18 at 16:47













Answer posted ...

– DavidPostill
Dec 28 '18 at 18:13





Answer posted ...

– DavidPostill
Dec 28 '18 at 18:13










1 Answer
1






active

oldest

votes


















1














When an audio device is plugged/unplugged from the 3.5mm jack, does Windows log that anywhere?



Not by default. You have to write an app to detect plug in/plug out. Note the jack has to support jack-presence detection.




A device event notifies clients of a change in the status of an audio
endpoint device in the system. The following are examples of device
events:




  • The user enables or disables an audio endpoint device from Device Manager or from the Windows multimedia control panel, Mmsys.cpl.

  • The user adds an audio adapter to the system or removes an audio adapter from the system.

  • The user plugs an audio endpoint device into an audio jack with jack-presence detection, or removes an audio endpoint device from such
    a jack.

  • The user changes the device role that is assigned to a device.

  • The value of a property of a device changes.




See Device Events - Windows applications | Microsoft Docs for more information and sample code.



You can extend the sample code to log to a file or create a custom user define event in the event log.



Suggestion:




  • Add code to use your built in webcam to take a photo of the culprit.






share|improve this answer
























  • Isn't it possible that the driver that enables the jack does logging by default?

    – deed02392
    Dec 28 '18 at 18:13











  • It's possible, but mine don't.

    – DavidPostill
    Dec 28 '18 at 18:15











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388200%2fdoes-windows-log-when-you-plug-in-unplug-an-audio-device-from-a-3-5mm-jack%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














When an audio device is plugged/unplugged from the 3.5mm jack, does Windows log that anywhere?



Not by default. You have to write an app to detect plug in/plug out. Note the jack has to support jack-presence detection.




A device event notifies clients of a change in the status of an audio
endpoint device in the system. The following are examples of device
events:




  • The user enables or disables an audio endpoint device from Device Manager or from the Windows multimedia control panel, Mmsys.cpl.

  • The user adds an audio adapter to the system or removes an audio adapter from the system.

  • The user plugs an audio endpoint device into an audio jack with jack-presence detection, or removes an audio endpoint device from such
    a jack.

  • The user changes the device role that is assigned to a device.

  • The value of a property of a device changes.




See Device Events - Windows applications | Microsoft Docs for more information and sample code.



You can extend the sample code to log to a file or create a custom user define event in the event log.



Suggestion:




  • Add code to use your built in webcam to take a photo of the culprit.






share|improve this answer
























  • Isn't it possible that the driver that enables the jack does logging by default?

    – deed02392
    Dec 28 '18 at 18:13











  • It's possible, but mine don't.

    – DavidPostill
    Dec 28 '18 at 18:15
















1














When an audio device is plugged/unplugged from the 3.5mm jack, does Windows log that anywhere?



Not by default. You have to write an app to detect plug in/plug out. Note the jack has to support jack-presence detection.




A device event notifies clients of a change in the status of an audio
endpoint device in the system. The following are examples of device
events:




  • The user enables or disables an audio endpoint device from Device Manager or from the Windows multimedia control panel, Mmsys.cpl.

  • The user adds an audio adapter to the system or removes an audio adapter from the system.

  • The user plugs an audio endpoint device into an audio jack with jack-presence detection, or removes an audio endpoint device from such
    a jack.

  • The user changes the device role that is assigned to a device.

  • The value of a property of a device changes.




See Device Events - Windows applications | Microsoft Docs for more information and sample code.



You can extend the sample code to log to a file or create a custom user define event in the event log.



Suggestion:




  • Add code to use your built in webcam to take a photo of the culprit.






share|improve this answer
























  • Isn't it possible that the driver that enables the jack does logging by default?

    – deed02392
    Dec 28 '18 at 18:13











  • It's possible, but mine don't.

    – DavidPostill
    Dec 28 '18 at 18:15














1












1








1







When an audio device is plugged/unplugged from the 3.5mm jack, does Windows log that anywhere?



Not by default. You have to write an app to detect plug in/plug out. Note the jack has to support jack-presence detection.




A device event notifies clients of a change in the status of an audio
endpoint device in the system. The following are examples of device
events:




  • The user enables or disables an audio endpoint device from Device Manager or from the Windows multimedia control panel, Mmsys.cpl.

  • The user adds an audio adapter to the system or removes an audio adapter from the system.

  • The user plugs an audio endpoint device into an audio jack with jack-presence detection, or removes an audio endpoint device from such
    a jack.

  • The user changes the device role that is assigned to a device.

  • The value of a property of a device changes.




See Device Events - Windows applications | Microsoft Docs for more information and sample code.



You can extend the sample code to log to a file or create a custom user define event in the event log.



Suggestion:




  • Add code to use your built in webcam to take a photo of the culprit.






share|improve this answer













When an audio device is plugged/unplugged from the 3.5mm jack, does Windows log that anywhere?



Not by default. You have to write an app to detect plug in/plug out. Note the jack has to support jack-presence detection.




A device event notifies clients of a change in the status of an audio
endpoint device in the system. The following are examples of device
events:




  • The user enables or disables an audio endpoint device from Device Manager or from the Windows multimedia control panel, Mmsys.cpl.

  • The user adds an audio adapter to the system or removes an audio adapter from the system.

  • The user plugs an audio endpoint device into an audio jack with jack-presence detection, or removes an audio endpoint device from such
    a jack.

  • The user changes the device role that is assigned to a device.

  • The value of a property of a device changes.




See Device Events - Windows applications | Microsoft Docs for more information and sample code.



You can extend the sample code to log to a file or create a custom user define event in the event log.



Suggestion:




  • Add code to use your built in webcam to take a photo of the culprit.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 28 '18 at 18:12









DavidPostillDavidPostill

104k25225259




104k25225259













  • Isn't it possible that the driver that enables the jack does logging by default?

    – deed02392
    Dec 28 '18 at 18:13











  • It's possible, but mine don't.

    – DavidPostill
    Dec 28 '18 at 18:15



















  • Isn't it possible that the driver that enables the jack does logging by default?

    – deed02392
    Dec 28 '18 at 18:13











  • It's possible, but mine don't.

    – DavidPostill
    Dec 28 '18 at 18:15

















Isn't it possible that the driver that enables the jack does logging by default?

– deed02392
Dec 28 '18 at 18:13





Isn't it possible that the driver that enables the jack does logging by default?

– deed02392
Dec 28 '18 at 18:13













It's possible, but mine don't.

– DavidPostill
Dec 28 '18 at 18:15





It's possible, but mine don't.

– DavidPostill
Dec 28 '18 at 18:15


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388200%2fdoes-windows-log-when-you-plug-in-unplug-an-audio-device-from-a-3-5mm-jack%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido