# VBL (vertical retrace) syncing problem

**URL:** <https://psychtoolbox.discourse.group/t/vbl-vertical-retrace-syncing-problem/3589>\
**Category:** Hardware\
**Tags:** linux, gpu\
**Created:** [December 18, 2020, 12:54pm UTC](https://psychtoolbox.discourse.group/t/vbl-vertical-retrace-syncing-problem/3589 "2020-12-18T12:54:17Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [January 7, 2021, 5:39pm UTC](https://psychtoolbox.discourse.group/t/vbl-vertical-retrace-syncing-problem/3589/13 "2021-01-07T17:39:44Z")

</div>

Hi Camilla,

something must have gone wrong on your side if you still see images on your laptop screen? What you should see with our typical demos like PerceptualVBLSyncTest, LinesDemo, DotDemo etc., which all select `screenId = max(Screen('Screens'));` for `Screen('Openwindow, screenId,...);` is the normal desktop GUI with Matlab on the laptop display, and the PTB visuals on the HDMI projector or monitor.

Can you post the output of `ResolutionTest` in Matlab, and/or `xrandr --screen 0` and `xrandr --screen 1` in a terminal window? Also what’s the Matlab output of `type /etc/X11/xorg.conf.d/90-ptbxorg.conf` ?

You did run `XOrgConfSelector` and logged out / logged in again, right? The logout/login is when the freshly created config file is read and the display server configured accordingly, switching from single X-Screen to dual-X-Screen mode. The HDMI display must be plugged in at that time.

Oh and yes, you can disable the laptop panel from the command line, or with the display settings GUI of your desktop while the projector is plugged in, so this XOrgConfCreator/Selector/logout/login dance is not needed. The laptop will then switch between panel and HDMI projector, depending if HDMI is plugged in or not. This would increase performance slightly if needed. But often that is a bit impractical in a scanner setup, where experimenter laptop and scanner projector are in different rooms.

-mario

---

_[View the full topic](https://psychtoolbox.discourse.group/t/vbl-vertical-retrace-syncing-problem/3589)._
