Sony Megatron Colour Video Monitor

As it turns out, this is partially related the UI tonemapping bug.

When an SDR preset doesn’t include a “scale_type” line ???in the final shader of the chain???, the content is tonemapped identically to the UI.

HDR in SDR screenshots again, so these don’t look like they actually do, but it gets the idea across somewhat.

Megatron v2 active, screenshot popup presents the tonemapping bug:

A shader preset with no “scale_type” line, both content and popup present the tonemapping bug.

3 Likes

This doesn’t appear to be working correctly for me. It looks like it might be compressing the entire Rec2020 range down to Rec709 or some other smaller gamut, and then displaying the selected gamut within that range.

I’ll dig into it a bit and see if i can figure out what is going on.

(Megatron v2 is still working as expected.)

2 Likes

Unfortunately unrelated, but i found a single typo in crt-sony-megatron-hdr-pass-v2-config.slang that renders crt-sony-megatron-v2-default-config.slangp non-functional:

#define HCRT_HDR gloabl.EnableHDR

where it should be

#define HCRT_HDR global.EnableHDR

I replaced one of the transformation matrices with Rec2020’s, and this is indeed the case, at least approximately:

I haven’t been able to figure out why so far tho.

Edit 2: Oh, that may be related. The menu level HDR settings are still active:

2 Likes

Ah I think I know what this is about: I limit the scanlines to being on only on resolutions above 4x240p. I think this scale_type is messing around with that size and so the scanlines kick in or not which is what your screenshots seem to show.

2 Likes

Damn thats a nasty typo, great catch. I didnt test switching HDR on/off as much as the other settings. Ill fix it tomorrow. Ill hopefully fix at least one of the drivers menus tomorrow as well - its Vulkan thats the problem though.

2 Likes

Hey y’all, are there any updates on when we might see a LG G5 compatible settings? We used to have a CX and loved using this shader, and would love to get it up and running again on the G5 :slight_smile: Thanks for all you do!!

2 Likes

Fixed D3D11, D3D12 and Vulkan driver’s HDR menus. Whenever it gets merged, it will be in the nightly build there after.

5 Likes

Hi what settings are incompatible with a LG G5? I presume it looks broken and youre using the original shader? (rather than the recently updated v2 that is). In my head it should still work on a LG G5 just fine if you got it working on a LG CX. You might need to tweak the peak and paper white luminance for your new TV though.

2 Likes

LG changed the subpixel layout from RWBG to BWRG for the G5 (the C5 was still RWBG tho).

Another variation on the current WOLED setting would presumably work.

4 Likes

I don’t see why they can’t just try the 3 Layouts the shader has already and take some macro photos and get back to us.

It’s just the red and the blue subpixel swapped so that’s BRG. Don’t we already have a BRG layout? Who knows, maybe the existing RGB might work.

3 Likes

I thought there was some weird layout shenanigans factoring in the white subpixel spacing that made the “WOLED” layout work as well as it does, actually.

If it’s just RBG under the hood, then yeah, i would think the BRG layout would work just as well for the G5 as the “WOLED” layout does for the previous LG panels.

3 Likes

I would be happy to do so, but won’t be able to until I actually have the TV set up which is going to be tomorrow!

2 Likes

Just a (maybe dumb) question, but I’m not finding an answer in online searches. I’m aware that for HDR to work on Windows with D3D11/12 I need to enable HDR on the system and then in RetroArch. Is this also true for Linux with Vulkan?

The question arose because, reading the Arch Linux Wiki page about HDR, for all the applications listed there, including RetroArch, the information is that it is only necessary to enable it in the application itself.

And despite those bugs I mentioned in the comments above, I can use the Sony Megatron just by enabling HDR in RetroArch, also enabling it on the system does not fix the bugs, but in fact, it makes them worse.

So I’m unsure how is the correct way to use it on Linux systems.

1 Like

I don’t think anyone has thourougly tested it but I have always suspected that RGB phosphor triads on WOLED RWBG displays always use subpixels from at least 2 adjacent pixels in order to emulate 1 rgb phosphor triad. The white subpixel being off just creates the “X” or gap or darkened subpixel between triads.

1 Like

On Android at least there is no HDR switch - the app just asks for a HDR buffer and then tells the vulkan driver via meta data that its a HDR app. I think Windows should do the same but I vaguely remember people saying to avoid using metadata and just let the display decide which makes sense for some things max nits etc but maybe not for others. :thinking:

2 Likes

I can’t get Megatron v2 to load on my installations; I’ve got the Retrodeck and Flatpack versions of Retroarch running on Bazzite (Fedora) and they just fail to load. Doesn’t load on iOS either. All versions 1.22.2. Am I missing something? I’ve read the thread since my last post and can’t see any bugs mentioned.

Does it only work on Nightly Retroarch builds at the moment?

1 Like

Can confirm nightly build of RA D3D11, D3D12 HDR menus as far as box arts go are displaying correctly.

Vulkan still displaying issues. Not pressing, just offering feedback. Thanks for the work on this issue.

Vulkan:

2 Likes

That’s what I thought. On my Android it works exactly as you described, but on Linux almost it, when I enable HDR just in RetroArch I can see the content and load the Sony Megatron shaders in HDR mode, but I notice that the brightness doesn’t increase to its maximum, if it’s at 50%, it will remain at 50% after enabling HDR just in RetroArch. And it does increase if I enable HDR in the system settings, but that will further break the colors and brightness lol

But looking at the HDR-related issues for Gnome and KDE, it’s hard to know if the behavior is a bug, or a feature, or something not yet implemented. Unfortunately, HDR on Linux still seems like a broken mess in most cases.

I’ll stick using Sony Megatron in SDR mode for now to see if things improve with future Gnome and KDE releases.

Thank you very much for your reply and dedication maintaining this!

1 Like

Hmm thats odd - when did the nightly come out? My pull request was only merged this morning (9am UK time). Every driver should be fixed including Vulkan. If Vulkan is broken and the build does include my changes can you tell me what you have set in regards to the HDR menu and what if any shader are you running. Thanks

2 Likes

The release notes about the v2 release states that it only works on nightly builds for now, here: Sony Megatron Colour Video Monitor

This is because this is not only a major rewrite it is also more tied into the RetroArch runtime as it now uses the HDR menu’s settings rather than its own settings. This means it will only work with builds from last night onwards .

So it will only work on the Flatpak build when a new stable version is released there, which will come with the rewrite for the RetroArch HDR system needed for v2 work.

2 Likes