dear mario
the Psychtoolbox command to set display brightness is flakey on my MacBook Air. (That's the only computer I tested.)
Screen('ConfigureDisplay','Brightness',screen,[],brightnessSetting)
I've tried single stepping through my MATLAB code while watching the display and the System Preferences Displays panel. (Incidentally, the AutoBrightness command does reliably turn autobrightness on and off.)
The Brightness command with a value of 1 usually (but not always) increases the screen brightness. But, weirdly, the brightness slider never moves. So the screen brightness becomes 1, while the slider remains, e.g. at 0.5. Any operation that brings focus back to the Displays panel brings brightness back down to whatever the slider is at. This is not what I remember. My recollection is that setting the brightness also moved the slider. My guess is that the behavior changed in one of the macOS releases. I realize that this may be beyond our reach. I'm just mentioning it to alert others and in the hope that perhaps there is a way to fix it.
best
denis
AutoBrightness(screen,0);
brightnessSetting=1;
brightnessReading = Screen('ConfigureDisplay','Brightness',screen,[],brightnessSetting)
brightnessReading = Screen('ConfigureDisplay','Brightness',screen,[])
![]() |
|