Force Resolution & Audio through HDMI, with presets? - AVS Forum
Forum Jump: 
 
Thread Tools
post #1 of 2 Old 06-25-2014, 09:37 PM - Thread Starter
AVS Special Member
 
Neuner's Avatar
 
Join Date: Aug 1999
Location: San Antonio
Posts: 1,360
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 2 Post(s)
Liked: 10
Force Resolution & Audio through HDMI, with presets?

Wow, it's been a long time since I've been to this part of the forum. My knowledge of HTPC has faded off to the West along with my PC and other misc equipment and I feel like an old man tinkering with a new mystery machine.

I have two LCD TVs that I sometimes like to switch back and forth to with my laptop. I connect through HDMI to either one of them. I run Win 8.1 and it has some serious issues with recognizing between either one of them if it recognizes it at all. Most of the time it doesn't acknowledge anything and I have to restart and hope it figures out something. I use to have it occasionally connected to only one but now that I switch, it really doesn't like it. Lately it doesn't like to put out HDMI audio either.

Is there a program that would allow me to force an HDMI resolution and HDMI audio and hopefully set up hot-key's to switch between the two?

Thanks for the help,
Neuner
Neuner is offline  
Sponsored Links
Advertisement
 
post #2 of 2 Old 06-26-2014, 11:49 AM
Member
 
pylor's Avatar
 
Join Date: Mar 2014
Posts: 83
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 21 Post(s)
Liked: 18
I had a similar problem, I have a motherboard with IPMI which is what I use to remote in (over a VPN) as it doesn't interfere with coin mining like pure remote desktop does. I ended up going with AutoIT and just writing a script that would do this for me when I pressed a key on my remote control. To give you an idea:

Code:
HotKeySet("{F11}", "switchToOtherSetting") ; Switch from XBMC to mining and viceversa

While 1
  Sleep(1000000)
WEnd

Func switchToOtherSetting()
Send("#r")
WinWaitActive("Run", "Open")
Send("control{SPACE}desk.cpl{Enter}")
WinWaitActive("Screen Resolution", "Identify")
If WinActive("Screen Resolution", "Extend these displays") Then
   ProcessClose("sgminer.exe")
   Send("{TAB 4}{DOWN}{TAB 7}{Enter}")
   WinWaitActive("Display Settings", "Keep changes")
   Send("{TAB}{SPACE}")
   Sleep(2000)
   $iPID = Run("C:\Program Files (x86)\MSI Afterburner\MSIAfterburner.exe")
   WinWaitActive("MSI Afterburner")
   Sleep(100)
   Send("{CTRLDOWN}{ALTDOWN}{NUMPADMULT down}")
   Send("{NUMPADMULT up}{CTRLUP}{ALTUP}")
   Sleep(3000)
   ProcessClose($iPID)
   Sleep(1000)
   Send("#r")
   WinWaitActive("Run", "Open")
   Send('"c:\Program Files{SPACE}(x86)\XBMC\XBMC.exe"{Enter}')
ElseIf WinActive("Screen Resolution", "Show desktop only on 1") Then
   ProcessClose("xbmc.exe")
   Send("{TAB 4}{UP}{TAB 7}{Enter}")
   WinWaitActive("Display Settings", "Keep changes")
   Send("{TAB}{SPACE}")
   Sleep(2000)
   $iPID = Run("C:\Program Files (x86)\MSI Afterburner\MSIAfterburner.exe")
   WinWaitActive("MSI Afterburner")
   Sleep(100)
   Send("{CTRLDOWN}{ALTDOWN}{NUMPADDIV down}")
   Send("{NUMPADDIV up}{CTRLUP}{ALTUP}")
   Sleep(3000)
   ProcessClose($iPID)
   Sleep(30000)
   Send("#r")
   WinWaitActive("Run", "Open")
   Send('"c:\sgminer\sgminer.bat"{Enter}')
EndIf
EndFunc
This is what I use to switch back and forth. I don't know if you know any code, but autoit is probably the easiest coding language I've ever seen. It's also very simple, but it's powerful in its simplicity. Basically it'll send key commands the same as you would typing on a keyboard, and it'll also wait for specific windows to pop up before typing. In this function I close out of mining, open the display settings, change it to only display on my TV, and then start XBMC. If I press it again it'll close XBMC, switch to my onboard graphics as primary (so the IPMI will display properly), and then wait 45 seconds to start mining. It also applies specific graphics card settings using afterburner but you can ignore that part.
pylor is offline  
Reply Home Theater Computers

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off