StarCraft II Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Multimonitor setup issues with starcraft 2 (linux)

just felt i should let people know this.
if you have a multi monitor setup with starcraft 2, the game may not function correctly.
I've noticed a dramatic decrease in frame-rate, as well as noticed that StarCraft 2 will not lock the pointer to the window. this means that your mouse will still go onto the screen beside/ontop/below of the screen starcraft 2 is on. the best solution for this is to simply disable one monitor. I realize that this is a pain in the ass, because (at least for Nvidia users) this means that you need to restart X.

Actually, you don't need to restart X in order to get the game to run properly.

There are a few ways of doing it:
• disper, a utility to control nvidia multi-monitor setups. 'disper -s' will turn off the secondary monitor, and 'disper -e -t [left|right]' will turn on the secondary monitor again, and extend the desktop in the given direction.
• xrandr, a command-line to the RandR extension for X, which works similarly but has a more complicated interface
• If you're using TwinView, nvidia-settings and your desktop's monitor manager both provide GUI ways of manipulating the configuration of both monitors
• Metamodes, the best solution for Nvidia users. This allows you to define resolutions that use either or both of your monitors, and present themselves as normal resolutions. For example, this line in my xorg.conf file provides a wide array of resolutions that use only my primary monitor
"metamodes" "CRT: nvidia-auto-select +1920+0, DFP: nvidia-auto-select +0+0; CRT: NULL, DFP: nvidia-auto-select +0+0; CRT: 1280x1024 +1920+0, DFP: 1920x1200 +0+0; CRT: NULL, DFP: 1680x1050 +0+0; CRT: NULL, DFP: 1440x900 +0+0; CRT: NULL, DFP: 1280x720 +0+0; CRT: NULL, DFP: 960x600 +0+0; CRT: NULL, DFP: 720x480 +0+0; CRT: NULL, DFP: 640x350 +0+0; CRT: NULL, DFP: 640x480 +0+0; CRT: NULL, DFP: 800x600 +0+0; CRT: NULL, DFP: 1152x864 +0+0; CRT: NULL, DFP: 1280x1024 +0+0; CRT: NULL, DFP: 1400x1050 +0+0; CRT: NULL, DFP: 1600x1200 +0+0; CRT: NULL, DFP: 1920x1080 +0+0"

Starcraft II picks up on the availability of these resolutions, and when they are selected, the secondary monitor is simply temporarily disabled.

are you sure?
because the nvidia X server settings will not let me dissable a screen, reinable a screen, or enable twin view(depending which mode im in at that time) without restarting X.

Yeah, I'm sure. On all of the NVidia machines I've used (with the proprietary drivers), enabling TwinView didn't require an X restart, but simply enabling the second monitor using TwinView and clicking "Apply" using nvidia-settings.

ahh, the problem is that I run a seperate X screen, I guess.

Is there any particular reason that you do it that way? Xinerama doesn't work all that well on Nvidia (compositing doesn't work, for example).

I did it that way originally because it was easy to do. just 1 or 2 clicks. it was also nice to have 2 fully functional desktops going, as they were isolated from each other.

Xinerama was not enabled either.

EDIT: just tried twinview. still had issues with the mouse not being locked to the game, but this time the menus got really messed up, and mouse clicks were not registering. not really a problem tho as now i can just turn it off without rebooting

Did you try the Metamodes trick? That may resolve (or at least relate to) the mouse tracking issue.

The metamodes works perfekt, no problems here!

But i got some mouse-lock problems with the Multimonitor, someone here who can tell me how to lock the mouse to the screen while playing SC2?

Cheers

Dennis Philpot wrote:

The metamodes works perfekt, no problems here!

But i got some mouse-lock problems with the Multimonitor, someone
here who can tell me how to lock the mouse to the screen while
playing SC2?

Cheers

I've fixed most of my other problems, but that one keeps coming up. I'm at a point where I dissable my second one before I play. its incredibly annoying. nothing I can do will get it to stick.

Are you playing the game in windowed mode? I've also had this problem while playing in windowed mode. I recall seeing an option in game that prevents the mouse cursor from leaving the game window but I honestly do not remember if it works or not because I play in full screen now. It's worth a shot if your playing in windowed mode.

1 to 11 of 11

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzMxNDM1MjAzLCJjc3JmX3Rva2VuIjoiU05ZTVQ5OTZ4eDVLN0p3ayIsImdkcHIiOjB9