Has anyone got Psychtoolbox to work on a second screen under Win10-64 Version 2004? If so, how?
Please send demo code that works, or else tips or tricks.
My system described below runs fine on one screen but does not let me use PTB on a second screen
The main screen is plugged into the DisplayPort output. The secondary screen is HDMI.
When only one screen is plugged in, everything is fine, and the code below runs without error, and Screen(‘Screens’) returns 0.
When both screens are plugged in, Windows allows only 3 settings:
Extend display, Screen 1 only, or Screen 2 only. Screen(‘Screens’) returns [0,1,2].
In all cases, OpenWindow displays only on the main screen, despite being called with the
screen parameter being set to 2.
Hardware and system versions:
Intel NUC Core-i5-6260U @ 1.80 GHz 32GB memory
Windows 10 Pro Version 2004 (10.0.19041.450)
Displayport and HDMI video outputs
Intel Iris ® Graphics 540
Driver version 27.20.100.7989
OpenGL 4.6, Shader 5.1, OpenCL 2.1
Matlab R2019a fully updated.
System runs all PsychDemo programs tested perfectly, including
DriftDemo6 GarboriumDemo ClutAnimDemo ProceduralSmoothedDiscMaskDemo
It ran with the same failure on last year’s PTB, and it runs the same now after UpdatePsychtoolbox.
Current Psychtoolboxversion is
'3.0.16 - Flavor: beta - Corresponds to SVN Revision 10582 but is locally modified !
Local modifications consist ONLY of National Instruments USB driver.
Test Code to exhibit this behavior
testmultidisplay.m
Screen(‘Preference’, ‘SkipSyncTests’, 1); % if set to zero with both screen plugged in, fails with PTB - ERROR: SYNCHRONIZATION FAILURE
scrs = Screen(‘Screens’);
for k=1:length(scrs)
[windowptr, windowrect] = Screen(‘Openwindow’,scrs(k),[0, 50*k, 0], [10, 10, 200, 300]);
disp([k, scrs(k)]);
WaitSecs(1);
Screen(‘Close’, windowptr);
WaitSecs(.2);
end
% With both screens plugged in, scrs=[0,1,2], but windows are displayed only on main screen.