pyglet 1.2.4 second monitor issue (Ubuntu)

60 views
Skip to first unread message

Thomas Bullock

unread,
Mar 25, 2016, 11:04:32 PM3/25/16
to psychopy-users
Dear users

I'm running PsychoPy 1.83.04 on Ubuntu 14.04 with Python2.7.  I have two screens setup using the Xscreens config.  I upgraded pyglet to version 1.2.4 due to a problem I encountered with mouse.setPosition (see https://groups.google.com/forum/#!topic/psychopy-users/YNyXaIE8PAQ).  The upgrade solved the mouse problem but now I'm unable to create windows on my second monitor.  Before the upgrade i was able to set Screen=1 and windows would appear on the second monitor without any issue.  Now they just appear on the primary screen.

It seems like this is a known issue in Linux (https://bitbucket.org/pyglet/pyglet/issues/71/full-screen-window-appears-on-main-screen), but I haven't been able to find a solution to it.

Does anyone have any suggestions?

Thanks

Tom







Jon Peirce

unread,
Mar 28, 2016, 5:53:34 AM3/28/16
to psychop...@googlegroups.com
Oh dear. Sorry to hear that Tom. I don't have any suggestions I'm afraid (except for getting involved in the pyglet project and fixing it for them?!)
PsychoPy itself does nothing to handle this - relies entirely on pyglet for window creation

Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/32187119-b254-44d7-be84-edf4e646655f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jon Peirce
http://www.peirce.org.uk

Jeremy Gray

unread,
Mar 28, 2016, 7:57:02 AM3/28/16
to psychop...@googlegroups.com

Thomas Bullock

unread,
Mar 28, 2016, 12:33:42 PM3/28/16
to psychopy-users
Hi Jon, Jeremy

Thank you for confirming the pyglet bug.  It's not a deal-breaker for now as I can run with a single monitor setup if necessary. 

One option to regain the dual-monitor support is to downgrade back to pyglet 1.4, but I really need to be able to reposition the mouse to the center of the screen on a trial-by-trial basis.  Is there any workaround for the non-functional mouse.setPosition command that you are aware of?  I also looked into the possibility of using ioHub commands to control the mouse, but I didn't see a way to reset the mouse position (although I may be missing something)?

Thanks again

Tom
Reply all
Reply to author
Forward
0 new messages