Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a normal LCD monitor as my primary monitor and an HD LCD television as a 2nd monitor (connected through HDMI). I also have a set of normal speakers for the computer (a Windows 7 machine) that I previously used (before I was using the TV as a 2nd monitor). When I am using the TV as a 2nd monitor, I would like audio to come from it. However, I'm oftentimes using the TV as a TV, in which case I would like the audio from my computer to come from my speakers. Is there any way to accomplish this?

It seems that if I have the TV set up as the default audio, then even if I turn the TV off (or, more likely, to the input from my cable box), then the audio still goes through that rather than my speakers. Is there a solution that does not require me to manually change the settings every time I want to switch contexts?

share|improve this question

4 Answers 4

up vote 1 down vote accepted
+50

This actually should be possible with some scripting or coding.

There is a WMI Win32_DesktopMonitor class that has an property called "Availability."

The availability property lists 17 possible states the monitor can be in. You will probably want want to check for the value of 0x03 (Running or Full Power). However, you would have to play with the returning values from your TV to see what is best.

With this in mind you can then change the default sound device, also available through scripting/coding. See this example.

So a program/script can be made to monitor the state of the TV and switch sound devices as necessary. However, it would definitely require some effort on your end to write it for your hardware.

share|improve this answer

My set up works, however, every time I plug in a new monitor or set something up, I have to pay with it to get it working properly again, and up until now, I was never sure how I got it right.

My current set up is on the Intel Graphics and Media Control panel- or whatever similar set up interface you have. I have two modes, one for TV Time and one for Normal use.

Fist I set up option one, which is saved as "TV Time", I have the monitor set to clone displays at the TV's resolution. Under audio (Playback Devices), I have the TV set as the default device. So when "TV Time" mode is selected, video goes to HDMI and audio is going to TV automatically.

I set up my primary mode secondly and saved it as "Normal Mode". Normal use is set to single display, and the correct monitor resolution, and Monitor as Primary display. So when you switch to "Normal Mode" it shuts off the HDMI and then in Sound, it no longer has the TV as an audio option, so in Sound (Playback devices) options, "Speakers" are set to default audio device.

share|improve this answer

There are some HDTV/Video card combinations that will tell the computer "I'm not watching you anymore", and then Windows could switch back. I am going to assume from your setup, that this is not the case.

For an automated way, that would be the way to go; unfortunately, I don't know off the top of my head which TVs and GFX cards will do that.

The next best solution is to create a shortcut on your taskbar, so you can press Windows+1 or Windows+2 to switch the audio. To create this shortcut though, you would need to track down where in the registry Windows stores the Audio Output Device, and export that entry to a new file. Do the same when it's connected to your TV. I unfortunately do not know where Windows stores that information though, so it would be up to another question or another user to explain how.

share|improve this answer
    
As far as I know, all devices have to be HDMI v3 to detect/change power states. –  Keltari Sep 10 '12 at 17:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.