Skip to content

Instantly share code, notes, and snippets.

@smithdanielle
Created April 24, 2014 10:22
Show Gist options
  • Save smithdanielle/11249428 to your computer and use it in GitHub Desktop.
Save smithdanielle/11249428 to your computer and use it in GitHub Desktop.
Failure to sync Nvidia glasses using Datapixx and PTB3
>> crossedBaselineRT
PTB-INFO: Display ':0.0' : X-Screen 0 : Assigning primary output as 2 with RandR-CRTC 0 and GPU-CRTC 0.
put in name test
PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.11 - Build date: Dec 29 2013).
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: Advanced Micro Devices, Inc. [AMD/ATI] - Cypress XT [Radeon HD 5870] GPU found. Trying to establish low-level access...
PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Cypress XT [Radeon HD 5870] GPU with DCE-4 display engine [6 heads]. Beamposition timestamping enabled.
PTB-INFO: OpenGL-Renderer is X.Org :: Gallium 0.4 on AMD CYPRESS :: 2.1 Mesa 8.0.4
PTB-INFO: VBL startline = 768 , VBL Endline = 821
PTB-INFO: Measured monitor refresh interval from beamposition = 8.333386 ms [119.999239 Hz].
PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 8.333397 ms [119.999084 Hz]. (50 valid samples taken, stddev=0.000759 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 8.333611 ms [119.996002 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: Stereo display via OpenGL built-in frame-sequential stereo requested.
PTB-INFO: Your script requests use of frame-sequential stereo, but your graphics card
PTB-INFO: and driver doesn't support this. I will now fully enable the imaging pipeline
PTB-INFO: and use my own home-grown frame-sequential stereo implementation. Note that this
PTB-INFO: may not be as robust and high-performance as using a graphics card with native
PTB-INFO: frame-sequential stereo support. But let's see what i can do for you...
PTB-INFO: Psychtoolbox imaging pipeline starting up for window with requested imagingmode 1025 ...
PTB-INFO: Will use 8 bits per color component framebuffer for stimulus drawing.
PTB-INFO: Will use 8 bits per color component framebuffer for stimulus post-processing (if any).
/bin/bash: /usr/share/matlab/site/m/psychtoolbox-3//PsychContributed/ATIRadeonperf_Linux64: No such file or directory
PTB-INFO: SetDitherMode: Trying to disable digital display dithering on display head 0.
PTB-INFO: SetDitherMode: Dithering already disabled. Skipped.
LoadIdentityClut: Warning: GPU low-level setup code for pixel passthrough failed for some reason! Using fallback...
Warning: LoadIdentityClut: Warning! Unknown graphics hardware detected.
Set up identity CLUT may be wrong!
> In LoadIdentityClut at 255
In PsychDataPixx at 976
In PsychImaging>PostConfiguration at 3938
In PsychImaging at 1765
In crossedBaselineRT at 146
SetStereoBlueLineSyncParameters: Info: Changing settings for automatic generation of sync lines for external shutter glasses.
Error using Datapixx
Unknown or invalid subfunction name - Typo? Check spelling of the
function name. (error state H)
Error in crossedBaselineRT (line 151)
Datapixx('SetVideoStereoVesaWaveform', 2); % If driving NVIDIA
glasses
>> VBLSyncTest
Tried to prepare a new configuration phase via PsychImaging('PrepareConfiguration'), but did not finalize the previous phase yet.
You must call the PsychImaging('OpenWindow', ...); command at least once to open an onscreen
window according to the provided settings, before you can specify settings for additional onscreen windows.
The most likely reason you see this error message is because your script aborted with some error
before it managed to open the onscreen window. In that case it is best practice to execute a 'clear all'
command at the Matlab/Octave prompt before you restart your script.
I will restart configuration now and forget the previously made PsychImaging('AddTask', ...); settings.
Warning: Tried to prepare a new configuration phase, but you did not
finalize the previous phase yet!
> In PsychImaging at 1090
In VBLSyncTest at 266
ans =
0
PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.11 - Build date: Dec 29 2013).
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: Advanced Micro Devices, Inc. [AMD/ATI] - Cypress XT [Radeon HD 5870] GPU found. Trying to establish low-level access...
PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Cypress XT [Radeon HD 5870] GPU with DCE-4 display engine [6 heads]. Beamposition timestamping enabled.
PTB-INFO: OpenGL-Renderer is X.Org :: Gallium 0.4 on AMD CYPRESS :: 2.1 Mesa 8.0.4
PTB-INFO: VBL startline = 768 , VBL Endline = 821
PTB-INFO: Measured monitor refresh interval from beamposition = 8.333411 ms [119.998888 Hz].
PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 8.333421 ms [119.998741 Hz]. (50 valid samples taken, stddev=0.000850 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 8.333611 ms [119.996002 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: Support for fast OffscreenWindows enabled.
The refresh interval reported by the operating system is 8.33333 ms.
Measured refresh interval, as reported by "GetFlipInterval" is 8.33342 ms. (nsamples = 0, stddev = 0.00000 ms)
ans =
1
INFO: PTB's Screen('Flip', 10) command seems to have missed the requested stimulus presentation deadline
INFO: a total of 3 times out of a total of 604 flips during this session.
INFO: This number is fairly accurate (and indicative of real timing problems in your own code or your system)
INFO: if you provided requested stimulus onset times with the 'when' argument of Screen('Flip', window [, when]);
INFO: If you called Screen('Flip', window); without the 'when' argument, this count is more of a ''mild'' indicator
INFO: of timing behaviour than a hard reliable measurement. Large numbers may indicate problems and should at least
INFO: deserve your closer attention. Cfe. 'help SyncTrouble', the FAQ section at www.psychtoolbox.org and the
INFO: examples in the PDF presentation in PsychDocumentation/Psychtoolbox3-Slides.pdf for more info and timing tips.
PTB missed 3 out of 600 stimulus presentation deadlines.
One missed deadline is ok and an artifact of the measurement.
PTB completed 0 stimulus presentations before the requested target time.
Have a look at the plots for more details...
>> ImagingStereoDemo(1,1)
PTB-INFO: Display ':0.0' : X-Screen 0 : Assigning primary output as 2 with RandR-CRTC 0 and GPU-CRTC 0.
PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.11 - Build date: Dec 29 2013).
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: Advanced Micro Devices, Inc. [AMD/ATI] - Cypress XT [Radeon HD 5870] GPU found. Trying to establish low-level access...
PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Cypress XT [Radeon HD 5870] GPU with DCE-4 display engine [6 heads]. Beamposition timestamping enabled.
PTB-INFO: OpenGL-Renderer is X.Org :: Gallium 0.4 on AMD CYPRESS :: 2.1 Mesa 8.0.4
PTB-INFO: VBL startline = 768 , VBL Endline = 821
PTB-INFO: Measured monitor refresh interval from beamposition = 8.333367 ms [119.999519 Hz].
PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 8.333421 ms [119.998741 Hz]. (50 valid samples taken, stddev=0.000888 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 8.333611 ms [119.996002 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: Stereo display via OpenGL built-in frame-sequential stereo requested.
PTB-INFO: Your script requests use of frame-sequential stereo, but your graphics card
PTB-INFO: and driver doesn't support this. I will now fully enable the imaging pipeline
PTB-INFO: and use my own home-grown frame-sequential stereo implementation. Note that this
PTB-INFO: may not be as robust and high-performance as using a graphics card with native
PTB-INFO: frame-sequential stereo support. But let's see what i can do for you...
PTB-INFO: Psychtoolbox imaging pipeline starting up for window with requested imagingmode 1027 ...
PTB-INFO: Will use 8 bits per color component framebuffer for stimulus drawing.
PTB-INFO: Will use 8 bits per color component framebuffer for stimulus post-processing (if any).
/bin/bash: /usr/share/matlab/site/m/psychtoolbox-3//PsychContributed/ATIRadeonperf_Linux64: No such file or directory
PTB-INFO: SetDitherMode: Trying to disable digital display dithering on display head 0.
PTB-INFO: SetDitherMode: Dithering already disabled. Skipped.
LoadIdentityClut: Warning: GPU low-level setup code for pixel passthrough failed for some reason! Using fallback...
Warning: LoadIdentityClut: Warning! Unknown graphics hardware detected.
Set up identity CLUT may be wrong!
> In LoadIdentityClut at 255
In PsychDataPixx at 976
In PsychImaging>PostConfiguration at 3938
In PsychImaging at 1765
In ImagingStereoDemo at 204
N.Dots Mean (s) Max (s) %>20ms %>30ms
1000 0.019 0.058 0.24 0.00
@smithdanielle
Copy link
Author

datapixxStereoDemo.m, in /debugging/ runs fine on OSX, as long as you are careful with making sure the glasses are seeking the emitter.

crossedBaselineRT.m in the private /occlusion/ repo also runs fine on OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment