I have a strange issue with one of my PTB installations. After running an experiment, the screen that displays the stimuli becomes black. The only way to go back to normal is to close Matlab. Running Screen(‘CloseAll’) won’t do anything. If the screen is still black and I run another experiment, it will display the stimuli correctly.
I have a dual screen setup with a DATAPixx3 attached. But I have the same problem without it.
This is my PC setup:
Windows 11 Pro, VER. 23H2
12th Gen Intel(R) Core™ i7-12700 2.10 GHz
RAM 32 GB
AMD Radeon Pro WX 3200 Series
DATAPixx3
Matlab 2023b
PTB 3.0.19 - Flavor: beta
I have seen this, but not with PTB. What works for me in that case is
to press cntr+alt+del and then exit out of that screen again, seems to
close the black screen.
Ah! If I press cntr+alt+del and then go back to Matlab, the monitor turns on again.
OK, so this might be a fix, but is there an underlying issue I should be aware? This is the only machine in my lab where I see this behavior (and they have fairly similar installations).
Are you embedding your script into a ‘try—catch’ statement? Sounds like an error is not being handled?
try {
…(everything)
{
catch ME
disp(ME.message);
ppdev_mex(‘Close’, 1);
ShowCursor;
sca;
end
}
I’ve seen this occasionally, on Windows-10 with dual-screen, can’t remember if with AMD, NVidia or both. What is pretty certain is that it is not a Psychtoolbox bug, but either a bug in MS-Windows, or in the AMD or NVidia display drivers. Not fixable by us.
But yeah, as Diederick said, the CTRL-ALT-DEL trick was the one reliable way to get the black screen unstuck again.