MWorks always uses main display

llglick's Avatar

llglick

14 Oct, 2021 01:52 PM

This comment was split from the discussion: voltage from port DAC0

Selection of either the Main Display or Display 2 results in the display on the Main Display (the one with the macOS Dock).

When these preferences are toggled, they are updated in the user-level file (0 for Main, 1 for Display 2), but the display used does not change, and nor does the system-level file.

Lindsey.

  1. Support Staff 1 Posted by Christopher Sta... on 14 Oct, 2021 02:04 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    (I split this in to its own discussion.)

    Since it sounds like the preferences mechanism is working correctly, we need to start considering other possible causes. Some questions:

    1. Are you seeing this issue on multiple Mac's or just one?
    2. Have you made any recent changes to the system(s) where you've observed this problem? Did you, for example
      • install a new version of MWorks?
      • upgrade to a newer version of macOS?
      • replace or reconnect either of the displays?

    Thanks,
    Chris

  2. 2 Posted by llglick on 14 Oct, 2021 06:05 PM

    llglick's Avatar

    Hi Chris,
    This issue was just on a single Mac.
    It followed an upgrade from High Sierra to Catalina. We did not install a
    new version of Mworks (though we later tried reinstalling to see if it
    would help- it didn't) or replace/reconnect the displays (I'm not sure if
    this was ever tried).
    Lindsey.

  3. Support Staff 3 Posted by Christopher Sta... on 15 Oct, 2021 06:09 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    It followed an upgrade from High Sierra to Catalina. We did not install a new version of Mworks

    OK, that's useful info. What version of MWorks are you using on that machine?

    Chris

  4. 4 Posted by llglick on 16 Oct, 2021 01:19 AM

    llglick's Avatar

    MWorks was 0.10 (a nightly). Same as on the other computers.
    Lindsey.

  5. Support Staff 5 Posted by Christopher Sta... on 20 Oct, 2021 01:58 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    I created a little command-line utility that prints out some info about all the connected displays. I'm hoping it will shed some light on what's happening here.

    You can download the tool from Dropbox. After unzipping it, run it from Terminal. For example, here's what happens when I run it on my iMac:

    $ ./screeninfo
    Screen 0:
        Name: Built-in Retina Display
        Direct Display ID: 1
        Frame: {{0, 0}, {1920, 1080}}
        Vendor number: 0x610
        Model number: 0xA04C
        Serial number: 0xFD626D62
        Is main display? Yes
        Is active? Yes
        Is in mirror set? No
    Screen 1:
        Name: LED Cinema Display
        Direct Display ID: 2
        Frame: {{-1920, -120}, {1920, 1200}}
        Vendor number: 0x610
        Model number: 0x9236
        Serial number: 0x274680D
        Is main display? No
        Is active? Yes
        Is in mirror set? No
    

    Can you run this on your problematic machine and send me the output?

    Thanks,
    Chris

  6. 6 Posted by llglick on 20 Oct, 2021 02:17 PM

    llglick's Avatar

    Hi Chris,
    Here's the output:

    Screen 0:
        Name: DELL D2015H
        Direct Display ID: 725364104
        Frame: {{0, 0}, {1920, 1080}}
        Vendor number: 0x10AC
        Model number: 0xF063
        Serial number: 0x41333549
        Is main display? Yes
        Is active? Yes
        Is in mirror set? No
    Screen 1:
        Name: DELL 2009W
        Direct Display ID: 722492366
        Frame: {{1920, 30}, {1680, 1050}}
        Vendor number: 0x10AC
        Model number: 0x4042
        Serial number: 0x414E4B4C
        Is main display? No
        Is active? Yes
        Is in mirror set? No
    

    Also- I can't test the other issue with dac_cycle until we solve this one because it's the same computer...

    Lindsey.

  7. Support Staff 7 Posted by Christopher Sta... on 20 Oct, 2021 03:50 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    Here's the output:

    Thanks. Unfortunately, that all looks perfectly reasonable, so it doesn't really help us.

    Also- I can't test the other issue with dac_cycle until we solve this one because it's the same computer...

    I don't understand. dac_cycle just runs in Terminal. How does the display issue affect it?

    However, it's interesting that the same machine is exhibiting both of these weird issues. Is this a Mac mini? Is it using an external GPU?

    If you don't mind, could you run the following command in Terminal on that machine and send me the output?

    /usr/sbin/system_profiler -detailLevel mini SPHardwareDataType SPDisplaysDataType SPUSBDataType
    

    Thanks,
    Chris

  8. 8 Posted by llglick on 20 Oct, 2021 04:00 PM

    llglick's Avatar

    Sorry- I was wrong about not being able to test things on this Mac- I can. And dac_cycle.mwel still doesn't work.

    Here's the output of that command:

        Hardware Overview:
    
          Model Name: Mac mini
          Model Identifier: Macmini6,2
          Processor Name: Quad-Core Intel Core i7
          Processor Speed: 2.6 GHz
          Number of Processors: 1
          Total Number of Cores: 4
          L2 Cache (per Core): 256 KB
          L3 Cache: 6 MB
          Hyper-Threading Technology: Enabled
          Memory: 8 GB
          Boot ROM Version: 422.0.0.0.0
          SMC Version (system): 2.8f1
    
    Graphics/Displays:
    
        Intel HD Graphics 4000:
    
          Chipset Model: Intel HD Graphics 4000
          Type: GPU
          Bus: Built-In
          VRAM (Dynamic, Max): 1536 MB
          Vendor: Intel
          Device ID: 0x0166
          Revision ID: 0x0009
          Metal: Supported, feature set macOS GPUFamily1 v4
          Displays:
            DELL D2015H:
              Resolution: 1920 x 1080 (1080p FHD - Full High Definition)
              UI Looks like: 1920 x 1080 @ 60 Hz
              Framebuffer Depth: 24-Bit Color (ARGB8888)
              Display Serial Number: FN8K9583A35I
              Main Display: Yes
              Mirror: Off
              Online: Yes
              Rotation: Supported
              Adapter Type: Apple Mini DisplayPort To VGA Adapter
              Automatically Adjust Brightness: No
              Adapter Firmware Version: 1.03
            DELL 2009W:
              Resolution: 1680 x 1050 (Widescreen Super eXtended Graphics Array Plus)
              UI Looks like: 1680 x 1050 @ 60 Hz
              Framebuffer Depth: 24-Bit Color (ARGB8888)
              Display Serial Number: G433H97GANKL
              Mirror: Off
              Online: Yes
              Rotation: Supported
              Automatically Adjust Brightness: No
    
    2021-10-20 11:58:44.069 system_profiler[2534:38709] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
    2021-10-20 11:58:44.070 system_profiler[2534:38709] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
    USB:
    
        USB 3.0 Bus:
    
          Host Controller Driver: AppleUSBXHCIPPT
          PCI Device ID: 0x1e31 
          PCI Revision ID: 0x0004 
          PCI Vendor ID: 0x8086 
    
            USB Optical Mouse:
    
              Product ID: 0x4d81
              Vendor ID: 0x0461  (Primax Electronics)
              Version: 2.00
              Speed: Up to 1.5 Mb/s
              Location ID: 0x14300000 / 2
              Current Available (mA): 500
              Current Required (mA): 98
              Extra Operating Current (mA): 0
    
            Dell USB Keyboard:
    
              Product ID: 0x2105
              Vendor ID: 0x413c  (Dell Inc.)
              Version: 3.52
              Speed: Up to 1.5 Mb/s
              Manufacturer: Dell
              Location ID: 0x14200000 / 3
              Current Available (mA): 500
              Current Required (mA): 70
              Extra Operating Current (mA): 0
    
            LabJack U6:
    
              Product ID: 0x0006
              Vendor ID: 0x0cd5
              Version: 0.00
              Speed: Up to 12 Mb/s
              Manufacturer: LabJack
              Location ID: 0x14100000 / 4
              Current Available (mA): 500
              Current Required (mA): 0
              Extra Operating Current (mA): 0
    
        USB 2.0 Bus:
    
          Host Controller Driver: AppleUSBEHCIPCI
          PCI Device ID: 0x1e2d 
          PCI Revision ID: 0x0004 
          PCI Vendor ID: 0x8086 
    
            Hub:
    
              Product ID: 0x0024
              Vendor ID: 0x8087  (Intel Corporation)
              Version: 0.00
              Speed: Up to 480 Mb/s
              Location ID: 0x1a100000 / 1
              Current Available (mA): 500
              Current Required (mA): 0
              Extra Operating Current (mA): 0
              Built-In: Yes
    
        USB 2.0 Bus:
    
          Host Controller Driver: AppleUSBEHCIPCI
          PCI Device ID: 0x1e26 
          PCI Revision ID: 0x0004 
          PCI Vendor ID: 0x8086 
    
            Hub:
    
              Product ID: 0x0024
              Vendor ID: 0x8087  (Intel Corporation)
              Version: 0.00
              Speed: Up to 480 Mb/s
              Location ID: 0x1d100000 / 1
              Current Available (mA): 500
              Current Required (mA): 0
              Extra Operating Current (mA): 0
              Built-In: Yes
    
                Hub:
    
                  Product ID: 0x2512
                  Vendor ID: 0x0424  (SMSC)
                  Version: b.b3
                  Speed: Up to 480 Mb/s
                  Location ID: 0x1d180000 / 2
                  Current Available (mA): 500
                  Current Required (mA): 2
                  Extra Operating Current (mA): 0
                  Built-In: Yes
    
                    IR Receiver:
    
                      Product ID: 0x8242
                      Vendor ID: 0x05ac (Apple Inc.)
                      Version: 1.00
                      Speed: Up to 1.5 Mb/s
                      Manufacturer: Apple, Inc.
                      Location ID: 0x1d182000 / 4
                      Current Available (mA): 500
                      Current Required (mA): 100
                      Extra Operating Current (mA): 0
                      Built-In: Yes
    
                    BRCM20702 Hub:
    
                      Product ID: 0x4500
                      Vendor ID: 0x0a5c  (Broadcom Corp.)
                      Version: 1.00
                      Manufacturer: Apple Inc.
                      Location ID: 0x1d181000
    
                        Bluetooth USB Host Controller:
    
                          Product ID: 0x828a
                          Vendor ID: 0x05ac (Apple Inc.)
                          Version: 1.50
                          Manufacturer: Apple Inc.
                          Location ID: 0x1d181300
    
  9. 9 Posted by llglick on 20 Oct, 2021 04:02 PM

    llglick's Avatar

    Also- yes- this is a mac mini (late 2012) running 10.15.7.
    There is no external GPU.
    Lindsey.

  10. Support Staff 10 Posted by Christopher Sta... on 26 Oct, 2021 02:19 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    Now I'm wondering if all this weirdness is due to a mismatch between the version of MWorks I built your plugin against and the version you're running. It's really never safe to use a compiled MWorks plugin with any version of MWorks other than the one you compiled it against, but usually the failure modes are obvious (e.g. MWServer crashes), so I hadn't been thinking about it.

    To test this theory, can you try installing the latest MWorks nightly build on this machine? Please do not install any version of your U6 plugin (or any other non-standard plugins). Then, try loading and running the RSVP demo experiment, which is located at

    /Library/Application Support/MWorks/Examples/RSVPDemo/RSVPDemo.mwel
    

    If stimuli are still displayed on the main display, regardless of which display you select in MWServer's preferences, then we can rule out this theory at least.

    Thanks,
    Chris

  11. 11 Posted by llglick on 27 Oct, 2021 01:56 PM

    llglick's Avatar

    Hi Chris,
    I installed the nightly and ran RSVPDemo, but the display is still on Display 1.
    But this wasn't surprising since the display is fine on a bunch of other computers with the "unmatched" version of MWorks.
    Lindsey.

  12. Support Staff 12 Posted by Christopher Sta... on 27 Oct, 2021 02:13 PM

    Christopher Stawarz's Avatar

    OK, thanks for checking. I'll try to think of some other test to run next.

    Chris

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac