How to schedule a task on secondary audio/video device connection/disconnection?












1















I want to schedule a windows task to run when a secondary output device (e.g., VGA monitor or HDMI A/V receiver is turned on or off) but I'm not sure which event should be used for this. I found something related to network cable plug/unplug here How to launch a command on network connection/disconnection? , but nothing for external audio/video devices. Any such event or events exist? If not, any other way to do this? Thanks










share|improve this question





























    1















    I want to schedule a windows task to run when a secondary output device (e.g., VGA monitor or HDMI A/V receiver is turned on or off) but I'm not sure which event should be used for this. I found something related to network cable plug/unplug here How to launch a command on network connection/disconnection? , but nothing for external audio/video devices. Any such event or events exist? If not, any other way to do this? Thanks










    share|improve this question



























      1












      1








      1








      I want to schedule a windows task to run when a secondary output device (e.g., VGA monitor or HDMI A/V receiver is turned on or off) but I'm not sure which event should be used for this. I found something related to network cable plug/unplug here How to launch a command on network connection/disconnection? , but nothing for external audio/video devices. Any such event or events exist? If not, any other way to do this? Thanks










      share|improve this question
















      I want to schedule a windows task to run when a secondary output device (e.g., VGA monitor or HDMI A/V receiver is turned on or off) but I'm not sure which event should be used for this. I found something related to network cable plug/unplug here How to launch a command on network connection/disconnection? , but nothing for external audio/video devices. Any such event or events exist? If not, any other way to do this? Thanks







      windows hdmi scheduled-tasks






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 '17 at 10:17









      Community

      1




      1










      asked Aug 8 '14 at 12:11









      MagsMags

      62




      62






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Following on from your link above, I found that I could get this working for audio devices using the following event data:



          Log:       Microsoft-Windows-DeviceSetupManager/Admin
          Source: DeviceSetupManager
          Event ID: 112


          ID 112 seems to process newly connected devices. In Windows logs I had the following:




          Device 'LG-BDHT' ({db41aaf1-ce7e-5de5-904e-9b6d7560d7ba}) has been
          serviced, processed 4 tasks, wrote 0 properties, active worktime was
          427 milliseconds.




          This event seems to occur when I turn on my Bluray player (which then allows pass through access to my TV as a monitor).



          Hope this could help you get things working! Worst case scenario, look through you event logs for something that happens around the time that your TV turns on.






          share|improve this answer


























          • I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

            – Darrel Holt
            Mar 27 '18 at 22:33











          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%2f794188%2fhow-to-schedule-a-task-on-secondary-audio-video-device-connection-disconnection%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














          Following on from your link above, I found that I could get this working for audio devices using the following event data:



          Log:       Microsoft-Windows-DeviceSetupManager/Admin
          Source: DeviceSetupManager
          Event ID: 112


          ID 112 seems to process newly connected devices. In Windows logs I had the following:




          Device 'LG-BDHT' ({db41aaf1-ce7e-5de5-904e-9b6d7560d7ba}) has been
          serviced, processed 4 tasks, wrote 0 properties, active worktime was
          427 milliseconds.




          This event seems to occur when I turn on my Bluray player (which then allows pass through access to my TV as a monitor).



          Hope this could help you get things working! Worst case scenario, look through you event logs for something that happens around the time that your TV turns on.






          share|improve this answer


























          • I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

            – Darrel Holt
            Mar 27 '18 at 22:33
















          1














          Following on from your link above, I found that I could get this working for audio devices using the following event data:



          Log:       Microsoft-Windows-DeviceSetupManager/Admin
          Source: DeviceSetupManager
          Event ID: 112


          ID 112 seems to process newly connected devices. In Windows logs I had the following:




          Device 'LG-BDHT' ({db41aaf1-ce7e-5de5-904e-9b6d7560d7ba}) has been
          serviced, processed 4 tasks, wrote 0 properties, active worktime was
          427 milliseconds.




          This event seems to occur when I turn on my Bluray player (which then allows pass through access to my TV as a monitor).



          Hope this could help you get things working! Worst case scenario, look through you event logs for something that happens around the time that your TV turns on.






          share|improve this answer


























          • I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

            – Darrel Holt
            Mar 27 '18 at 22:33














          1












          1








          1







          Following on from your link above, I found that I could get this working for audio devices using the following event data:



          Log:       Microsoft-Windows-DeviceSetupManager/Admin
          Source: DeviceSetupManager
          Event ID: 112


          ID 112 seems to process newly connected devices. In Windows logs I had the following:




          Device 'LG-BDHT' ({db41aaf1-ce7e-5de5-904e-9b6d7560d7ba}) has been
          serviced, processed 4 tasks, wrote 0 properties, active worktime was
          427 milliseconds.




          This event seems to occur when I turn on my Bluray player (which then allows pass through access to my TV as a monitor).



          Hope this could help you get things working! Worst case scenario, look through you event logs for something that happens around the time that your TV turns on.






          share|improve this answer















          Following on from your link above, I found that I could get this working for audio devices using the following event data:



          Log:       Microsoft-Windows-DeviceSetupManager/Admin
          Source: DeviceSetupManager
          Event ID: 112


          ID 112 seems to process newly connected devices. In Windows logs I had the following:




          Device 'LG-BDHT' ({db41aaf1-ce7e-5de5-904e-9b6d7560d7ba}) has been
          serviced, processed 4 tasks, wrote 0 properties, active worktime was
          427 milliseconds.




          This event seems to occur when I turn on my Bluray player (which then allows pass through access to my TV as a monitor).



          Hope this could help you get things working! Worst case scenario, look through you event logs for something that happens around the time that your TV turns on.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 31 '15 at 13:32









          wonea

          1,48211940




          1,48211940










          answered Jul 31 '15 at 11:58









          dansimpsondansimpson

          111




          111













          • I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

            – Darrel Holt
            Mar 27 '18 at 22:33



















          • I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

            – Darrel Holt
            Mar 27 '18 at 22:33

















          I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

          – Darrel Holt
          Mar 27 '18 at 22:33





          I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in Log: Microsoft-Windows-DeviceSetupManager/Admin. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System). The corresponding values above would be Source: Display and an Event ID: 4107 in my case. Note: They both appear when connecting and disconnecting the monitors.

          – Darrel Holt
          Mar 27 '18 at 22:33


















          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%2f794188%2fhow-to-schedule-a-task-on-secondary-audio-video-device-connection-disconnection%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

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...