-
Notifications
You must be signed in to change notification settings - Fork 2
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
RPi 5 and custom resolution #5
Comments
Difficult to analyze w/o having that monitor ;) But at first glance it looks like your display isn't reporting/confirming the resolution of 1680x342 (EDID). But to get closer to that issue please try some commands and report their output, maybe we're getting any hint then. On console or by ssh: I'm using a "marquee like" HDMI monitor which identifies as 1280x720 but is in fact a 1280x390 display. You see in which direction I am thinking right now... |
What I'm wondering about (but I'm having no RPi5 at hand) is that your xorg.log is showing FBDEV. With all my RPi's (Zero, 2 and 3) Xorg is using modeset as display driver. |
I got a bit further and have enabled vc4-kms-v3d, however nothing but an occasional flicker on the screen! It is currently connected via a KVM, but the Windows PC on the other port works fine, so I know it is able to control the screen. $ fbset -i Frame buffer device information: $ xrandr |
Shouldn't that be |
Not sure, I just un-commented the line that was there already! Sorry missed the extra commands: $ dmesg | grep -i v3d $ dmesg | grep -i vc4 |
Looks similar (but not equal) to my Pi3 and is showing that display driver and HDMI should be working. But please try |
Weirdly, I was able to get the screen to work originally with the following in cmdline.txt: `And adding this to tty2rpi.user:
I realize that resolution is a bit screwy, but it didn't work at all without it. However, this only worked connected directly and it didn't work through my KVM, which is why I am trying again! |
Yes I suspect there is an EDID issue, I am not sure what the KVM does with regard to EDID? I know that some will store the EDID to report to the inactive computer, maybe it doesn't like something (although Windows works ok?) |
Using FBDEV and FBCP with a HDMI setup should work but is the wrong way. The framebuffer setup is for meant for non HDMI/DSI setups and is lacking of hardware video acceleration then. I'm going to order a RPi5 (I always wanted to have one), but it's a holiday today here in Germany and the country is sunk in a holiday mood 'til sunday, I'm afraid ;) |
I am also using the Pi5 with a Pimoroni NVMe base and running RetroNAS on it, and I thought it would be best to use that for tty2rpi as well... At worse, I can see if I can get it working with a 3b. |
Funny, I'm also running a RPi Zero2W with a Pimoroni HyperPixel 4" (DSI, not HDMI) for tty2rpi and even this "poor mans setup" is working very reliably. |
Sorry I was remote when I ran that command, I am now in front of the machine and realised that the monitor was switched-off at the mains! $ xrandr |
If you are interested, this is the screen: |
Very well and very similar to mine 👍
Ha-ha! The curse of a remote worker, which I am, too. If modeset is used all is saying 1680x342 you should be fine. If not, we'll be going to set a fixed resolution in ~/.xinitrc-extra.example in the next step: |
Good morning, here is the relevant bit from Xorg.0.log: [ 21.456] (WW) modeset(0): Output HDMI-1: Strange aspect ratio (480/80), consider adding a quirk $ xrandr Finally, SO it definitely thinks this is what it is outputting, but still nothing on the display? :( I think that I will try without the KVM in case that is causing the issue, weird that Windows works through it OK, so I suspect it is sending a slightly different mode? |
Interesting. Everything looks like as it should. When you turn on the display and afterwards the RPi (important!) does the display change its colour? (many displays are displaying "blue" when turned on w/o a connected/active device). And is the tty2tft logo visible while booting up? There are two options in config.txt you could play with: |
Hi, No colour change or anything, it simply turns on the backlight and then displays a "no signal" banner. I am not sure that those settings in config.txt still do anything? In PiOS Bookworm, my understanding is all HDMI settings are now handled in cmdline.txt? I can't find any reference to these settings being moved though? Thanks so much for your help in trying to get this working! |
...and it still displays "no signal" all the time? That would even more a hint to use hdmi_safe and/or config_hdmi_boost (or remove the KVM, at least for testing).
Is that so? Never heard of that and we are using PiOS for tty2tft - as long as you didn't went another way, but that shouldn't matter what *nix OS you are using for your Pi. In fact I'm using the (almost) same code of tty2tft for a x86 based MAME-O-MAT and with a RPi400/ArchLinux.
Naah, not for that. You are so close, I'm NOT busy these days and I want you to enjoy my project 😃 |
I am using the latest 'bare' PiOS ARM64 version. My understanding is that the latest kms driver ignores all *hdmi settings in config.txt in favour of cmdline.txt. Both files have also moved to /boot/firmware. |
Yes, they moved to /boot/firmware but are still working (tested with RPi Zero/Hyperpixel and RPi 3/HDMI) and can't hurt to try both settings ;) |
OK so it's not the KVM. So far, the only way I have been able to get anything to display from the Pi on this screen is using the fb device directly and sending a weird (unsupported) resolution (1920x400). That works when connected directly, but not via the KVM! I wonder if the Pi is mis-interpreting the EDID slightly and sending timings that the screen doesn't support? Maybe seeing if I can get more information on exactly what Windows sends to the screen (as that works both with and without the KVM) |
In my opinion cmdline.txt and config.txt are controlling the chipset's parameters while bootstrapping the Kernel, DTB's, overlays and all that stuff in /boot before loading any Kernel module like graphic driver etc. Think of a BIOS that the RPi lacks of. But have you set hdmi_safe and/or config_hdmi_boost ? |
Yes tried them both, config_hdmi_boost (4 and 8) |
Damn, very weird.
I dind't think so (but I may be wrong) because even if is displaying nothing, all logs and settings are correct. |
Another thing what is hitting my eyes is the line in your Xorg.0.log
Dunno if that plays a role, I have to investigate. |
Yes I did wonder about that too, I found comments where people suggested that it is just a warning and can be ignored, but I wonder if it points to another issue? |
Got it! I added: vc4.force_hotplug=3 To the beginning of cmdline.txt and now have a display! |
Dang! Congrats!! And you are getting the tty2tft logo while booting up, the "Your IP addresses" and everything else afterwards? |
I didn't get the logo while booting, but I did get the main tty2rpi screen once booted. It still doesn't work through the KVM, but I can try a few other things... |
At least something. Keep me informed, please so I could update the docs. |
Yes will do. I might try some better converters/cables, currently it is using a micro-hdmi from the Pi5 to a female HDMI adaptor, then an active HDMI to DP converter and a (cheap) 2m DP-DP cable to the KVM and another (cheap) 2m DP-DP cable from the KVM to the display. I am using it on MiSTer. |
I do have another question, I downloaded the suggested library from archive.org, but that is missing a lot of games (and other computers/consoles) do you have a better source of images/videos? |
Very very nice! Looks like my MAME-O-MAT, in which I will eventually install a MiSTer additionally. |
Yes! For marquee sized displays like ours the first source would be MAME's marquees.zip |
Great, thanks for that! Phil |
Just reading through this document, it seems to have quite a bit of information for KMS and Pi4/5 support https://pip.raspberrypi.com/categories/685-whitepapers-app-notes/documents/RP-004341-WP/Troubleshooting-KMS-HDMI-output.pdf |
Sorry to keep bugging you, but I thought you would be interested to know that when I first set tty2rpi up using the FBDEV=yes option, CPU of the Pi5 was pegged at 100% (on a single core), since moving to the 'correct' method, CPU is much more reasonable. |
No problem. Don't hesitate to comment or to ask! Yes, that's a fact I'm aware of and why I mentioned that here. When using fbcp for framebuffer displays the decoding for all shown media is done in software. This working reliable but not "the" elegant way :) |
Thanks for document! Saved for future use. And possibly for my RPi5, which delivery is announced for Tuesday. |
My RPi5 arrived yesterday evening! I prepared a fresh PiOS ARM64 Lite SD card and used my own documentation to install all the stuff. Changed nothing in cmdline.txt and config.txt, just rebooted the RPi after installation and everything is working as normal. About dtoverlay=vc4-kms-v3d: Looks like that is a stub and and is loading the right/needed version itself. See here for a map file.
Found an info about that, we both are correct in half :) There are some legacy options that are deprecated and aren't working in >=Bookworm |
I suspect that many of my problems have been caused by the HDMI->DP converter! I bought another one and tried that, interestingly, that seems to work, but not at 1680x342, I only get a display at 800x600, but it does work through my KVM. It does seem to require the vc4.force_hotplug entry in cmdline.txt. I have noticed that with both HDMI->DP converters, the marquee screen goes blank for a second or two periodically. There doesn't seem to be a pattern to when it will do that. This doesn't happen with my Windows PC (which has DP on the GPU), so I think that is also an issue with the converters? As they are both active (with USB power) they are likely doing a fair bit of work to convert the HDMI signals to DP, which looks to be resolution dependant? |
All in all, yes, I'm afraid but sure, that all your problems are coming from the converters. Similar to (cheap) whatever2HDMI converters: Works, but with limitations (ghosting, 50/60Hz, weak signals, no RGB etc pp). |
Hi.
I am trying to use tty2rpi on a PI5 with a 1680x342 resolution screen using an HDMI to DisplayPort adapter.
I have had some success by forcing the frame buffer device, but wanted to try setting the resolution via Xorg. I have added a modeline to 10-monitor.conf, but get following in Xorg.0.log:
[ 20.014] (II) FBDEV(0): checking modes against framebuffer device...
[ 20.014] (II) FBDEV(0): mode "1680x352" not found
[ 20.014] (II) FBDEV(0): mode "720x400" ok
[ 20.014] (II) FBDEV(0): mode "800x600" ok
[ 20.014] (II) FBDEV(0): mode "640x480" ok
Any ideas how I can resolve this?
Thanks
Phil
The text was updated successfully, but these errors were encountered: