tvservice -s is giving wrong resolution - Raspberry Pi Forums
hi, have problem detecting resolution of plugged in monitor (i trying detect whether monitor plugged @ use in app in python), have tried giving me wrong answers:
when hdmi unplugged @ booting: when hdmi plugged after that:
(i expecting information hdmi not being plugged)
when hdmi plugged @ booting: when hdmi unplugged after main goal check whether hdmi monitor plugged
code: select all
tvservice -s
when hdmi unplugged @ booting:
code: select all
state 0x120016 [dvi dmt (4) rgb full 4:3], 640x480 @ 60.00hz, progressive
code: select all
state 0x120016 [dvi dmt (4) rgb full 4:3], 640x480 @ 60.00hz, progressive
(i expecting information hdmi not being plugged)
when hdmi plugged @ booting:
code: select all
state 0x120016 [dvi dmt (58) rgb full 16:10], 1680x1050 @ 60.00hz, progressive
code: select all
state 0x120016 [dvi dmt (58) rgb full 16:10], 1680x1050 @ 60.00hz, progressive
if nothing detected on hdmi port @ boot, defaults vga. matches seeing.
can not extract resolution tvservice using awk or similar? , if 640x480, assume it's not connected?
can not extract resolution tvservice using awk or similar? , if 640x480, assume it's not connected?
raspberrypi
Comments
Post a Comment