Authentication token: ANY4B-UP-2024827113311:2b28a796aa78935b57eba267c343dc7e405314cf628162f42acbd1aed89a1752
Hi PTB community and team, I am trying to set up psychtoolbox to display visual stimuli to mice for electrophysiology experiments and would like to set up a system with the least possible jitter between stimulus onset and an I/O signal to my acquisition system.
I have this laptop: https://www.bestbuy.com/site/asus-tuf-gaming-a16-16-165hz-gaming-laptop-fhd-amd-ryzen-7-7735hs-with-16gb-ddr5-memory-radeon-rx7700s-512gb-pcie-ssd-off-black/6560989.p?skuId=6560989
with AMD Ryzen 7 7735HS with Radeon Graphics and AMD Radeon™ RX 7700S. I have installed Ubuntu 22.04 on it with a low latency kernel (running 6.8.0-40-lowlatency). I have also installed the following AMD drivers: https://www.amd.com/en/support/download/linux-drivers.html, installed Matlab and installed 3.0.19 of Psychtoolbox from NeuroDebian. I have my laptop connected to an external LED monitor.
I am having trouble getting my stimulus to appear only on my external monitor. I have tried using the XOrgConfigCreator function and either it will have the stimulus spread over both screens or disable the external monitor. This happens without any psychtoolbox errors and the VBL settings are all consistent with my inbuilt laptop monitor.
PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.19 - Build date: Jun 22 2024).
PTB-INFO: OS support status: Linux 6.8.0-40-lowlatency Supported.
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 support, support memberships and other commercial services, please type
PTB-INFO: ‘PsychPaidSupportAndServices’.
PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.57, 6.8.0-40-lowlatency) :: 4.6 (Compatibility Profile) Mesa 24.1.0-devel
PTB-INFO: VBL startline = 1200 , VBL Endline = -1
PTB-INFO: Measured monitor refresh interval from VBLsync = 6.068683 ms [164.780407 Hz]. (50 valid samples taken, stddev=0.000543 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 6.059945 ms [165.018005 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
My current config file made by PsychXOrgCreater is # Auto generated xorg.conf - Created by Psychtoolbox XOrgConfCreator below (which disables the external monitor)
Section “ServerFlags”
Option “AutoAddGPU” “false”
EndSection
Section “ServerLayout”
Identifier “PTB-Hydra”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
EndSection
Section “Monitor”
Identifier “eDP-1”
EndSection
Section “Monitor”
Identifier “HDMI-A-1-0”
EndSection
Section “Device”
Identifier “Card0”
Driver “amdgpu”
Option “ZaphodHeads” “eDP-1”
Option “Monitor-eDP-1” “eDP-1”
Screen 0
EndSection
Section “Device”
Identifier “Card1”
Driver “amdgpu”
Option “ZaphodHeads” “HDMI-A-1-0”
Option “Monitor-HDMI-A-1-0” “HDMI-A-1-0”
Screen 1
EndSection
Section “Screen”
Identifier “Screen0”
Device “Card0”
Monitor “eDP-1”
EndSection
Section “Screen”
Identifier “Screen1”
Device “Card1”
Monitor “HDMI-A-1-0”
EndSection
I am not sure if I have one of the dual AMD GPUs as talked about in the HybridLaptops help and if changing one of those configuration files would help? I am also not sure if I need to download this driver in order to help toggle the GPU settings for this. Linux for ROG Notebooks
I do get this error: Gtk-Message: 11:26:31.154: Failed to load module “canberra-gtk-module” when I load ptb3-matlab (even after manually installing the package), but thought that this package was needed for sounds rather than visual stimulation.
Any advice on how to troubleshoot this would be greatly appreciated! Thank you!