hd-zero / hdzero-goggle

MIT License
261 stars 76 forks source link

9.3.0 HDMI In 60Hz not working #374

Closed lukaszosinski closed 11 months ago

lukaszosinski commented 1 year ago

After upgrading firmware to 9.3.0 hdmi input on 60Hz doesn't work. Screen turning on and off randomly or no video at all.

How to reproduce:

  1. Connect gogles to your PC/Laptop
  2. Set resolution to 1080p or 720p
  3. Change frequency in the screen settings section (tested on Windows 11 with integrated Intel graphics card) from 50Hz (set by default) to 60Hz

I believe I used 60Hz before and even if not perfect it worked. Confirmed with one person on hdzero messenger group that problem can be solved by downgrading back to 9.2.0.

ligenxxxx commented 1 year ago

HDZERO_GOGGLE-74-191-9.3.0-9cc8535.zip @lukaszosinski Please test this fw.

lukaszosinski commented 1 year ago

@ligenxxxx - I've installed fw you provided but unfortunately no improvement.

ligenxxxx commented 1 year ago

HDZERO_GOGGLE-74-191-9.3.0-9cc8535_8.zip

lukaszosinski commented 1 year ago

@ligenxxxx - still the same.

ligenxxxx commented 1 year ago

self_test.txt From ombi (Discord), it seems that the frame rate recognition of hdmi in is inaccurate.

lukaszosinski commented 1 year ago

What does it mean to me? Should I try some workaround or Is it on hdzero firmware side?

ligenxxxx commented 12 months ago

Please wait for the fix. I'm solving this problem.

ligenxxxx commented 12 months ago

HDZERO_GOGGLE-74-191-9.3.0-6233610.bin.zip @lukaszosinski Please test this fw for hdmi in with 1080p 50/60 and 720p 50/60/100.

lukaszosinski commented 12 months ago

@ligenxxxx - I believe it solves the issue:

Tested the firmware with:

1080p50, 1080p60, 720p50, 720p60, 720p100 - all works.

I also have tried sim on PS5 to confirm and it works with 1080p60 set by PS5 by default.

Great job! Thanks!

djules75 commented 5 months ago

I still have the exact same issue on windows 11 with 9.3.1. The screen flickers when using 1080p@60Hz. Works fine with 1080p@50Hz. I downgraded using the above patched version (HDZERO_GOGGLE-74-191-9.3.0-6233610.bin.zip) and that solved the issue.

On a side note, the modes are not correctly recognized by windows 11 and I had to manually create a custom resolution in the nvidia control panel to add 720p@100Hz.

djules75 commented 5 months ago

As a follow up: with 9.3.0, I realized HD Zero VRX wasn't working (no image, only OSD from my drones). So I decided to build the firmware from the latest main branch and changed the it66021.c file as follows (since I only care about 60Hz and 100Hz modes for using the goggles with simulators on PC):

    if (hact == 1920 && vact == 1080) {
        ret = HDMIIN_VTMG_1080P60;
    } else if (hact == 1280 && vact == 720) {
        ret = HDMIIN_VTMG_720P100;
    }

That solved the issue for both modes. I initially tried to revert the change from the "More relaxed FPS detection" commit, but still had the flickering (screen goes black and comes back every 1-2 seconds, likely trying to switch between modes back and forth).

FYI: I also initially changed the cable and tried on Mac Os X, to no avail.

djules75 commented 4 months ago

Final update: After doing a full re-install of my NVidia drivers on my PC, the problem disappeared using the latest firmware...