resources:vpixx_setup_first_try
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:vpixx_setup_first_try [2024/01/26 10:20] – removed - external edit (Unknown date) 127.0.0.1 | resources:vpixx_setup_first_try [2024/01/26 10:21] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VPixx setup (first try)====== | ||
+ | |||
+ | ====== Checking VPixx functioning after connecting it to PC and CRT for first time ====== | ||
+ | |||
+ | ===== 2023-10-05 notes ===== | ||
+ | |||
+ | I connected the Datapixx and the CRT monitor to the grogu PC today (and to each other, of course). I also connected the IR emitter. | ||
+ | |||
+ | I had to make a link to make a '' | ||
+ | |||
+ | VPixx (3DPixx) system seems to be working: I can see '' | ||
+ | |||
+ | However, the LCD glasses flicker strongly; very noticeably. I think this must be because the CRT monitor is still using its default setting: 75Hz. I set the resolution to be 1600x1200 using the Xubuntu settings. | ||
+ | |||
+ | I looked over the old VNLab notes about xrandr and edid, but I think what I really need is a copy of the boots PC's xorg.conf file. I think the only HDD that might have this is the one labeled " | ||
+ | |||
+ | * Yes, the '' | ||
+ | |||
+ | Let's copy this to grogu, unzip it, and hope it has an xorg.conf file. | ||
+ | |||
+ | ===== PTB VBLSyncTest ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | Looks good: | ||
+ | |||
+ | <code matlab> | ||
+ | >> VBLSyncTest | ||
+ | |||
+ | |||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.18 - Build date: Jan 20 2022). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | 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 ' | ||
+ | |||
+ | PTB-INFO: For information about paid priority support, community membership and commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 15.0.7, DRM 3.49, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1 | ||
+ | PTB-INFO: VBL startline == 1080 , VBL Endline == 1123 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition == 16.666957 ms [59.998954 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 == 16.666918 ms [59.999096 Hz]. (50 valid samples taken, stddev==0.000469 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system == 16.666667 ms [60.000000 Hz]. | ||
+ | PTB-INFO: Small deviations between reported values are normal and no reason to worry. | ||
+ | The refresh interval reported by the operating system is 16.66667 ms. | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | |||
+ | Measured refresh interval, as reported by " | ||
+ | PTB missed 0 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... | ||
+ | </ | ||
+ | |||
+ | ===== lsmod output ===== | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | amdgpu | ||
+ | iommu_v2 | ||
+ | gpu_sched | ||
+ | drm_buddy | ||
+ | drm_ttm_helper | ||
+ | ttm | ||
+ | drm_display_helper | ||
+ | drm_kms_helper | ||
+ | i2c_algo_bit | ||
+ | drm | ||
+ | video 69632 2 amdgpu,i915 | ||
+ | </ | ||
+ | |||
+ | ====== Setting CRT to 120Hz refresh rate ====== | ||
+ | |||
+ | ===== 2023-10-06 notes ===== | ||
+ | |||
+ | ===== Added a second user account, " | ||
+ | |||
+ | ADC did this to prevent getting locked out of grogu if something goes wrong when he tries to reconfigure xorg.conf on his account (anthony). | ||
+ | |||
+ | Login: user2 | ||
+ | |||
+ | For password, see ADC | ||
+ | |||
+ | ===== Created new xorg.conf file ===== | ||
+ | |||
+ | ==== Automatically generated xorg.conf.new file ==== | ||
+ | |||
+ | Followed this advice: | ||
+ | [[https:// | ||
+ | |||
+ | When not running X server (I logged into rescue mode root shell), do this: | ||
+ | |||
+ | <code bash> | ||
+ | $ Xorg -configure > xorg.conf.new | ||
+ | </ | ||
+ | |||
+ | **The contents of the automatically generated file:** | ||
+ | |||
+ | <code bash> | ||
+ | Section " | ||
+ | Identifier | ||
+ | Screen | ||
+ | Screen | ||
+ | Screen | ||
+ | InputDevice | ||
+ | InputDevice | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | ModulePath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Load " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | ### Available Driver options are:- | ||
+ | ### Values: <i>: integer, <f>: float, < | ||
+ | ### < | ||
+ | ### < | ||
+ | ### [arg]: arg optional | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | Identifier | ||
+ | Driver | ||
+ | BusID " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | ### Available Driver options are:- | ||
+ | ### Values: <i>: integer, <f>: float, < | ||
+ | ### < | ||
+ | ### < | ||
+ | ### [arg]: arg optional | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | Identifier | ||
+ | Driver | ||
+ | BusID " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | ### Available Driver options are:- | ||
+ | ### Values: <i>: integer, <f>: float, < | ||
+ | ### < | ||
+ | ### < | ||
+ | ### [arg]: arg optional | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | Identifier | ||
+ | Driver | ||
+ | BusID " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier " | ||
+ | Device | ||
+ | Monitor | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 1 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 4 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 8 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 15 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 16 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 24 | ||
+ | EndSubSection | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier " | ||
+ | Device | ||
+ | Monitor | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 1 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 4 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 8 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 15 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 16 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 24 | ||
+ | EndSubSection | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier " | ||
+ | Device | ||
+ | Monitor | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 1 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 4 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 8 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 15 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 16 | ||
+ | EndSubSection | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 24 | ||
+ | EndSubSection | ||
+ | EndSection | ||
+ | </ | ||
+ | |||
+ | ==== boots PC xorg.conf file contents ==== | ||
+ | |||
+ | <code bash> | ||
+ | ll -h xorg.conf | ||
+ | -rw-r--r-- 1 anthony 1.5K Apr 16 2014 xorg.conf | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | Section " | ||
+ | Identifier | ||
+ | Screen | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | |||
+ | # 1024x768 119.80 Hz (CVT) hsync: 98.96 kHz; pclk: 137.75 MHz | ||
+ | Identifier | ||
+ | ModeLine | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | Option | ||
+ | BusID " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier " | ||
+ | DefaultDepth | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier " | ||
+ | Device | ||
+ | DefaultDepth | ||
+ | SubSection " | ||
+ | Viewport | ||
+ | Depth 24 | ||
+ | EndSubSection | ||
+ | EndSection | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Generate new modeline for 120Hz ==== | ||
+ | |||
+ | === Current xrandr output: === | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 16384 x 16384 | ||
+ | DisplayPort-3 disconnected (normal left inverted right x axis y axis) | ||
+ | DisplayPort-4 disconnected (normal left inverted right x axis y axis) | ||
+ | DisplayPort-5 disconnected (normal left inverted right x axis y axis) | ||
+ | HDMI-A-3 disconnected (normal left inverted right x axis y axis) | ||
+ | DVI-D-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 390mm x 293mm | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | DP-1-1 disconnected (normal left inverted right x axis y axis) | ||
+ | HDMI-1-1 disconnected (normal left inverted right x axis y axis) | ||
+ | DP-1-2 disconnected (normal left inverted right x axis y axis) | ||
+ | HDMI-1-2 disconnected (normal left inverted right x axis y axis) | ||
+ | DP-1-3 disconnected (normal left inverted right x axis y axis) | ||
+ | HDMI-1-3 disconnected (normal left inverted right x axis y axis) | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | cvt 1024 768 120 | ||
+ | # 1024x768 119.80 Hz (CVT) hsync: 98.96 kHz; pclk: 137.75 MHz | ||
+ | Modeline " | ||
+ | </ | ||
+ | |||
+ | ===== 2023-10-09 notes ===== | ||
+ | |||
+ | ===== xrandr command line ===== | ||
+ | |||
+ | Was able to change the display mode (both resolution and refresh rate) by doing this from command line, //after// putting the modified xorg.conf file in place at '' | ||
+ | |||
+ | <code bash> | ||
+ | xrandr --newmode " | ||
+ | xrandr --addmode DVI-D-0 800x600_120.00 | ||
+ | xrandr --output DVI-D-0 --mode 800x600_120.00 | ||
+ | </ | ||
+ | |||
+ | I was able to get both 1280x768 and 800x600 resolutions. (I can't tell for sure what the refresh rates were.) These modes, and the refresh rates that I wanted to associate with them, were available on the pull down menu accessible from the " | ||
+ | |||
+ | ===== PTB Sync errors ===== | ||
+ | |||
+ | However, PTB gave me nothing but errors. Couldn' | ||
+ | |||
+ | I tried turning off the SkipSyncTest (or similar name) procedures, but this just made Octave hang even worse, so I turned them back on. | ||
+ | |||
+ | To get PTB to work, I had to change the name of both versions of xorg.conf.new that I had moved to '' | ||
+ | |||
+ | ===== xorg.conf.new.SIMPLIFIED file ===== | ||
+ | |||
+ | I think for the next step I will try to reduce the xorg.conf.new file's contents until PTB works with it in place. | ||
+ | |||
+ | I made a copy of xorg.conf.new called '' | ||
+ | |||
+ | ===== Limited success ===== | ||
+ | |||
+ | RESULT: VBLSyncTest ran! This means that there was something in the original '' | ||
+ | |||
+ | Next, I need to try inserting the display mode information into the file. But first, because it's similar, I'm going to try setting the monitor using '' | ||
+ | |||
+ | RESULT: Interesting. xrandr did change the resolution to 800x600. However, PTB gave nothing but Sync errors for VBLSyncTest and GarboriumDemo (it wouldn' | ||
+ | |||
+ | Next, I'm going to try using xrandr to set the resolution to 1284x768 and 120Hz, just to see if that works whereas 800x600 didn' | ||
+ | |||
+ | RESULTS: Same pattern of results as with 800x600 at 120Hz. I guess I'll have to try editing '' | ||
+ | |||
+ | Next: wait, change of plans! While looking through VPixx' | ||
+ | |||
+ | ===== 2023-10-10 notes ===== | ||
+ | |||
+ | ===== PTB XOrgConfCreator.m ===== | ||
+ | |||
+ | I got '' | ||
+ | |||
+ | I used PTB's '' | ||
+ | |||
+ | <code example> | ||
+ | .Psychtoolbox/ | ||
+ | </ | ||
+ | |||
+ | and (I think?) | ||
+ | |||
+ | <code example> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | I tried running PTB with this in place; same problems as above. | ||
+ | |||
+ | ===== Modified version of PTB-generated xorg.conf file ===== | ||
+ | |||
+ | Then I made a modified version of the file: | ||
+ | |||
+ | <code example> | ||
+ | ~/ | ||
+ | </ | ||
+ | |||
+ | I copied this to '' | ||
+ | |||
+ | ===== Success! ===== | ||
+ | |||
+ | Then I switched the display resolution using the GUI; it might have been to *1024*x768 instead of to *1284*x768, but it was definitely 120Hz (well, very close to that). And everything worked! | ||
+ | |||
+ | (However, NOTE: GarboriumDemo was strangely dark – low brightness.) | ||
+ | |||
+ | I just checked '' | ||
+ | |||
+ | ====== GPU not producing frame sequential stereo ====== | ||
+ | |||
+ | ===== 2023-10-12 notes ===== | ||
+ | |||
+ | The LCD glasses have only been working for a brief time, and it turns out that PTB had been throwing errors while the stereo presentation was happening. | ||
+ | |||
+ | I am going to try to install a different driver for the graphics card. First, I am documenting the current state of the gpu's driver, and the PTB errors. | ||
+ | |||
+ | ===== Checking AMD driver ===== | ||
+ | |||
+ | [[internal: | ||
+ | |||
+ | ===== PTB errors ===== | ||
+ | |||
+ | [[internal: | ||
+ | |||
+ | ===== 2023-10-13 notes ===== | ||
+ | |||
+ | ===== Installing new amdgpu driver from AMD website ===== | ||
+ | |||
+ | ==== Backing up root partition ==== | ||
+ | |||
+ | Backing up up the root partition prior to installing a new amd gpu driver for the Radeon RX 580. | ||
+ | |||
+ | The output below includes (last two lines) the Sandisk USB-C drive that I will use to back up the root partition. I guess I must have made the 77G partition so that I could dd grogu' | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | Filesystem | ||
+ | tmpfs | ||
+ | / | ||
+ | tmpfs | ||
+ | tmpfs | ||
+ | / | ||
+ | / | ||
+ | tmpfs | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | I will go ahead and just dump the partition uncompressed into the larger partition of the Sandisk USB-C drive. I just verified the the two partitions are exactly the same size by doing '' | ||
+ | |||
+ | Usually the " | ||
+ | |||
+ | I'm concerned this could backfire, so I'm just going to compress the output into a file after all. | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo bash -c 'dd if==/ | ||
+ | </ | ||
+ | |||
+ | Result: process took 15 minutes (no rounding). Output file is 11GB. | ||
+ | |||
+ | Copied the output file ('' | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo cp -p / | ||
+ | </ | ||
+ | |||
+ | Came to my senses! Renamed '' | ||
+ | |||
+ | ==== Download AMD driver ==== | ||
+ | |||
+ | Download from this site: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Select | ||
+ | |||
+ | <code example> | ||
+ | Radeon™ Software for Linux® version 23.20 for Ubuntu 22.04.3 | ||
+ | Revision Number | ||
+ | 23.20 | ||
+ | File Size | ||
+ | 14 KB | ||
+ | Release Date | ||
+ | 9/6/2023 | ||
+ | </ | ||
+ | |||
+ | and read instructions from here: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | |||
+ | Did: | ||
+ | |||
+ | <code bash> | ||
+ | $ amdgpu-install -y --accept-eula | ||
+ | </ | ||
+ | |||
+ | Therefore, installed proprietary components. | ||
+ | |||
+ | ===== Check driver after installing version downloaded from AMD ===== | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | *-display | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | amdgpu | ||
+ | amddrm_ttm_helper | ||
+ | amdttm | ||
+ | amdxcp | ||
+ | iommu_v2 | ||
+ | amddrm_buddy | ||
+ | drm_display_helper | ||
+ | drm_kms_helper | ||
+ | amd_sched | ||
+ | amdkcl | ||
+ | drm | ||
+ | i2c_algo_bit | ||
+ | video 69632 2 amdgpu,i915 | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | [sudo] password for anthony: | ||
+ | [ 0.000000] Linux version 6.2.0-34-generic (buildd@bos03-amd64-059) (x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) # | ||
+ | [ 0.000000] | ||
+ | [ 0.008873] RAMDISK: [mem 0x79e49000-0x7fffdfff] | ||
+ | [ 0.008969] ACPI: VFCT 0x000000008B16B9B8 00E884 (v01 LENOVO TC-M1V | ||
+ | [ 1.731377] amdkcl: loading out-of-tree module taints kernel. | ||
+ | [ 1.731475] amdkcl: module verification failed: signature and/or required key missing - tainting kernel | ||
+ | [ 1.778106] AMD-Vi: AMD IOMMUv2 functionality not available on this system - This is not a bug. | ||
+ | [ 3.432063] [drm] amdgpu kernel modesetting enabled. | ||
+ | [ 3.432064] [drm] amdgpu version: 6.2.4 | ||
+ | [ 3.432145] amdgpu: CRAT table not found | ||
+ | [ 3.432146] amdgpu: Virtual CRAT table created for CPU | ||
+ | [ 3.432154] amdgpu: Topology: Add CPU node | ||
+ | [ 3.448008] amdgpu: PeerDirect support was initialized successfully | ||
+ | [ 3.448082] amdgpu 0000: | ||
+ | [ 3.448200] amdgpu 0000: | ||
+ | [ 3.448202] amdgpu: ATOM BIOS: xxx-xxx-xxx | ||
+ | [ 3.448273] amdgpu 0000: | ||
+ | [ 3.448275] amdgpu 0000: | ||
+ | [ 3.448361] amdgpu 0000: | ||
+ | [ 3.448363] amdgpu 0000: | ||
+ | [ 3.448395] [drm] amdgpu: 8192M of VRAM memory ready | ||
+ | [ 3.448396] [drm] amdgpu: 7910M of GTT memory ready. | ||
+ | [ 3.449362] amdgpu: [powerplay] hwmgr_sw_init smu backed is polaris10_smu | ||
+ | [ 3.665230] kfd kfd: amdgpu: Allocated 3969056 bytes on gart | ||
+ | [ 3.665237] kfd kfd: amdgpu: Total number of KFD nodes to be created: 1 | ||
+ | [ 3.665359] amdgpu: Virtual CRAT table created for GPU | ||
+ | [ 3.665409] amdgpu: Topology: Add dGPU node [0x6fdf: | ||
+ | [ 3.665410] kfd kfd: amdgpu: added device 1002:6fdf | ||
+ | [ 3.665420] amdgpu 0000: | ||
+ | [ 3.669059] amdgpu 0000: | ||
+ | [ 3.669552] [drm] Initialized amdgpu 3.54.0 20150101 for 0000: | ||
+ | [ 3.680427] fbcon: amdgpudrmfb (fb0) is primary device | ||
+ | [ 3.774103] amdgpu 0000: | ||
+ | [ 4.920528] amdgpu 0000: | ||
+ | [ 4.996814] snd_hda_intel 0000: | ||
+ | </ | ||
+ | |||
+ | ==== PTB Errors ==== | ||
+ | |||
+ | === VBLSyncTest === | ||
+ | |||
+ | <code matlab> | ||
+ | >> VBLSyncTest | ||
+ | |||
+ | |||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.18 - Build date: Jan 20 2022). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under termsof the MIT License, with | ||
+ | PTB-INFO: some restrictions. See file ' | ||
+ | |||
+ | PTB-INFO: For information about paid priority support, community membership and commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | PTB-INFO: Trying to enable at least 10 bpc fixed point framebuffer. | ||
+ | PTB-INFO: Output 0 of screen 0 has too low max bpc 16 <== 8 bpc for high precision (10bpc) mode. Requesting a new maximum bpc of 10 bits. | ||
+ | PTB-INFO: Output 1 of screen 0 has too low max bpc 16 <== 8 bpc for high precision (10bpc) mode. Requesting a new maximum bpc of 10 bits. | ||
+ | PTB-INFO: Output 2 of screen 0 has too low max bpc 16 <== 8 bpc for high precision (10bpc) mode. Requesting a new maximum bpc of 10 bits. | ||
+ | PTB-INFO: Output 3 of screen 0 has too low max bpc 16 <== 8 bpc for high precision (10bpc) mode. Requesting a new maximum bpc of 10 bits. | ||
+ | PTB-INFO: Output 4 of screen 0 has too low max bpc 16 <== 8 bpc for high precision (10bpc) mode. Requesting a new maximum bpc of 10 bits. | ||
+ | PTB-INFO: Linux native 10 bit per color framebuffer requested, and the OS claims it is working fine. Good. | ||
+ | PTB-INFO: Real (OS native, queried) color resolution of the GPU framebuffer is 10 bits per RGB color component. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 16.0.6,DRM 3.54, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.2.0-devel | ||
+ | PTB-INFO: VBL startline == 768 , VBL Endline == 824 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition == 8.343979 ms [119.846901 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.343916 ms [119.847804 Hz]. (50 valid samples taken, stddev==0.000376 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system == 8.343972 ms [119.847000 Hz]. | ||
+ | PTB-INFO: Small deviations between reported values are normal and no reason to worry. | ||
+ | The refresh interval reported by the operating system is 8.33333 ms. | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | |||
+ | Measured refresh interval, as reported by " | ||
+ | |||
+ | |||
+ | NFO: PTB's Screen(' | ||
+ | INFO: a total of 2 times out of a total of 163 flips during this session. | ||
+ | |||
+ | INFO: This number is fairly accurate (and indicative of real timing problems in youwn code or your system) | ||
+ | INFO: if you provided requested stimulus onset times with the ' | ||
+ | INFO: If you called Screen(' | ||
+ | INFO: of timing behaviour than a hard reliable measurement. Large numbers may indic problems and should at least | ||
+ | INFO: deserve your closer attention. Cfe. 'help SyncTrouble', | ||
+ | INFO: examples in the PDF presentation in PsychDocumentation/ | ||
+ | |||
+ | PTB missed 1 out of 156 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, | ||
+ | |||
+ | <code matlab> | ||
+ | >> ImagingStereoDemo(1, | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | |||
+ | |||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.18 - Build date: Jan 20 2022). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | 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 ' | ||
+ | |||
+ | PTB-INFO: For information about paid priority support, community membership and commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | PTB-INFO: Trying to enable at least 10 bpc fixed point framebuffer. | ||
+ | PTB-INFO: Linux native 10 bit per color framebuffer requested, and the OS claims it is working fine. Good. | ||
+ | PTB-INFO: Real (OS native, queried) color resolution of the GPU framebuffer is 10 bits per RGB color component. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 16.0.6, DRM 3.54, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.2.0-devel | ||
+ | PTB-INFO: VBL startline == 768 , VBL Endline == 824 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition == 8.344203 ms [119.843686 Hz]. | ||
+ | PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Fliptimestamping. | ||
+ | PTB-INFO: Measured monitor refresh interval from VBLsync == 8.343997 ms [119.846639Hz]. (50 valid samples taken, stddev==0.000498 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system == 8.343972 ms [119.847000 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' | ||
+ | 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). | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | LoadIdentityClut: | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | .Dots Mean (s) Max (s) %> | ||
+ | |||
+ | 1000 0.017 | ||
+ | </ | ||
+ | |||
+ | === HolesCrowd_PTB_TEST.m === | ||
+ | |||
+ | <code matlab> | ||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.18 - Build date: Jan 20 2022). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | 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 ' | ||
+ | |||
+ | PTB-INFO: For information about paid priority support, community membership and commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | PTB-INFO: Trying to enable at least 10 bpc fixed point framebuffer. | ||
+ | PTB-INFO: Linux native 10 bit per color framebuffer requested, and the OS claims it is working fine. Good. | ||
+ | PTB-INFO: Real (OS native, queried) color resolution of the GPU framebuffer is 10 bits per RGB color component. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 16.0.6, DRM 3.54, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.2.0-devel | ||
+ | PTB-INFO: VBL startline == 768 , VBL Endline == 824 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition == 8.344139 ms [119.844595 Hz]. | ||
+ | PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Fliptimestamping. | ||
+ | PTB-INFO: Measured monitor refresh interval from VBLsync == 8.344092 ms [119.845270Hz]. (50 valid samples taken, stddev==0.000469 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system == 8.343972 ms [119.847000 Hz]. | ||
+ | PTB-INFO: Small deviations between reported values are normal and no reason to worry. | ||
+ | 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). | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | LoadIdentityClut: | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | |||
+ | k == -5 | ||
+ | k == -4 | ||
+ | k == -3 | ||
+ | k == -2 | ||
+ | k == -1 | ||
+ | gk == -5 | ||
+ | k == -4 | ||
+ | k == -3 | ||
+ | k == -2 | ||
+ | k == -1 | ||
+ | ggk == -5 | ||
+ | k == -4 | ||
+ | k == -3 | ||
+ | k == -2 | ||
+ | k == -1 | ||
+ | f | ||
+ | |||
+ | TB-INFO: There are still 45 textures, offscreen windows or proxy windows open. Screen(' | ||
+ | PTB-INFO: This may be fine for studies where you only use a few textures or windows, but a large number of open | ||
+ | PTB-INFO: textures or offscreen windows can be an indication that you forgot to dispose no longer needed items | ||
+ | PTB-INFO: via a proper call to Screen(' | ||
+ | PTB-INFO: stale objects linger around and can consume significant memory ressources, causing degraded performance, | ||
+ | PTB-INFO: timing trouble (if the system has to resort to disk paging) and ultimately out of memory conditions or | ||
+ | PTB-INFO: crashes. Please check your code. (Screen(' | ||
+ | |||
+ | |||
+ | |||
+ | INFO: PTB's Screen(' | ||
+ | INFO: a total of 138 times out of a total of 2557 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 ' | ||
+ | INFO: If you called Screen(' | ||
+ | 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', | ||
+ | INFO: examples in the PDF presentation in PsychDocumentation/ | ||
+ | |||
+ | |||
+ | |||
+ | WARNING: This session of your experiment was run by you with the setting Screen(' | ||
+ | WARNING: This means that some internal self-tests and calibrations were skipped. Your stimulus presentation timing | ||
+ | WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real | ||
+ | WARNING: study, please make sure to set Screen(' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== VPixx Equipment Causing Errors? ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | I don't think it's the problem. | ||
+ | |||
+ | ==== Datapixx status ==== | ||
+ | |||
+ | After doing " | ||
+ | |||
+ | <code matlab> | ||
+ | >> status == Datapixx(' | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | status == | ||
+ | |||
+ | scalar structure containing the fields: | ||
+ | |||
+ | horizontalResolution == 1024 | ||
+ | verticalResolution == 768 | ||
+ | horizontalTotal == 1392 | ||
+ | verticalTotal == 826 | ||
+ | verticalFrequency == 119.85 | ||
+ | horizontalFrequency == 9.8998e+04 | ||
+ | dotFrequency == 1.3780e+08 | ||
+ | mode == 0 | ||
+ | greyscaleMode == 0 | ||
+ | receivingVideo == 1 | ||
+ | receivingDualLinkVideo == 0 | ||
+ | stereoEye == 1 | ||
+ | verticalStereo == 0 | ||
+ | stereoBlueline == 1 | ||
+ | stereoVesaWaveform == 32 | ||
+ | stereoVesaPhase == 245 | ||
+ | horizontalSplit == 0 | ||
+ | horizontalOverlay == 0 | ||
+ | horizontalOverlayBoundsLeft == 0 | ||
+ | horizontalOverlayBoundsRight == 0 | ||
+ | horizontalOverlayBoundsTop == 0 | ||
+ | horizontalOverlayBoundsBottom == 0 | ||
+ | pixelSyncTimeout == 0 | ||
+ | overClocked == 0 | ||
+ | pixelSyncRasterLine == 0 | ||
+ | pixelSyncSingleLine == 0 | ||
+ | pixelSyncBlankLine == 0 | ||
+ | scanningBacklight == 0 | ||
+ | backlightIntensity == 0 | ||
+ | lcd3D60Hz == 0 | ||
+ | videoClutTransparencyColorMode == 0 | ||
+ | pixelMode == 0 | ||
+ | propixxCeilingMount == 0 | ||
+ | propixxRearProjection == 0 | ||
+ | propixx3DCrosstalk == 0 | ||
+ | propixx3DCrosstalkLR == 0 | ||
+ | propixx3DCrosstalkRL == 0 | ||
+ | propixxLampLed == 0 | ||
+ | propixxHotSpotCorrection == 0 | ||
+ | propixxTScopePrepAcknowledge == 0 | ||
+ | propixxTScopeScheduleFrame == 0 | ||
+ | propixxLedMask == 0 | ||
+ | propixxQuad3d == 0 | ||
+ | Error == -1012 | ||
+ | </ | ||
+ | |||
+ | ==== Current Datapixx.mex ==== | ||
+ | |||
+ | I copied | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | to | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | and then made a symlink from that to '' | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | <code bash> | ||
+ | ll Datapixx*mex | ||
+ | </ | ||
+ | |||
+ | gives: | ||
+ | |||
+ | <code bash> | ||
+ | lrwxrwxrwx | ||
+ | -rw-r--r-- | ||
+ | </ | ||
+ | |||
+ | ==== Altered xorg.conf file ==== | ||
+ | |||
+ | I tried running the WIC study script, '' | ||
+ | |||
+ | While I was at it, I removed the copy of the xorg.conf file in the critical directory ('' | ||
+ | |||
+ | The name of the file and the location of the link that actually matter for controlling the CRT: | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Again, the above is now a //link//, no longer a file. | ||
+ | |||
+ | ===== Trying one more thing with drivers ===== | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo apt install firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all | ||
+ | </ | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | Got this message: | ||
+ | |||
+ | <code bash> | ||
+ | Package firmware-amd-graphics is not available, but is referred to by another package. | ||
+ | This may mean that the package is missing, has been obsoleted, or | ||
+ | is only available from another source | ||
+ | |||
+ | E: Package ' | ||
+ | </ | ||
+ | |||
+ | Summary: nothing needed to be installed, except for something not found. | ||
+ | |||
+ | ====== Summary of important files for making the 3DPixx work ====== | ||
+ | |||
+ | <code example> | ||
+ | / | ||
+ | [or whatever file in that dir. that ends in *.conf, apparently] | ||
+ | |||
+ | / | ||
+ | [Need to copy one of several Datapixx*.mex files to this location and rename it " | ||
+ | [Currently: Datapixx.mex -> Datapixx_octave5.mex] | ||
+ | [Datapixx_octave5.mex was originally copied from / | ||
+ | |||
+ | [amdgpu driver files] | ||
+ | </ | ||
+ | |||
+ | ====== Summary of this week's work: Need to contact VPixx ====== | ||
+ | |||
+ | I couldn' | ||
+ | |||
+ | My next plan is to contact VPixx about this, giving them information from the things I've copied and pasted above and on other pages. | ||
+ | |||
+ | ====== Future Plans ====== | ||
+ | |||
+ | * Try using PTB with MATLAB instead of Octave | ||
+ | * Try AMDGPU-PRO driver | ||
+ | |||
+ | ====== Installing PTB in MATLAB ====== | ||
+ | |||
+ | ===== 2023-10-16 notes ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | The instructions included adding NeuroDebian repository to apt sources list. I chose the option that included non-free software sources. | ||
+ | |||
+ | [[resources: | ||
+ | |||
+ | |||
+ | ===== PTB Errors ===== | ||
+ | |||
+ | ==== VBLSyncTest Errors ==== | ||
+ | |||
+ | Seems like it was nothing but errors :( | ||
+ | |||
+ | Here is the very end of the output. | ||
+ | |||
+ | <code matlab> | ||
+ | PTB-WARNING: | ||
+ | PTB-WARNING: | ||
+ | PTB-WARNING: | ||
+ | PTB-WARNING: | ||
+ | PTB-WARNING: | ||
+ | |||
+ | |||
+ | INFO: PTB's Screen(' | ||
+ | INFO: a total of 151 times out of a total of 152 flips during this session. | ||
+ | </ | ||
+ | |||
+ | Whoa, the display even seems to have switched back from 1024x768@120Hz to 1600x1200@75Hz on its own accord after that last demo, too! | ||
+ | |||
+ | For MATLAB, have to kill VPixx background process that is often (always?) running in background before doing the following, in order to get stereo scrips to work: | ||
+ | |||
+ | <code bash> | ||
+ | $ ps aux | grep -i vpix [note the ps number] | ||
+ | $ sudo kill [vpixx ps number] | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code matlab> | ||
+ | >> isReady = Datapixx(' | ||
+ | </ | ||
+ | |||
+ | will work | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== Fixed VBLSyncTest Errors ==== | ||
+ | |||
+ | Turns out I think the problem was that I still had Octave open and running PTB. I think the Datapixx was being counted as open in Octave, and therefore couldn' | ||
+ | |||
+ | In any case, the VBLSyncTest errors went away after I closed Octave, and did '' | ||
+ | |||
+ | ==== ImagingStereoDemo(1, | ||
+ | |||
+ | Got the same problems as I have been having with Octave. | ||
+ | |||
+ | Namely, kept getting this error with both scripts: | ||
+ | |||
+ | <code matlab> | ||
+ | PTB-INFO: Your script requests use of frame-sequential stereo, but your graphics card | ||
+ | PTB-INFO: and driver doesn' | ||
+ | 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... | ||
+ | </ | ||
+ | |||
+ | That is, PTB switches the stereo mode to mode 11. | ||
+ | |||
+ | CONCLUSION: I guess I'll move on to installing the AMDGPU-PRO driver now. | ||
+ | |||
+ | |||
+ | ====== Installing AMDGPU-PRO driver ====== | ||
+ | |||
+ | I find it a little confusing to find this driver. | ||
+ | |||
+ | |||
+ | ===== Downloading .deb file from " | ||
+ | |||
+ | Under the encouraging heading "Pro Driver." | ||
+ | |||
+ | File is | ||
+ | |||
+ | < | ||
+ | amdgpu-install_5.5.50503-1_all.deb | ||
+ | </ | ||
+ | |||
+ | Then, from the AMD site's instructions: | ||
+ | |||
+ | <code bash> | ||
+ | $ cd ~/Downloads | ||
+ | # For Ubuntu: | ||
+ | $ sudo apt-get install ./ | ||
+ | $ sudo apt-get update | ||
+ | </ | ||
+ | |||
+ | |||
+ | After doing that, this script is available: | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Did this: | ||
+ | |||
+ | <code bash> | ||
+ | $ amdgpu-install --usecase=workstation -y --vulkan=pro --opencl=rocr, | ||
+ | </ | ||
+ | |||
+ | I accepted the License Agreement from the terminal. | ||
+ | |||
+ | Got this error message: | ||
+ | |||
+ | <code bash> | ||
+ | Some packages could not be installed. This may mean that you have | ||
+ | requested an impossible situation or if you are using the unstable | ||
+ | distribution that some required packages have not yet been created | ||
+ | or been moved out of Incoming. | ||
+ | The following information may help to resolve the situation: | ||
+ | |||
+ | The following packages have unmet dependencies: | ||
+ | | ||
+ | E: Unable to correct problems, you have held broken packages. | ||
+ | </ | ||
+ | |||
+ | Solution: Turns out I had a newer version of the amdgpu-install* package already in the '' | ||
+ | |||
+ | Going to reboot and try Octave and then MATLAB PTB again. | ||
+ | |||
+ | (2023-10-16 16:17) | ||
+ | |||
+ | |||
+ | ===== White Screen of Error ===== | ||
+ | |||
+ | Got an all-white screen, and unable to do anything other than move mouse pointer, after logging back in (i.e. the login screen was normal, and I typed my password first). | ||
+ | |||
+ | Used '' | ||
+ | |||
+ | <code bash> | ||
+ | $ less .bash-history | ||
+ | </ | ||
+ | |||
+ | to see the recent amdgpu-install command. | ||
+ | \\ | ||
+ | |||
+ | Tried redoing that a few times in different ways and rebooting again, no difference. | ||
+ | \\ | ||
+ | |||
+ | Now I'm going to try doing | ||
+ | |||
+ | <code bash> | ||
+ | amdgpu-uninstall | ||
+ | </ | ||
+ | |||
+ | Looks scary, though, so I said no the first time, decided to look up more info. | ||
+ | |||
+ | Did | ||
+ | |||
+ | <code bash> | ||
+ | amdgpu-uninstall | ||
+ | </ | ||
+ | |||
+ | Perhaps unsurprisingly, | ||
+ | \\ | ||
+ | |||
+ | Did | ||
+ | |||
+ | <code bash> | ||
+ | $ amdgpu-install -y --usecase=graphics --accept-eula | ||
+ | </ | ||
+ | |||
+ | Then | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo apt update | ||
+ | </ | ||
+ | |||
+ | (actually, I'd been doing that after every time I ran an amdgpu-install command above) | ||
+ | \\ | ||
+ | |||
+ | The AMD drivers site instructions calls this the " | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | |||
+ | Got same problems/ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | OK, last thing to try for today: | ||
+ | |||
+ | <code bash> | ||
+ | amdgpu-install -y --usecase=workstation --accept-eula, | ||
+ | </ | ||
+ | |||
+ | Got White Screen of Error again! | ||
+ | \\ | ||
+ | |||
+ | OK, for reals last thing to try for today: | ||
+ | |||
+ | Followed the advice from this page: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[resources: | ||
+ | |||
+ | Didn't help :( | ||
+ | |||
+ | |||
+ | ====== 2023-10-17 notes ====== | ||
+ | |||
+ | ===== Installing OEM kernel for Linux ===== | ||
+ | |||
+ | OK, yesterday I didn't do step #1 of the instructions listed on the page referenced immediately above. | ||
+ | |||
+ | < | ||
+ | Install the latest OEM kernel available by running the command: | ||
+ | |||
+ | sudo apt install linux-oem-22.04c | ||
+ | </ | ||
+ | |||
+ | BUT FIRST, note the current kernel: | ||
+ | |||
+ | <code bash> | ||
+ | $ uname -a | ||
+ | $ Linux grogu 6.2.0-34-generic # | ||
+ | </ | ||
+ | |||
+ | Did it. | ||
+ | |||
+ | Some error messages came up while it was running. | ||
+ | |||
+ | After rebooting, still White Screen. | ||
+ | |||
+ | Performing steps 2 through 4 from above, again. | ||
+ | |||
+ | Still White Screen. | ||
+ | |||
+ | Tried logging in to root shell via Rescue Mode. Then did '' | ||
+ | |||
+ | Rebooted and did '' | ||
+ | |||
+ | Then did '' | ||
+ | |||
+ | No more White Screen of Error, just like previous time(s?) when I did the uninstall/ | ||
+ | |||
+ | ===== No more PRB graphics card error messages! ===== | ||
+ | |||
+ | |||
+ | **BUT THIS TIME, WHEN I RAN PTB, NO MORE ERROR MESSAGES ABOUT THE GRAPHICS CARD!!!** | ||
+ | |||
+ | I can run '' | ||
+ | |||
+ | |||
+ | ==== PTB output for HolesCrowd_PTB_TEST ==== | ||
+ | |||
+ | <code matlab> | ||
+ | >> HolesCrowd_PTB_TEST | ||
+ | warning: inputdlg: 5th ' | ||
+ | warning: called from | ||
+ | inputdlg at line 120 column 5 | ||
+ | HolesCrowd_PTB_TEST at line 14 column 8 | ||
+ | |||
+ | |||
+ | |||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.19 - Build date: Aug 16 2023). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under termsof the MIT License, with | ||
+ | PTB-INFO: some restrictions. See file ' | ||
+ | |||
+ | PTB-INFO: For information about paid support, support memberships and other commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 16.0.6,DRM 3.54, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.2.0-devel | ||
+ | PTB-INFO: VBL startline = 768 , VBL Endline = 824 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition = 8.343410 ms [119.855078 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.343349 ms [119.855955 Hz]. (50 valid samples taken, stddev=0.000578 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system = 8.343972 ms [119.847000 Hz]. | ||
+ | PTB-INFO: Small deviations between reported values are normal and no reason to worry. | ||
+ | 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). | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | LoadIdentityClut: | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | |||
+ | fhytzk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | |||
+ | |||
+ | TB-INFO: There are still 54 textures, offscreen windows or proxy windows open. Screen(' | ||
+ | PTB-INFO: This may be fine for studies where you only use a few textures or windows, but a large number of open | ||
+ | PTB-INFO: textures or offscreen windows can be an indication that you forgot to dispose no longer needed items | ||
+ | PTB-INFO: via a proper call to Screen(' | ||
+ | PTB-INFO: stale objects linger around and can consume significant memory ressources, causing degraded performance, | ||
+ | PTB-INFO: timing trouble (if the system has to resort to disk paging) and ultimately out of memory conditions or | ||
+ | PTB-INFO: crashes. Please check your code. (Screen(' | ||
+ | |||
+ | |||
+ | |||
+ | INFO: PTB's Screen(' | ||
+ | INFO: a total of 88 times out of a total of 2916 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 ' | ||
+ | INFO: If you called Screen(' | ||
+ | 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', | ||
+ | INFO: examples in the PDF presentation in PsychDocumentation/ | ||
+ | |||
+ | |||
+ | |||
+ | WARNING: This session of your experiment was run by you with the setting Screen(' | ||
+ | WARNING: This means that some internal self-tests and calibrations were skipped. Yourstimulus presentation timing | ||
+ | WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real | ||
+ | WARNING: study, please make sure to set Screen(' | ||
+ | ans = 0 | ||
+ | </ | ||
+ | |||
+ | See? No mention of the graphics card not providing frame-sequential something something. | ||
+ | |||
+ | I finally commented out the offending " | ||
+ | |||
+ | ==== Conclusion about amdgpu drivers ==== | ||
+ | |||
+ | I conclude that installing the OEM Kernel, which did reduce the number of " | ||
+ | |||
+ | |||
+ | ===== Just had decent success with generic DLP-Link glasses ===== | ||
+ | |||
+ | PTB output when I ran '' | ||
+ | |||
+ | <code matlab> | ||
+ | >> Datapixx(' | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | ans = | ||
+ | |||
+ | scalar structure containing the fields: | ||
+ | |||
+ | horizontalResolution = 1024 | ||
+ | verticalResolution = 768 | ||
+ | horizontalTotal = 1392 | ||
+ | verticalTotal = 826 | ||
+ | verticalFrequency = 119.85 | ||
+ | horizontalFrequency = 9.8998e+04 | ||
+ | dotFrequency = 1.3780e+08 | ||
+ | mode = 0 | ||
+ | greyscaleMode = 0 | ||
+ | receivingVideo = 1 | ||
+ | receivingDualLinkVideo = 0 | ||
+ | stereoEye = 0 | ||
+ | verticalStereo = 0 | ||
+ | stereoBlueline = 1 | ||
+ | stereoVesaWaveform = 32 | ||
+ | stereoVesaPhase = 245 | ||
+ | horizontalSplit = 0 | ||
+ | horizontalOverlay = 0 | ||
+ | horizontalOverlayBoundsLeft = 0 | ||
+ | horizontalOverlayBoundsRight = 0 | ||
+ | horizontalOverlayBoundsTop = 0 | ||
+ | horizontalOverlayBoundsBottom = 0 | ||
+ | pixelSyncTimeout = 0 | ||
+ | overClocked = 0 | ||
+ | pixelSyncRasterLine = 0 | ||
+ | pixelSyncSingleLine = 0 | ||
+ | pixelSyncBlankLine = 0 | ||
+ | scanningBacklight = 0 | ||
+ | backlightIntensity = 0 | ||
+ | lcd3D60Hz = 0 | ||
+ | videoClutTransparencyColorMode = 0 | ||
+ | pixelMode = 0 | ||
+ | propixxCeilingMount = 0 | ||
+ | propixxRearProjection = 0 | ||
+ | propixx3DCrosstalk = 0 | ||
+ | propixx3DCrosstalkLR = 0 | ||
+ | propixx3DCrosstalkRL = 0 | ||
+ | propixxLampLed = 0 | ||
+ | propixxHotSpotCorrection = 0 | ||
+ | propixxTScopePrepAcknowledge = 0 | ||
+ | propixxTScopeScheduleFrame = 0 | ||
+ | propixxLedMask = 0 | ||
+ | propixxQuad3d = 0 | ||
+ | Error = -1012 | ||
+ | |||
+ | >> HolesCrowd_PTB_TEST | ||
+ | warning: inputdlg: 5th ' | ||
+ | warning: called from | ||
+ | inputdlg at line 120 column 5 | ||
+ | HolesCrowd_PTB_TEST at line 14 column 8 | ||
+ | |||
+ | |||
+ | |||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.19 - Build date: Aug 16 2023). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under termsof the MIT License, with | ||
+ | PTB-INFO: some restrictions. See file ' | ||
+ | |||
+ | PTB-INFO: For information about paid support, support memberships and other commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 16.0.6,DRM 3.54, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.2.0-devel | ||
+ | PTB-INFO: VBL startline = 768 , VBL Endline = 824 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition = 8.344081 ms [119.845433 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.344045 ms [119.845955 Hz]. (50 valid samples taken, stddev=0.000423 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system = 8.343972 ms [119.847000 Hz]. | ||
+ | PTB-INFO: Small deviations between reported values are normal and no reason to worry. | ||
+ | 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). | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | LoadIdentityClut: | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | libptbdrawtext_ftgl: | ||
+ | |||
+ | jyk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | ok = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | tk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | zk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | nk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | zmnak = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | vk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | nnk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | uk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | xuvk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | uk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | ssznk = -5 | ||
+ | k = -4 | ||
+ | k = -3 | ||
+ | k = -2 | ||
+ | k = -1 | ||
+ | m | ||
+ | |||
+ | TB-INFO: There are still 207 textures, offscreen windows or proxy windows open. Screen(' | ||
+ | PTB-INFO: This may be fine for studies where you only use a few textures or windows, but a large number of open | ||
+ | PTB-INFO: textures or offscreen windows can be an indication that you forgot to dispose no longer needed items | ||
+ | PTB-INFO: via a proper call to Screen(' | ||
+ | PTB-INFO: stale objects linger around and can consume significant memory ressources, causing degraded performance, | ||
+ | PTB-INFO: timing trouble (if the system has to resort to disk paging) and ultimately out of memory conditions or | ||
+ | PTB-INFO: crashes. Please check your code. (Screen(' | ||
+ | |||
+ | |||
+ | |||
+ | INFO: PTB's Screen(' | ||
+ | INFO: a total of 28 times out of a total of 8399 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 ' | ||
+ | INFO: If you called Screen(' | ||
+ | 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', | ||
+ | INFO: examples in the PDF presentation in PsychDocumentation/ | ||
+ | |||
+ | ans = 0 | ||
+ | >> jyomtznzmnavnnuxuvussznm | ||
+ | error: ' | ||
+ | >> Datapixx(' | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | ans = | ||
+ | |||
+ | scalar structure containing the fields: | ||
+ | |||
+ | horizontalResolution = 1024 | ||
+ | verticalResolution = 768 | ||
+ | horizontalTotal = 1392 | ||
+ | verticalTotal = 826 | ||
+ | verticalFrequency = 119.85 | ||
+ | horizontalFrequency = 9.8998e+04 | ||
+ | dotFrequency = 1.3780e+08 | ||
+ | mode = 0 | ||
+ | greyscaleMode = 0 | ||
+ | receivingVideo = 1 | ||
+ | receivingDualLinkVideo = 0 | ||
+ | stereoEye = 0 | ||
+ | verticalStereo = 0 | ||
+ | stereoBlueline = 1 | ||
+ | stereoVesaWaveform = 32 | ||
+ | stereoVesaPhase = 245 | ||
+ | horizontalSplit = 0 | ||
+ | horizontalOverlay = 0 | ||
+ | horizontalOverlayBoundsLeft = 0 | ||
+ | horizontalOverlayBoundsRight = 0 | ||
+ | horizontalOverlayBoundsTop = 0 | ||
+ | horizontalOverlayBoundsBottom = 0 | ||
+ | pixelSyncTimeout = 0 | ||
+ | overClocked = 0 | ||
+ | pixelSyncRasterLine = 0 | ||
+ | pixelSyncSingleLine = 0 | ||
+ | pixelSyncBlankLine = 0 | ||
+ | scanningBacklight = 0 | ||
+ | backlightIntensity = 0 | ||
+ | lcd3D60Hz = 0 | ||
+ | videoClutTransparencyColorMode = 0 | ||
+ | pixelMode = 0 | ||
+ | propixxCeilingMount = 0 | ||
+ | propixxRearProjection = 0 | ||
+ | propixx3DCrosstalk = 0 | ||
+ | propixx3DCrosstalkLR = 0 | ||
+ | propixx3DCrosstalkRL = 0 | ||
+ | propixxLampLed = 0 | ||
+ | propixxHotSpotCorrection = 0 | ||
+ | propixxTScopePrepAcknowledge = 0 | ||
+ | propixxTScopeScheduleFrame = 0 | ||
+ | propixxLedMask = 0 | ||
+ | propixxQuad3d = 0 | ||
+ | Error = -1012 | ||
+ | |||
+ | >> ImagingStereoDemo(1, | ||
+ | PsychDataPixx: | ||
+ | |||
+ | |||
+ | PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.19 - Build date: Aug 16 2023). | ||
+ | PTB-INFO: OS support status: Linux 6.2.0-34-generic Supported. | ||
+ | PTB-INFO: Type ' | ||
+ | PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under termsof the MIT License, with | ||
+ | PTB-INFO: some restrictions. See file ' | ||
+ | |||
+ | PTB-INFO: For information about paid support, support memberships and other commercial services, please type | ||
+ | PTB-INFO: ' | ||
+ | |||
+ | PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] GPU with DCE-11.0 display engine [6 heads]. | ||
+ | |||
+ | |||
+ | PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 580 2048SP (polaris10, LLVM 16.0.6,DRM 3.54, 6.2.0-34-generic) :: 4.6 (Compatibility Profile) Mesa 23.2.0-devel | ||
+ | PTB-INFO: VBL startline = 768 , VBL Endline = 824 | ||
+ | PTB-INFO: Measured monitor refresh interval from beamposition = 8.344062 ms [119.845713 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.344007 ms [119.846502 Hz]. (50 valid samples taken, stddev=0.000423 ms.) | ||
+ | PTB-INFO: Reported monitor refresh interval from operating system = 8.343972 ms [119.847000 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' | ||
+ | PTB-INFO: and use my own home-grown frame-sequential stereo implementation. Note thatthis | ||
+ | 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). | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | PTB-INFO: SetDitherMode: | ||
+ | LoadIdentityClut: | ||
+ | ERROR: Invalid device for current operation | ||
+ | ERROR: Invalid device for current operation | ||
+ | .Dots Mean (s) Max (s) %> | ||
+ | |||
+ | 1000 0.017 | ||
+ | </ | ||
+ | |||
+ | There was an aliasing sort of dark line that wandered up and down during '' | ||
+ | |||
+ | |||
+ | ====== Next steps ====== | ||
+ | |||
+ | Create a file based on the example in the 3DPixx manual booklet, try to run it. | ||
+ | |||
+ | Could also try installing "All Open" | ||
+ | |||
+ | |||
+ | ====== VPixx version of ImagingStereoDemo.m ====== | ||
+ | |||
+ | ===== 2023-10-23 notes ===== | ||
+ | |||
+ | ===== Created VPixx git repo ===== | ||
+ | |||
+ | This past weekend, created a private repo named " | ||
+ | |||
+ | I filled it with the directory of scripts that I downloaded from the " | ||
+ | |||
+ | I am going to clone this repo onto '' | ||
+ | |||
+ | ===== Testing the VPixx version of ImagingStereoDemo.m ===== | ||
+ | |||
+ | The script is | ||
+ | |||
+ | <code bash> | ||
+ | .../ | ||
+ | </ | ||
+ | |||
+ | Strange behavior of the system. | ||
+ | |||
+ | I could see in stereo for a few seconds, and then the glasses/ | ||
+ | |||
+ | However, unlike before, the stereo started off showing uncrossed disparity (concave in the demo) for which the absolute disparity shrank gradually until the disparity became crossed (convex) until the perceived depth was too great to perceive any more. Then the glasses/ | ||
+ | |||
+ | I couldn' | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl start vpixx-device-server | ||
+ | </ | ||
+ | |||
+ | ... and this allowed the command | ||
+ | |||
+ | <code matlab> | ||
+ | Datapixx(' | ||
+ | </ | ||
+ | |||
+ | to work again. | ||
+ | |||
+ | However, even though I was able to get '' | ||
+ | |||
+ | ====== OpenGL info ====== | ||
+ | |||
+ | |||
+ | ===== glxgears output ===== | ||
+ | |||
+ | Do this on command line as a way of testing OpenGL: | ||
+ | |||
+ | <code bash> | ||
+ | glxgears | ||
+ | [then] | ||
+ | glxgears -info | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | Running synchronized to the vertical refresh. | ||
+ | approximately the same as the monitor refresh rate. | ||
+ | 657 frames in 5.0 seconds = 131.242 FPS | ||
+ | X connection to :0.0 broken (explicit kill or server shutdown). | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | GL_RENDERER | ||
+ | GL_VERSION | ||
+ | GL_VENDOR | ||
+ | GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_EXT_texture_buffer_object GL_AMD_texture_texture4 GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_ATI_meminfo GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_copy_image GL_NV_texture_barrier GL_ARB_draw_indirect GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_shader_subroutine GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_EXT_direct_state_access GL_EXT_shader_image_load_store GL_EXT_vertex_attrib_64bit GL_NV_vdpau_interop GL_AMD_multi_draw_indirect GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_query_buffer_object GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_AMD_pinned_memory GL_ARB_bindless_texture GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_compute_variable_group_size GL_ARB_enhanced_layouts GL_ARB_indirect_parameters GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shading_language_include GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_debug_label GL_EXT_shader_integer_mix GL_NVX_gpu_memory_info GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_EXT_shader_image_load_formatted GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_shader_atomic_int64 GL_ARB_ES3_2_compatibility GL_ARB_gpu_shader_int64 GL_ARB_parallel_shader_compile GL_ARB_shader_atomic_counter_ops GL_ARB_shader_ballot GL_ARB_shader_clock GL_ARB_shader_viewport_layer_array GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_ARB_gl_spirv GL_ARB_spirv_extensions GL_EXT_window_rectangles GL_MESA_shader_integer_functions GL_ARB_polygon_offset_clamp GL_ARB_texture_filter_anisotropic GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd GL_KHR_parallel_shader_compile GL_NV_alpha_to_coverage_dither_control GL_AMD_framebuffer_multisample_advanced GL_EXT_EGL_image_storage GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_EGL_sync GL_EXT_demote_to_helper_invocation GL_NV_ES1_1_compatibility | ||
+ | VisualID 1300, 0x514 | ||
+ | </ | ||
+ | |||
+ | ===== glxheads output ===== | ||
+ | |||
+ | <code bash> | ||
+ | anthony@grogu: | ||
+ | Name: :0 | ||
+ | Display: | ||
+ | Window: | ||
+ | Context: | ||
+ | GL_VERSION: | ||
+ | GL_VENDOR: | ||
+ | GL_RENDERER: | ||
+ | </ | ||
+ | |||
+ | ===== glxinfo output ===== | ||
+ | |||
+ | Output is rather long, so follow this link to see it: | ||
+ | |||
+ | [[resources: | ||
+ | |||
+ | |||
+ | |||
+ | ====== Next steps ====== | ||
+ | |||
+ | - Try downloading the VPixx scripts, but the versions for MATLAB instead of for Octave. | ||
+ | |||
+ | - Finally email Vpixx. | ||
+ | |||
+ | ====== Ran PsychLinuxConfiguration ====== | ||
+ | |||
+ | 2024-01-22 | ||
+ | |||
+ | Ran it on octave command line (i.e. no gui), as sudo. | ||
+ | |||
+ | Not sure whether I had run it before. | ||
+ | |||
+ | ===== Tried ImagingStereoDemo again ===== | ||
+ | |||
+ | Mostly successful! | ||
+ | |||
+ | I ran octave from the command line as a regular user. | ||
+ | |||
+ | [Can't copy text for some reason; will try pasting screenshot] | ||
+ | |||
+ | ====== Package update problem after rebooting on 2024-01-22 ====== | ||
+ | |||
+ | I tried '' | ||
+ | |||
+ | <code bash> | ||
+ | You might want to run 'apt --fix-broken install' | ||
+ | The following packages have unmet dependencies: | ||
+ | | ||
+ | Recommends: libtxc-dxtn-s2tc0 but it is not installable or | ||
+ | libtxc-dxtn0 but it is not installable | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | E: Unmet dependencies. Try 'apt --fix-broken install' | ||
+ | </ | ||
+ | |||
+ | Do '' | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | anthony@grogu: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree... Done | ||
+ | Reading state information... Done | ||
+ | Correcting dependencies... Done | ||
+ | The following packages were automatically installed and are no longer required: | ||
+ | libdrm-intel1: | ||
+ | Use 'sudo apt autoremove' | ||
+ | The following additional packages will be installed: | ||
+ | libgl1-amdgpu-mesa-dri libgl1-amdgpu-mesa-dri: | ||
+ | Suggested packages: | ||
+ | libglide3 libglide3: | ||
+ | Recommended packages: | ||
+ | libtxc-dxtn-s2tc0 | libtxc-dxtn0 libtxc-dxtn-s2tc0: | ||
+ | The following NEW packages will be installed: | ||
+ | libllvm16.0.50702-amdgpu libllvm16.0.50702-amdgpu: | ||
+ | The following packages will be upgraded: | ||
+ | libgl1-amdgpu-mesa-dri libgl1-amdgpu-mesa-dri: | ||
+ | 2 upgraded, 2 newly installed, 0 to remove and 87 not upgraded. | ||
+ | 2 not fully installed or removed. | ||
+ | Need to get 0 B/58.8 MB of archives. | ||
+ | After this operation, 192 MB of additional disk space will be used. | ||
+ | Do you want to continue? [Y/n] y | ||
+ | (Reading database ... 385902 files and directories currently installed.) | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking libllvm16.0.50702-amdgpu: | ||
+ | dpkg: error processing archive / | ||
+ | b (--unpack): | ||
+ | | ||
+ | 6.0.50700-amdgpu: | ||
+ | dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking libllvm16.0.50702-amdgpu: | ||
+ | dpkg: error processing archive / | ||
+ | eb (--unpack): | ||
+ | | ||
+ | m16.0.50700-amdgpu: | ||
+ | dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) | ||
+ | Errors were encountered while processing: | ||
+ | / | ||
+ | / | ||
+ | E: Sub-process / | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||