Error running experiment on mac

Hi,

I am trying to run an experiment on my mac (not for the actual experimental presentation but to debug and that sort of thing) but I keep getting the following error:

PTB-INFO: Using modified PortAudio V19.7.0-devel, revision unknown
PTB-INFO: Retina display. Enabling panel fitter for scaled Retina compatibility mode.


PTB-INFO: This is Psychtoolbox-3 for Apple macOS, under Matlab 64-Bit (Version 3.0.18 - Build date: Oct 23 2021).
PTB-INFO: OS support status: OSX version 11.0 is not yet tested or officially supported at all for this Psychtoolbox release.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: For information about paid priority support, community membership and commercial services, please type
PTB-INFO: 'PsychPaidSupportAndServices'.

PTB-WARNING:PsychOSFixupFramebufferFormatForTiming: On screenId 0 no suitable mode with targetBpc 8. No-Op. Timing will suck!

PTB-ERROR[CGLSetFullScreenOnDisplay failed: invalid fullscreen drawable]. Main Screen() context


PTB-ERROR[Low-Level setup of window failed]:The specified gpu + display + gfx-driver combo may not support some requested feature.

Error using Screen
See error message printed above.

Error in untitled (line 26)
[window, rect]=Screen('OpenWindow',0);

This is the code I am trying to run:

% Clear the workspace and screen

sca;

close all;

clear all;

% Name keys

escapeKey = KbName('ESCAPE');

leftKey = KbName('LeftArrow');

rightKey = KbName('RightArrow');

downKey = KbName('DownArrow');

upKey = KbName('UpArrow');

% Get participant_information

participant_number = 'Enter subject number:';

prompt = {'Enter subject number:'};

answer = inputdlg(prompt, 'Subject Number',1.2,{'2'});

% Configure settings

PsychDefaultSetup(2);

InitializePsychSound(1);

screenNumber = max(Screen('Screens'));

black = BlackIndex(screenNumber);

white = WhiteIndex(screenNumber);

% Open black screen

[window, rect]=Screen('OpenWindow',0);

Screen('FrameRect',window,black,[200 200 400 400])

WaitSecs(2);

sca;

Is this a M1 Mac with Apple Silicone? What is the full output of c = Screen('Computer'), ie. the values of all fields in this struct and its sub-structs, e.g., c.hw and c.kern ? There’s a thread about M1 here:

-mario