OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: ivan on December 20, 2023, 12:28:59 am

Title: Panorama Maximum Resolution
Post by: ivan on December 20, 2023, 12:28:59 am
While we are on this topic I have a question.  What is the maximum resolution that can be displayed by panorama?  At the moment I am running 1920 x 1200 on a 28 inch monitor.  I would like to go to 2560 x 1600 on a 30 inch monitor.  Is that possible?
Title: Re: Panorama Maximum Resolution
Post by: Dave Yeo on December 20, 2023, 01:36:51 am
According to the wiki, max resolution that has been tested is 3840x2160x32bpp. You do need BIOS support.
https://www.arcanoae.com/wiki/panorama/ (https://www.arcanoae.com/wiki/panorama/)
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 20, 2023, 02:49:01 am
Hello

I wanted to try 3840x2160 here but I was not able to make it work.

I have the Thinkpad T14s 1st Gen (https://www.os2world.com/wiki/index.php/Lenovo_ThinkPad_T14s_1st_Gen_-_20T1), It works with ArcaOS 5.1 and HDMI output works (after BIOS tweeking). I have a 4K TV here that can take a 3840x2160 resolution (I tested it with the same machine with Windows 11 and worked).

On ArcaOS I tried the "panoutil -c 3840 2160" but it will remain in 1920x1080 on the next reboot. (Check attached image)

If there is any additional trick you may suggest for 3840x2160 I will try it out. Or we can say that the T14s does not has 3840x2160 BIOS support?

Regards
Title: Re: Panorama Maximum Resolution
Post by: Andi B. on December 20, 2023, 09:11:55 am
Code: [Select]
If there is any additional trick you may suggest for 3840x2160 I will try it out.You can search the Mantis ticket about that from me a few years ago. Basically before playing games with custom resolution settings (you shouldn't do that) check what your hardware offers. I think it's listed in a testlog but there's also some util IIRC.

It depends on -
- connection type to your monitor (DisplayPort prefered is capable of all relevant resolutions, DVI can not do more than 1920 x 1440, HDMI varies a lot between different versions, analog RGB can't do very much probably no more than 1920x1200 or something like that)
- your monitors capabilities (read out and offered to the driver via EDID interface)
- your graphic card
- and most important the BIOS in your graphic card.

Sometimes it needs additional work from David to get it to work on your system though.

3840x2160 is running here since some time via PCIe ATI graphic card and the help of David (who included the fixes in 1.18 I think). 
Title: Re: Panorama Maximum Resolution
Post by: Neil Waldhauer on December 20, 2023, 03:16:08 pm
I've been using 3840x2160 on most of my computers for about a year.

Connection: DisplayPort
Monitor: LG 30 inch monitor
Computers: Lenovo desktop and laptop models

For laptops without DisplayPort, I use a Lenovo USB-c to DisplayPort adapter cable
To see a list of supported resolutions, use panoutil -i

Supported resolutions are the result of a negotiation between BIOS and the monitor (and your graphics card, if you have one; I haven't used one for a long, long time)

We may want to survey monitors and list their capabilities in the OS/2 World Wiki.
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 20, 2023, 08:01:52 pm
Hello Again.

Is there anything specific on the testlog report that can tell me if 3840x2160 is supported for my BIOS? I have it on the wiki, but some scrolling is required to get it (https://www.os2world.com/wiki/index.php/Lenovo_Thinkpad_T14s_1st_Gen_-_20T1_-_Hardware_Report#TESTLOG%20GENERIC%20Report).

I will check your other suggestions tonight.

Regards
Title: Re: Panorama Maximum Resolution
Post by: Andi B. on December 20, 2023, 09:01:23 pm
I think this
Code: [Select]
Panorama v1.18 log for GID=0 started at 2023-12-8 10:9:43
This copy of Panorama is licensed to Martin Iturbide #xxxxxxxxxx.
Profile setting for Shadow...Enabled
VESA version is 201
BIOS-supplied information
OemVendorNamePtr  = 8B000022
OemProductNamePtr = 8B000031
VideoModePtr      = 8B00004D
TotalVramSize     = 1000000
OemVendorName     = Arca Noae, LLC
OemProductName    = UEFI VESA Emulator v1.0
Emulated environment detected.
Initial PmRes X=1920 Y=1080 C=16777216
EDID Version 1.4
Display size 31 cm x 17 cm
Display resolution is 1920x1080
Info: 14100,1920,1080,184,36,16,16,3,14
Checking BIOS...
Mode 0x120: 1920x1080x32bpp planes=1 Attr=0xDB
Mode 0x121: 640x480x32bpp planes=1 Attr=0xDB
Mode 0x122: 800x600x32bpp planes=1 Attr=0xDB
Mode 0x123: 1024x768x32bpp planes=1 Attr=0xDB
Mode 0x124: 1280x1024x32bpp planes=1 Attr=0xDB
Mode 0x125: 1366x768x32bpp planes=1 Attr=0xDB
PmRes X=1920 Y=1080 C=16777216
X=1920 Y=1080 C=16777216 LoX=65535 LoY=65535 LoC=0
Requested mode=120
Video Aperture: Base=0xD0000000 Size=0x800000
Attempt to allocate shadow buffer...Success
Shadow Buffer locked at 0x5E5F7000, Length 0x800000 bytes
Trying D0000000 size 800000.
MTRR Write Combine caching enabled Base=D0000000 Size=800000.
Requested mode=120

 is the most relevant part. It shows that you are using the UEFI emulation. No clue if this has additional limitations. But it does not show how you have attached your monitor. If this is a notebook there's nothing you can do about of course. But if it's a desktop system then you really need DP. And don't attach another cable during boot in parallel, only DP nothing else. If no DP is available then try HDMI. Remember only one cable attached during boot.

You can compare what I've here -
Code: [Select]
Panorama v1.16 log for GID=0 started at 20.12.2023 20:26:17
This copy of Panorama is licensed to andreas.xxxxxxxxxxxxxx.
Profile setting for Shadow...Enabled
VESA version is 300
BIOS-supplied information
OemVendorNamePtr  = C0000170
OemProductNamePtr = C0000102
VideoModePtr      = 8D000044
TotalVramSize     = 3000000
OemVendorName     = (C) 1988-2010, Advanced Micro Devices, Inc.
OemProductName    = LEXA
Manual custom resolution is set to 3840x2160
Checking BIOS...
Mode 0x110: 640x480x16bpp planes=1 Attr=0xBB
Mode 0x111: 640x480x16bpp planes=1 Attr=0xBB
Mode 0x113: 800x600x16bpp planes=1 Attr=0xBB
Mode 0x114: 800x600x16bpp planes=1 Attr=0xBB
Mode 0x116: 1024x768x16bpp planes=1 Attr=0xBB
Mode 0x117: 1024x768x16bpp planes=1 Attr=0xBB
Mode 0x119: 1280x1024x16bpp planes=1 Attr=0xBB
Mode 0x11A: 1280x1024x16bpp planes=1 Attr=0xBB
Mode 0x165: 1280x960x16bpp planes=1 Attr=0xBB
Mode 0x166: 1280x960x32bpp planes=1 Attr=0xBB
Mode 0x121: 640x480x32bpp planes=1 Attr=0xBB
Mode 0x122: 800x600x32bpp planes=1 Attr=0xBB
Mode 0x123: 1024x768x32bpp planes=1 Attr=0xBB
Mode 0x124: 1280x1024x32bpp planes=1 Attr=0xBB
Mode 0x145: 1400x1050x16bpp planes=1 Attr=0xBB
Mode 0x146: 1400x1050x32bpp planes=1 Attr=0xBB
Mode 0x175: 1600x1200x16bpp planes=1 Attr=0xBB
Mode 0x176: 1600x1200x32bpp planes=1 Attr=0xBB
Mode 0x1D2: 3840x2160x16bpp planes=1 Attr=0xBB
Mode 0x1D4: 3840x2160x32bpp planes=1 Attr=0xBB
Mode 0x1D8: 2560x1440x16bpp planes=1 Attr=0xBB
Mode 0x1D9: 2560x1440x32bpp planes=1 Attr=0xBB
Video Aperture: Base=0xE0000000 Size=0x2000000
Attempt to allocate shadow buffer...Success
Shadow Buffer locked at 0xABFE0000, Length 0x2000000 bytes
Trying E0000000 size 2000000.
MTRR Write Combine caching enabled Base=E0000000 Size=2000000.
Requested mode=1D4

Edit - I see you're talking about a notebook. For such you can only play with BIOS options. No clue if it helps. Especially in UEFI mode. But you can try to select in BIOS something like 'External Display only'. For ArcaOS it's not possible to drive both displays (internal and external) at the same time. You need the right display at boot up (and only that one enabled). At least I can't get it to work on my notebooks. But Neil is much more experienced in this for sure.
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 20, 2023, 10:50:29 pm
Thanks Andi B.

Yes this is a Thinkpad T14s (laptop), and I don't have display port here.

What I would try tonight is:
- update Panorama to 1.19 (just in case)
- Generate TestLog with the Laptop showing video from the HDMI output with the TV attached.
- Generate "panoutil -i"

Maybe if something over "1920x1080" shows up on the logs, there is hope.

Regards
Title: Re: Panorama Maximum Resolution
Post by: Dariusz Piatkowski on December 20, 2023, 11:24:33 pm
Martin,

The HDMI cable matters here. More specifically, the cable itself must be designed to comply with a specific HDMI specification. Beyond that, there are real differences between 'Standard HDMI' and 'High Speed HDMI', latter one being capable fo 4K resolutions for example, while the former is limtted to 720p or 1080i (TV speak here to simplify).

Here is a nice, quick and simple article tht summarizes it all => https://www.cdw.com/content/cdw/en/articles/hardware/hdmi-cable-buying-guide-learn-all-you-need-to-know-about-hdmi-cables.html (https://www.cdw.com/content/cdw/en/articles/hardware/hdmi-cable-buying-guide-learn-all-you-need-to-know-about-hdmi-cables.html)
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 20, 2023, 11:32:37 pm
The HDMI cable matters here...

Thanks Dariuz, that is good to know.

I can not say that my HDMI cable is the best quality, but my only reference here is that the same machine (TP T14s with Dual Boot) with Windows 11, with this same cable, is producing "3840x2160" output through the HDMI port to the 4K TV.
I don't know if that is enough to say that the cable can hold here.

Regards
Title: Re: Panorama Maximum Resolution
Post by: Dariusz Piatkowski on December 21, 2023, 12:05:10 am
...I can not say that my HDMI cable is the best quality, but my only reference here is that the same machine (TP T14s with Dual Boot) with Windows 11, with this same cable, is producing "3840x2160" output through the HDMI port to the 4K TV...

Oh, I'm sorry but I missed that.

In that case, you are good-to-go, and this would appear to be an OS/2 matter.

I'm curious, does Panorama offer the functionality to capture your EDID and dump it out? If the answer is YES, you could certainly do that and parse it through a number of EDID decoders.

Ultimately, assuming the BIOS is not the issue here, the reason why this matters is that a video device driver would want to know what the output device is capable of displaying, and EDID is the record structure meant to facilitate that communication.

So again, assuming Panorama is reading EDID (which I believe it is), it should conclude based on that record what the max capability of your display is, and presuming that your video hardware is capable of addressing that space, it would proceed to use that configuration.

I have a boat-load of SNAP experience, including building custom EDID records and flashing those one displays, unfortunately I do not know the Panorama side of this.
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 21, 2023, 02:11:17 am
Hello

I tried again, and no luck getting "3840x2160".

Booted ArcaOS 5.1 with HDMI output enabled (the video was only shown on the 4K TV). I generated the logs there, but on the logs there are no clues about "3840x2160".

panoutil -i shows:
Quote
BIOS-supplied information
OemVendorNamePtr  = 8b000022
OemProductNamePtr = 8b000031
VideoModePtr      = 8b00004d
Vendor Name: Arca Noae, LLC
Product Name: UEFI VESA Emulator v1.0
VBE VRAM size 1000000 (16 MiB) (rounded) 1000000 (16 MiB)
Mode List from Int10
Mode 0x120: 1920x1080x32bpp Attr=db Planes=1 Phys=d0000000
Mode 0x121: 640x480x32bpp Attr=db Planes=1 Phys=d0000000
Mode 0x122: 800x600x32bpp Attr=db Planes=1 Phys=d0000000
Mode 0x123: 1024x768x32bpp Attr=db Planes=1 Phys=d0000000
Mode 0x124: 1280x1024x32bpp Attr=db Planes=1 Phys=d0000000
Mode 0x125: 1366x768x32bpp Attr=db Planes=1 Phys=d0000000
6 modes listed, 6 usable

Regards
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 21, 2023, 03:31:04 pm
Hello

Sorry Ivan, I noticed I hi-jacked your thread.

At the moment I'm experiencing that if you BIOS does not support that resolution I can not make a 4K monitor work with Panorama, even that Windows 11 can (Because it has native driver).  (If someone wants to correct me I will more than happy to keep trying.)

Ivan, can you run "panoutil -i" on your machine to see what it shows?


Regards
Title: Re: Panorama Maximum Resolution
Post by: Andi B. on December 21, 2023, 04:47:34 pm
Quote
At the moment I'm experiencing that if you BIOS does not support that resolution I can not make a 4K monitor
I would it express in other words - the BIOS offers Panorama only resolutions it thinks the 'monitor in conjunction with the current connection' (DP, DVI, HDMI, ...) is capable. Then Panorama tries to select the predefined BIOS mode (resolution) which matches best OR tries to patch on of the BIOS modes to a better resolution.

I'm not sure if I got it correct, but to my understanding Panorama is sometimes capable to patch (overwrites) one of the modes in some BIOSes. That's the reason why I see a slight chance that there could be a difference when you use traditional BIOS mode instead UEFI. Currently you're running the 'UEFI BIOS emulation' driver not the real BIOS. Of course I could be totally wrong. Maybe when you open a ticket David will explain to you the real truth.

Title: Re: Panorama Maximum Resolution
Post by: ivan on December 21, 2023, 07:39:19 pm
Hi Martin.

Panoutil -i gives a long list of resolutions so I have attached it as pano.txt.
Title: Re: Panorama Maximum Resolution
Post by: Dariusz Piatkowski on December 21, 2023, 08:05:32 pm
...the BIOS offers Panorama only resolutions it thinks the 'monitor in conjunction with the current connection' (DP, DVI, HDMI, ...) is capable. Then Panorama tries to select the predefined BIOS mode (resolution) which matches best OR tries to patch on of the BIOS modes to a better resolution...

@Andi's description above is spot-on: it is the combination of all of the above components that all come together to negotiate the best display configuration.

@Martin,
Do you have the option to try your config using it's native BIOS as opposed to the UEFI mode?

The other thing to investigate is the memory allocation (framebuffer I believe) needed to support a specific resolution. I can only assume that the UEFI VESA Emulator, once the actual display mode is negotiated, attempts to do so, which is why perhaps the following shows up in the LOG:

Code: [Select]
Product Name: UEFI VESA Emulator v1.0
VBE VRAM size 1000000 (16 MiB) (rounded) 1000000 (16 MiB)

In my experience with SNAP in trying to minimize the amount of memory it tried to allocate/address, and which would typically run up against what OS/2 could possibly access on my machine (ATI 256M video card, but my 1920x1200x2 really doesn't NEED all that space so why should SNAP set-aside that much ram for video card purposes?), I took to setting SNAP to use a much smaller framebuffer with 'gaoption vidmem 32', which sets that to 32M total.

By my calculation your 3840x2160 in 32-bit colour needs about 32M, so the current size shown in the LOG is too small, although it is perfectly fine for the resolution that Panorama is picking up for it's use at that time.

In comparison my 1920x1200 in 32-bit colour only needs 9M, and even with dual-head display that's only 18M.
Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 22, 2023, 12:47:08 am
Hello

I opened a ticket: https://mantis.arcanoae.com/view.php?id=3582
I had seen that David patchs the BIOS with Panorama to other users, maybe it can work here. But if David tells me there is no hope, that's it.

@Martin,
Do you have the option to try your config using it's native BIOS as opposed to the UEFI mode?
I will have to test this, I guess this T14s machine has CSM. But do I have to install ArcaOS again as "Non UEFI" ?

Ivan: Do you have the 3" Monitor (2560 x 1600) around, or you are just planning to get it?
Do you know if your machine video specs support  2560 x 1600 ?

Regards

Title: Re: Panorama Maximum Resolution
Post by: Martin Iturbide on December 22, 2023, 01:05:16 am
@Martin,
Do you have the option to try your config using it's native BIOS as opposed to the UEFI mode?

I checked the UEFI menu:

I run into the "* Unselectable for Kernel DMA Protection" issue to turn CSM on, but it was solved with this documentation:
- https://support.lenovo.com/us/en/solutions/ht509543
I keep it on UEFI with CSM on, because I read that David recommend that on this ticket:
- https://mantis.arcanoae.com/view.php?id=3565

ArcaOS 5.1 booted and now "panoutils -i" gave me the same results, but it took out the "1280x1024x32", only 5 usable now.

Regards

Correction: It seems that when I boot with the TV attached I got 6 usable resolutions and when I boot with the computer screen I only have 5 usable resolution.
Title: Re: Panorama Maximum Resolution
Post by: ivan on December 22, 2023, 01:19:44 am
Hi Martin,

the 30" monitor (Dell u3023e) is on order but is held up because of Christmas parcel delivery problems.  Being a 16:10 monitor it will do 1920 x 1200 (the resolution of my 28" monitor at the moment) as well if necessary although getting the full resolution would be nice.