|
Edited by KY69 at 2016-12-16 11:25
Note added after writing: all the information contained here is either in the forum or in links pointed from it, but it is scattered and somewhat difficult to put together. I hope this helps people save precious time. All credit goes to the many people who posted the original information in the first place.
Still waiting for the +2Es on the mail, but I finally got to do some tests with my OPi-PCs regarding the video resolution, and after some sweat I got them working with some of my (DVI) HP monitors. My test setup is:
OPi-PCs running Jacer Lubuntu (15.04), connected to HP monitors via DVI, with HDMI cables from the OPis hooked to cheap HDMI->DVI adapters from eBay or Aliexpress. The monitors I tested so far were 1280x1024 native resolution (60Hz). I will try another HP with 1440x900 as soon as I have a chance.
I first messed around with script.fex, but that was not enough. The kernel was not aware of other resolutions (via HDMI) besides the few 16:9 default ones and a couple others, so in as few words as possible this is what you need to get it working.
1) Edit script.fex as follows:
- in [clock] section, change pll_video to 432 (which is a multiple of 108.00). It is probably set to 297 (multiple of 148.50); (*)
- in [hdmi_para] section, add:
- hdcp_enable = 0 (this is a potential point of trouble, better save yourself the trouble, disable HDCP);
- hdmi_cts_compatibility = 1
- in [disp_init] section I made a few modifications, they may not all be necessary, but I do not have the time to strip them out one by one now just to find out. It is working as follows:
- screen0_output_type = 3 (this is probably how it is at the moment, i.e., use HDMI)
- screen0_output_mode = 5 (for 1280x1024. Use mode 4 for 1024x768, but I have not tested that) (*)
- fb0_scaler_mode_enable = 1 (including this line and editing the next two may not be necessary)
- fb0_width = 1280
- fb0_height = 1024
2) Replace the default /media/boot/uImage with the one provided by dni here. Basically this image has modes 4 and 5 (720p50 and 720p60) replaced by the new ones (4:3 1024x768 and 5:4 1280x1024, respectively), or at least that's what I made from it. dni probably edited the timings in hdmi_core.c and perhaps modified some other files and recompiled the kernel. Any questions contact dni directly
And that's it! You should have Lubuntu 15.04 running in your 1280x1024 ( | 1024x768) monitor via DVI. Easy and painless.
(*) 1024x768 required pll_video = 260, if I am not mistakened.
Note: Armbian seems to have a whole bunch of video modes already setup, so if it's all the same to you, it could be interesting for a new install. If you have systems already set up and/or need Ubuntu for whatever reason you may have, the procedure described here should not take more than a few minutes.
|
|