Can you show me the output of ResolutionTest(1)
in Matlab and/or xrandr --screen 1
in a terminal? Actually maybe xrandr --screen 1 --verbose > output.txt
and then the whole output.txt file? Also, what is the model of the gpu, e.g., the “PTB-INFO: OpenGL-Renderer is …” output line?
→ It is ‘ScanOut’ not ‘ScanMode’, it can’t be a typo on your side, no? Should work just fine.
That’s because of those whole “Each X-Screen is its own little world” property mentioned in the previous post. You only see the outputs assigned to X-Screen 0 by default, because you only see X-Screen 0 by default.
xrandr --screen 1 [whateverothercommandsyouwant]
would select X-Screen 1 for display and manipulation.
You could specify the “PreferredMode” option in the Monitor section, e.g., your monitor section for the video output of your console monitor could look like this, assuming DisplayPort-1 is the Viewpixx/EEG and DisplayPort-2 is the console monitor:
Section “Monitor”
Identifier “DisplayPort-1”
# Viewpixx is primary output:
Option "Primary" "true"
EndSection
Section “Monitor”
Identifier “DisplayPort-2”
# Console monitor mirrors the image, forced to a 1920x1080 at 120 Hz mode:
Option "Position" "0 0"
Option "PreferredMode" "1920x1080"
# Artificially restrict range of allowed refresh rates to 119 Hz - 121 Hz if commented in:
#Option "VertRefresh" 119-121
EndSection
The X startup default is whatever the monitor reports as its preferred resolution and refresh rate, if i remember correctly. In the xrandr --screen 1
output that would be the one with the + sign marking the monitors preferred mode. If the console monitor prefers 60 Hz, that would be it.
xrandr --screen 1 --output DisplayPort-2 --mode 1920x1080 --rate 120
should do the same as
Screen('ConfigureDisplay', 'Scanout', 1, 1, 1920, 1080, 120);
If that PreferredMode setting in xorg.conf doesn’t work, one could also try to artificially restrict the range of valid refresh rates so the server has to choose 120, e.g., by adding
the ‘VertRefresh’ option above. But i’d first try without.