|
|
@ -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() |
|
|
|