|
@ -214,12 +214,14 @@ 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/compatible_id", "RNDIS") |
|
|
#os_echo(g+"functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_id", "5162001") |
|
|
#os_echo(g+"functions/rndis.usb0/os_desc/interface.rndis/sub_compatible_id", "5162001") |
|
|
|
|
|
|
|
|
# subprocess.run(['tvservice', '-p'], shell=False, check=False) |
|
|
fallback_str = b'state 0x12000a [HDMI DMT (4) RGB full 4:3], 640x480 @ 60.00Hz, progressive\n' |
|
|
# subprocess.run(['fbset', '-fb', '/dev/fb0', '-depth', '16'], shell=False, check=False) |
|
|
p = subprocess.Popen(['tvservice', '-s'], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
|
|
|
|
|
_stdout, _stderr = p.communicate() |
|
|
|
|
|
if (len(_stdout) > 0 and _stdout == fallback_str): |
|
|
|
|
|
subprocess.run(['tvservice', '--explicit="CEA 16 HDMI"'], shell=False, check=False) |
|
|
|
|
|
subprocess.run(['fbset', '-fb', '/dev/fb0', '-depth', '16'], shell=False, check=False) |
|
|
|
|
|
subprocess.run(['fbset', '-fb', '/dev/fb0', '-depth', '32'], shell=False, check=False) |
|
|
|
|
|
|
|
|
#tvservice -p |
|
|
|
|
|
# tvservice -e "DMT 82" |
|
|
|
|
|
# fbset -g 1920 1080 1920 1080 16 |
|
|
|
|
|
|
|
|
|
|
|
def callback(paths): |
|
|
def callback(paths): |
|
|
# if paths: |
|
|
# if paths: |
|
|