kopia lustrzana https://github.com/hoglet67/RGBtoHDMI
Fix monitor power up EDID issue
rodzic
d96b6d59ef
commit
e2e8995ed4
14
src/osd.c
14
src/osd.c
|
@ -7307,13 +7307,13 @@ void osd_init() {
|
|||
int auto_detected = 0;
|
||||
if (strcmp(prop, DEFAULT_RESOLUTION) == 0)
|
||||
{
|
||||
//if auto detected then check vertical resolution and reboot if 240 or 288
|
||||
//int v_size = (*PIXELVALVE2_VERTB) & 0xFFFF;
|
||||
//if (v_size == 240 || v_size == 288) {
|
||||
// log_info("Resolution = Auto and no HDMI connected (V=%d) - rebooting", v_size);
|
||||
// delay_in_arm_cycles_cpu_adjust(1000000000);
|
||||
// reboot();
|
||||
//}
|
||||
//if auto detected then check vertical resolution and reboot if 240 as EDID wasn't read by Pi due to monitor power up
|
||||
int v_size = (*PIXELVALVE2_VERTB) & 0xFFFF;
|
||||
if (v_size == 240) {
|
||||
log_info("Resolution = Auto and no HDMI connected (V=%d) - rebooting", v_size);
|
||||
delay_in_arm_cycles_cpu_adjust(1000000000);
|
||||
reboot();
|
||||
}
|
||||
|
||||
auto_detected = 1;
|
||||
if (get_parameter(F_REFRESH) == REFRESH_50) {
|
||||
|
|
Ładowanie…
Reference in New Issue