This file is indexed.

/usr/share/psychtoolbox-3/PsychDocumentation/RetinaDisplay.m is in psychtoolbox-3-common 3.0.12.20160126.dfsg1-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
% RetinaDisplay - How to deal with HiDPI "Retina" displays.
%
% On Linux with the standard X11 display system, no special measures are
% needed and HiDPI "Retina" displays should just work like regular displays
% as far as Psychtoolbox is concerned.
%
% On Apple OSX, Psychtoolbox by default will emulate a standard resolution
% display when used on a Retina display to keep old user code working which
% was written before the era of Retina displays, or with Psychtoolbox
% 3.0.11 or earlier versions. If you want to make full use of the native
% high resolution of your Retina display, use the imaging pipeline task
% PsychImaging('AddTask', 'General', 'UseRetinaResolution');. This will
% expose the full resolution but also require more graphics performance
% from your graphics card.
%
% On MS-Windows the situation can be difficult, depending on the Windows
% version and Matlab version in use, and potentially on what other
% applications are running and their status with respect to HiDPI Retina
% displays:
%
% On Windows XP and earlier versions, stuff will just work, but your
% application windows will look tiny when displayed on a Retina display.
%
% On Windows Vista and Windows 7, Psychtoolbox disables the DWM (Desktop
% Window Manager) by default for fullscreen onscreen windows. This will
% ensure optimal display timing precision and avoid Retina display trouble,
% essentially turning your system into a Windows XP system. DPI aware
% applications will continue to display correctly in such a configuration,
% but non DPI aware apps may appear tiny and difficult to use on Retina
% displays. All versions of Matlab older than R2015b are not DPI aware and
% will likely suffer from this problems.
%
% On Windows 8 and later, Psychtoolbox can not disable the DWM. If you
% display a Psychtoolbox window on a standard resolution display, stuff
% will probably work. If you try to display on a HiDPI Retina display then
% you will need to make sure that you either use GNU/Octave, or you use a
% Matlab version that is DPI aware, ie., at least R2015b. You will probably
% also have to make sure that no other non-DPI aware application is running
% or at least not displaying on your stimulus monitor, as such applications
% would trigger use of the DWM and thereby cause stimulus timing problems.
%
% Additionally, on Windows 8 you must make sure that the stimulation
% display is the designated "primary display", so Windows 8 DPI settings,
% which always apply to the primary display, thereby apply to your stimulus
% display. Applications displayed on other than the primary display will be
% subject to DWM scaling if those other displays do not have the same DPI
% setting as the primary display. A running Matlab or Octave would trigger
% harmful use of the DWM on such a non-matching display. In general it is a
% good idea for timing precision to make your stimulus display the
% designated primary display (this can be set in the display settings
% control display, maybe via a "Make this my main display" checkbox).
%
% Use of Matlab R2015b itself can cause other problems with Psychtoolbox,
% as of October 2015, due to some incompatibilities between Psychtoolbox
% and Matlabs new execution engine. Therefore it is probably a good idea to
% use GNU/Octave-4 if you must use Retina displays under Windows, unless
% and until the problems with R2015b and later versions are resolved.
%
% If you must use a system setup with Retina display and a version of
% Matlab, or of Windows 8 or later, that does not allow you to circumvent
% or solve these problems, then there exists also the option to either
% override Windows DPI settings (somewhere under display control panel,
% advanced settings or "Make text appear bigger or smaller" - Try a Google
% search to find it) - this would get rid of DPI related timing problems at
% the expense of applications that display too small on your Retina
% display. Another option is to disable DPI scaling for all applications
% (including Matlab!) which are supposed to display on the HiDPI / Retina
% display. This will avoid rescaling and triggering the DWM, at the expense
% of a too small appearance of those applications GUIs on the Retina
% display. You can do this by right-clicking on the applications icon, then
% selecting the "Properties" item from the context menu, then selecting the
% "Compatibility" tab in the property dialog. In that tab, check the field
% called "Disable display scaling on high DPI settings", then click "OK" to
% apply the new settings and restart the application.
%
% Windows is not only troublesome for proper visual stimulation and
% stimulation timing in itself, it can be especially troublesome when used
% with HiDPI / Retina displays. Therefore it might be a good idea to switch
% to Linux, or if you have to use Windows, to stick to Windows-7, or if you
% have to use a later Windows version, upgrade to Windows 10. It is
% probably also a good idea to then limit yourself to a single display
% setup and/or make sure that only DPI aware applications are running on
% this setup.
%
% Good luck!
%