IOMobileframeBuffer Properties

Here's a diff of the top-level IOMobileframeBuffer properties present/true on the built-in display vs a Samsung G7
https://www.diffchecker.com/KWNHGET2/

Can any display experts guess what these things do?
I believe temperature compensation is rather standard stuff on LCDs but what about the rest? enableDarkEnhancer looks particularly interesting.

When I get I chance I'll try to play with these but it's going to be tough without knowing what to observe/measure, also I risk possibly ruining the display.

APTDevice = true;
APTEnableCA = true;
APTEnablePRC = true;

BLMAHOutputLogEnable = false;
BLMAHStatsLogEnable = false;
BLMPowergateEnable = true;
BLMStandbyEnable = false;
BypassPCC2DLed = false;

DisablePCC2DBrc = false;
DisableTempComp = false;

IOMFBBrightnessCompensationEnable = true;
IOMFBSupports2DBL = true;
IOMFBTemperatureCompensationEnable = true;

PCC2DEnable = true;
PCCCabalEnable = true;
PCCEnable = true;
PCCTrinityEnable = false;
PDCSaveLongFrames = true;
PDCSaveRepeatUnstablePCC = true;

VUCEnable = true;

enable2DTemperatureCorrection = true;
enableAmbientLightSensorStatistics = false;
enableBLMSloper = true;
enableDBMMode = true;
enableDarkEnhancer = true;

enableLAC = true;
requestPixelBacklightModulation = false;
uniformity2D = true;

    aiaf

    Here are dropbox uploads of 240 fps microscope videos of Mac Mini M2 versus Legion 7i both connected using same usb-c to displayport cable to 144Hz LG monitor (the LG does not have a USB-C port) set to 100% brightness. The 7i is showing 8 bit in advanced display settings on Windows 11 23H2 (build 22631.3235) and I'm using color control to disable dithering supposedly. GPU is set in BIOS to Nvidia RTX 4080. I will do another round of testing when I have Windows 1809 running.

    The microscope was recording the central section of the lagrom gradient (banding) page. The videos titled "dark" are of the center part of the largest moon of this picture: https://beta.digitalblasphemy.com/2024/02/06/sinua/

    Can you see the differences? It looks to me the flicker is different between the two. Also check the gradient tests for still color OFF. For those who are really sensitive to visible flicker, please don't watch these videos.

    https://www.dropbox.com/scl/fo/os2v37wcx5n33om1uajmp/h?rlkey=73kzo0fi93qxbytwbojjmcyq9&dl=0

    • aiaf replied to this.

      photon78s are these slowed down or in realtime? What is the FPS of the original recording? QuickTime is showing 30fps and if your screen is at 144Hz then we are simply missing a ton of frames and it's difficult to say whether something or the other is taking place.

        aiaf

        These are straight out of camera original unedited files from the samsung s10+ "slow motion mode". When you are playing it back in quicktime, you are watching the motion slowed down. Looking through the scope with naked eye, I definitely cannot see this pixel flicker.

        I see the problem with this technique: https://eu.community.samsung.com/t5/galaxy-s10-series/i-can-no-longer-record-slow-motion-on-my-s10-and-output-mp4/td-p/1528847
        The default camera apps does not record real-time speed, everything is slowed down already.

        Will try setting the screen to 60hz and use the Nikon Z7 for true 120 fps 1080p video.

        Thank you. Now the search continues for better external monitors!

          aiaf i'm going to try to guess a few…

          BypassPCC2DLed (and DisablePCC2DBrc) could this possibly be able to disable the "2D" array of mini-LEDs and force a uniform backlight?

          IOMFBBrightnessCompensationEnable given that this is false on external but true on internal, this might be related to the uneven colors i was mentioning? i bet uniformity2D and NormalModeEnable are related too because the laptop seems like it's trying to "normalize" the brightness over areas of the display (and failing at that LOL)?

          enableDarkEnhancer i bet this is dithering related for sure

          enableLinearToPanel if this is what i think it is, it might be "converting linear (exact) colors into whatever the panel color space is". if so, it would be good to disable, because that might reduce color management / help prevent colors from being modified

          interesting i tried to edit your code to attempt to change these and i get "IOKit not permitted" on all of them except for enableDither which goes through fine, any idea why that might be the case and how to possibly modify these other properties?

          • aiaf replied to this.

            aiaf The flicker frequency matches the refresh rate. I am recording the flicker at 240 FPS.

            I can't yet say for certain that FRC color dithering is the source of flicker, but I can rule out PWM, since it tracks with refresh rate. I don't know the exact behaviour of LCD inversion, but at full white, there is no visible flicker. I would think full white would also have some flicker from inversion bias, but I am not sure if that artifact is expected to only occur on lower voltages. There is also what appears to be a slight randomness to the flicker intensity per sub-pixel. Which resembles FRC dithering. The problem is I have heard that Apple might intentionally source slower response time panels, to allow for better blending of temporal dithering signals. This latency makes it difficult to make sense of the flicker signal. One other factor is I don't really see any change in the noise signal for the better under the microscope when enabling Stillcolor. If there is a layering of temporal noise happening, I would maybe expect to see more flicker when disabled. It still makes more sense to me that there is a static spatial dithering layer being removed by the command, and only on the built-in display. And we know from IOGraphicsTypes.h that there is a spatial dithering option.

            I also tested an external OLED display. The Gigabyte AORUS FO48U. This display is OLED, and apparently has 10 bit native color. It also apparently has no built in FRC color dithering. But it also shows FRC color dithering under the microscope. I think I trust this is FRC dithering on that display, since the flicker frequency varies with refresh rate, OLED's do not have LCD inversion, and the sub-pixels light out of order at times. There is no muddiness to the effect, since the response time of the OLED is near instant.

            What is interesting is that when enabling Stillcolor, I see the difference in the Lagom Test Gradient on the built-in LCD, but not on the external OLED display. Again, my guess is the spatial dithering layer is removed by the command, but was only applied to built-in displays. But right now, it's all more of a guess.

              Blooey

              I am testing the M2 mini with a 144 Hz IPS LG display. When I look at the Lagom Test Gradient on that monitor and toggling Stillcolor, I only notice a slight brightness shift but the banding looks the same to my naked eye. I went into terminal and verified that dithering is off.

              @photon78s

              I have the same setup as you, with no banding using USB-C to DisplayPort, only a minor shift in brightness. However, when using HDMI to HDMI, I experience banding with no relief. The issue lies in how macOS renders the UI, especially when I am on the scaling 'retina' mode. It exacerbates the 'side effects' for me. I strongly believe that retina mode creates a pattern glare that negatively affects my eyes and head. A quote from Reddit perfectly describes my situation: "For example, a 5K Mac screen outputs 5120×2880 and then divides it by 2 to display a 2560x1440 "retina" resolution.
              This process (dividing) can be seizure inducing for me, as it creates a pattern glare where everything appears to be moving and vibrating. Unlike Windows, which does not use this type of rendering and simply zooms in without dividing the resolution."

                anon123

                That's interesting. I'm new to modern Macs as you can see (my last Mac that I truly used for significant period of time was the CRT iMac lol).

                At this point I am a bit tired of chasing new monitors and hardware swaps. Focusing now on how to build up defenses (breaks, eye washes with water, acupresssure, etc. ) and using the screens less.

                  anon123 when macOS divides by exactly 2 it works by just doing a 200% zoom, the same as Windows, so the vibrating feeling they had is probably related to usual Mac temporal dithering. Sounds just like the dithering symptoms I get on iPhone SE 2, most Macs, AMD video cards etc.

                  however, yes there will be additional distortion and moire patterns on not-exactly-2 scale factors (this is where it does differ from Windows). But exactly 2 should be fine, so they're definitely just feeling the symptoms of dithering

                    photon78s I'm not sure what to make of these videos. If your Windows setup is outputting an 8-bit signal (with dithering disabled) over to an FRC display and you're measuring a flicker, then that says more about the display than your particular OS+GPU config.

                    We've already seen that Stillcolor disables Apple GPU/DCP dithering in the Mira e-ink monitor (USB-C to ?), Blackmagicdesign capture card (HDMI to HDMI 1080p60), and via user testimony.

                    If you can take microscope footage on a monitor that's proven to be FRC-free at a particular bit depth, showing no flicker, then take footage using a OS+GPU combo on the same display that demonstrates flicker, then we can start diagnosing the software.

                    Edit: does your phone have a "Pro Video" mode at at 120fps FHD? If you can set your output's refresh rate to the minimum possible (30fps?) and and take scope footage with 120fps, it will probably be easier to analyze.

                      aiaf

                      Thanks for the suggestions. The pro video mode is not very useful in my case. Will try something else.

                      aiaf Please how should I send it to you? I exported it into *.txt file, but its quite a lot of text to copy it here.

                        martin I would also be interested in it for research purposes.

                        https://gist.github.com could work if there's no sensitive information in there.

                        Forum has a PM function under the user profile.

                          JTL I think PM permissions are disabled by default. I had to manually ask admin to give me permissions for it.

                          • JTL replied to this.

                            aiaf DISABLING "uniformity2D" WORKS

                            IT FIXES THE "weird fading to black bands around the edges" while still keeping bands on shadows (i.e. dithering is disabled TOO! this is in addition to it)

                            there is still some blotches of solid white backgrounds where changing gamma affects them differently than other areas of the same background, so that may be related to a different property, but uniformity2D is behind that weird edge effect!!!

                            the effects of disabling uniformity2D are sooooo obvious even when dithering is still enabled (but i can still notice an additional change when disabling/enabling dithering too)

                            this fixes something that's annoyed me about this screen for years where i always KNEW the edges were fading to dark instead of displaying a solid background

                            once you disable uniformity2D "you'll never unsee it" when it's on like it is by default! it's such a dumb screen effect because the screen honestly looks more color accurate when it's off!

                            in summary:

                            disabling and enabling dithering affects whether the fading to black at the edges (most visible on a white background) is banded or "smooth"

                            disabling uniformity2D GETS RID of the fade to black entirely

                            fyi:

                            a good way to test the effects of disabling and enabling dithering is looking at the transparent dark sidebar of Xcode against a wallpaper of a partly cloudy sky. you can easily see banding appearing and disappearing here

                              So after some more experimentation with the microscope, it turns out the OLED display I was testing Stillcolor with seems to have built-in FRC dithering. In fact, it is quite aggressive. The marketing and independent specification for the display make no mention of this. It occurred to me that I might be able to confirm that there is no temporal dithering built into the display by looking at the onscreen controls under the microscope. Sure enough, the middle grey design elements in the onscreen display settings have temporal flicker.

                              With that, I am more confident that Stillcolor is working on the M1 MacBook Pro 16". And that the temporal dithering visible under microscope might be LCD inversion with a sub-pixel implementation. But it amazes me how bad the LCD inversion is. The built-in MacBook display performs well on the many inversion tests available, but under the microscope it is pretty much terrible. If this flicker is LCD inversion, then I could see LCD inversion being a main cause of people's discomfort with these machines. I didn't know it was this bad, and had always thought this sub-pixel independent flicker under microscope on darker colors was temporal dithering.

                              Stillcolor does for sure increase the banding on the Lagom gradient test. So there is evidence it is working. It would be awesome to see time blend output from an M1 MacBook Pro 16" to a capture card, but for now I'll just have to assume Stillcolor is working. Because of the very similar noise of inversion, it is so far not obvious that anything temporal has been disabled by Stillcolor, through the microscope.

                              In the meantime, I am going to try to come up with an experiment to distinguish between LCD inversion and temporal dithering (sub-pixel type) to put this confusion completely to rest.

                                dev