-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDMI:1 resolution setting changing HDMI:0 #1218
Comments
hdmi_cvt and hdmi_timings both set up the custom mode in either the DMT or CEA table. Note that you have both
in config.txt.
I did start looking at silently remapping hdmi1 to use mode 88 instead of 87, but didn't complete it. A quick hack for now would be to use hdmi_group=1 and hdmi_mode=107 for one of the displays (it's changed from hdmi_mode=65 as 4k adds more CEA modes). |
6by9, I tried the hack, unfortunately I'm still getting an incorrect resolution on HDMI 0. Relevant portion of /boot/config.txt is:
This is the result:
|
Even stranger. I swapped the group settings (And disabled overscan), as per:
and now I am getting:
|
Why I'm suspecting that the hdmi_cvt line gets executed immediately, therefore the hdmi_group needs to be before it. I'll see if the code for pushing the timings for the two displays into independent modes can be easily made to work. That's the better solution than having to use different modes for the two displays. @JamesH65 Do you want to pick that up instead? |
I changed the order to:
Unfortunately it doesn't seem to have made any difference:
|
Very odd quirk found. Having done
I get the expected resolutions.
(I still have overscan enabled, hence the slightly under 800x480 display). See https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679 for details of creating full timings. The command Meanwhile I'll look at fixing up hdmi_cvt for either mode, and independent custom modes. |
Hi 6by9 I can't make head or tail of how I would convert:
to
I've filled in the only bits I can figure out. I can't even find an explanation of the data that cvt spits out. I can't see any calculations being done in the second link you gave me, and I don't see much correlation between what is required for hdmi_timings and the code in the second link; For example, I see no mention of any 'porch' in the code. Please could you give some guidance - I don't want you to do it for me, then I learn nothing, but please assume I know nothing about the subject (Because I don't), and explain accordingly |
If you have something like:
in config.txt the firmware will use the cvt formula to calculate
|
For reference, comparing the output from "cvt 800 480 60"
vs what the firmware wants
As noted, the vsync period and vback porch values don't match between the two modes. |
OK, I think James has sorted the issue with hdmi_cvt only working for DMT modes, and I seem to have independent settings for the displays when using hdmi_group=2 hdmi_mode=87 on both displays. Now to have a quick look at the differences with the CVT timings.... |
kernel: net: bcmgenet: Workaround #2 for Pi4 Ethernet fail See: raspberrypi/linux#3108 kernel: drm/vc4: Add missing NULL check to vc4_crtc_consume_event kernel: vc4-kms commits backported See: raspberrypi/linux#3138 firmware: AWB: Allow user to set manual gains for the RPi algorithm firmware: arm_loader: Fix disabling of audio before reboot firmware: fixed up the custom CVT values to use correct group firmware: hdmi: Add independent table entries for hdmi_timings on each display See: #1218
kernel: net: bcmgenet: Workaround #2 for Pi4 Ethernet fail See: raspberrypi/linux#3108 kernel: drm/vc4: Add missing NULL check to vc4_crtc_consume_event kernel: vc4-kms commits backported See: raspberrypi/linux#3138 firmware: AWB: Allow user to set manual gains for the RPi algorithm firmware: arm_loader: Fix disabling of audio before reboot firmware: fixed up the custom CVT values to use correct group firmware: hdmi: Add independent table entries for hdmi_timings on each display See: raspberrypi/firmware#1218
@6by9 I think the original issue has been fixed, so we can close this? @fcollingwood Have you tested with the latest release? |
I believe so, although you do still have that pending firmware commit which was in this area. |
Hi. I'm having a great deal of trouble getting a Waveshare 7" LCD(C) to work on Pi4 I'm currently running (uname -a) Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux I was wondering if the fixes you mentioned are in this release? According to the WaveShare site, it should work with Pi4 with these config settings: max_usb_current=1 But I just get a blank screen near the end of the boot, though I can see some flickering. Without these params, I get a picture, but of course it's all over the place. Could you advise, please? Thanks! |
It turns out that I had to comment out the line This is noted in Waveshare's documentation but only for rotating displays. Should this be necessary? |
Did this ever get fixed? I'm having trouble outputting 2 different resolutions on the fkms drivers with the following config.txt. On a Raspberry Pi CM4. uncomment if hdmi display is not detected and composite is being outputhdmi_force_hotplug:0=1 uncomment to force a specific HDMI mode (here we are forcing 800x480!)hdmi_group:0=2 hdmi_force_hotplug:1=1 uncomment to force a HDMI mode rather than DVI. This can make audio work inDMT (computer monitor) modeshdmi_drive=1 |
Reference this issue reported on the forum.
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=247800
Appears that setting resolution on HDMI:1 is affecting HDMI:0
The text was updated successfully, but these errors were encountered: