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

code: select all

tvservice -s
giving me wrong answers:
when hdmi unplugged @ booting:

code: select all

state 0x120016 [dvi dmt (4) rgb full 4:3], 640x480 @ 60.00hz, progressive
when hdmi plugged after that:

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
when hdmi unplugged after

code: select all

state 0x120016 [dvi dmt (58) rgb full 16:10], 1680x1050 @ 60.00hz, progressive
main goal check whether hdmi monitor plugged

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?


raspberrypi



Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key