Browse Source

hdmi cec

main
Hendrik Langer 6 years ago
parent
commit
739f174199
  1. 4
      raspberry-environment/display.py
  2. 2
      windows-snapshot-tool/src/main.cpp

4
raspberry-environment/display.py

@ -215,6 +215,10 @@ if __name__ == '__main__':
#os_echo(g+"functions/rndis.usb0/os_desc/interface.rndis/compatible_id", "RNDIS")
#os_echo(g+"functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_id", "5162001")
# send hdmi-cec commands: turn on tv, make this active source
subprocess.run('echo "on 0" | cec-client RPI -s -d 1', shell=True, check=False)
subprocess.run('echo "as" | cec-client RPI -s -d 1', shell=True, check=False)
fallback_str = b'state 0x12000a [HDMI DMT (4) RGB full 4:3], 640x480 @ 60.00Hz, progressive\n'
p = subprocess.Popen(['tvservice', '-s'], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
_stdout, _stderr = p.communicate()

2
windows-snapshot-tool/src/main.cpp

@ -34,7 +34,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
int nCmdShow)
{
// SetProcessDPIAware();
// SetProcessDPIAwareness();
// SetProcessDPIAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
// kill other already running instances
HWND existingApp = FindWindow(0, szClassName);

Loading…
Cancel
Save