You are not logged in.

#1 2017-09-20 10:01:30

Viomi
Member
Registered: 2015-08-15
Posts: 5

Camera going the wrong way in all games, multi-monitor setup

Hey guys,

So ever since I got more than one monitor, I've been having an issue preventing me from playing any games. I can't seem to find the answer anywhere.

Basically, I believe games are looking for the "center" of my screen, and xinput (or x in general perhaps) is telling these games that the center of my screen is actually the center of my three monitors. So the camera constantly spins up and to the left when I move the mouse, rather than in the direction I'm trying to move it. This obviously leads to any game that uses the mouse to move the camera being unplayable.

I've searched these and other forums, and nowhere have I seen this issue talked about. Is there an easy fix, or something I'm missing entirely?


Tox: 874B861994E9032771D7C28F86FDA4D2AA914FAAD0F466541AD949B62E736517FA40E1D657ED

Offline

#2 2017-09-20 11:14:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: Camera going the wrong way in all games, multi-monitor setup

Try to

export SDL_VIDEO_FULLSCREEN_HEAD=0 #Can be 0,1,2 depending on which screen you run your game on

somewhere (e.g. /etc/profile or similar), relog and retry. Other than that some more information would be nice, like which games exactly, which enviroment (DE/Window Manager,  Wayland/Xorg ?), how did you set up the multi monitor environment, which graphics card do you use etc.

Last edited by V1del (2017-09-20 11:14:58)

Offline

#3 2017-09-25 09:55:18

Viomi
Member
Registered: 2015-08-15
Posts: 5

Re: Camera going the wrong way in all games, multi-monitor setup

V1del wrote:

Try to

export SDL_VIDEO_FULLSCREEN_HEAD=0 #Can be 0,1,2 depending on which screen you run your game on

somewhere (e.g. /etc/profile or similar), relog and retry. Other than that some more information would be nice, like which games exactly, which enviroment (DE/Window Manager,  Wayland/Xorg ?), how did you set up the multi monitor environment, which graphics card do you use etc.

Happens with any 3D game where it uses the mouse for camera movement.. EVE & WoW running through wine, Tower Unite and Counter-Strike: Global Offensive running natively..

Happens with both Openbox & bspwm on xorg, I've yet to try Wayland (willing to give it a try if what you recommended doesn't work). I set up the multi-monitor environment using xrandr:

Screen 0: minimum 8 x 8, current 5440 x 1200, maximum 32767 x 32767
DVI-D-0 connected 1600x1200+3840+0 (normal left inverted right x axis y axis) 367mm x 275mm
   1600x1200     60.00*+
   1280x1024     75.02    60.02 
   1152x864      75.00 
   1024x768      75.03    60.00 
   800x600       75.00    60.32 
   640x480       75.00    59.94 
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04 
   1280x1024     75.02    60.02 
   1280x720      60.00    59.94    50.00 
   1152x864      75.00 
   1024x768      75.03    60.00 
   800x600       75.00    60.32 
   720x576       50.00 
   720x480       59.94 
   640x480       75.00    59.94    59.93 
HDMI-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.95 
   1440x900      59.89 
   1280x1024     75.02    60.02 
   1280x960      60.00 
   1280x720      60.00 
   1024x768      75.03    70.07    60.00 
   800x600       75.00    72.19    60.32    56.25 
   640x480       75.00    72.81    59.94

Running with an nvidia 1060 using proprietary drivers, though this was happening with my last graphics too, an nvidia 780 also on proprietary drivers.

Testing what you recommended as soon as I finish doing stuff that I can't log out in the middle of.


Tox: 874B861994E9032771D7C28F86FDA4D2AA914FAAD0F466541AD949B62E736517FA40E1D657ED

Offline

#4 2017-09-25 10:28:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: Camera going the wrong way in all games, multi-monitor setup

If it happens in wine, this is unlikely to be it. Something else that I remember, do you run something like unclutter to disable your mousepointer after a set period of inactivity? They used to lead to such issues as well.

Offline

#5 2017-09-27 23:42:44

Viomi
Member
Registered: 2015-08-15
Posts: 5

Re: Camera going the wrong way in all games, multi-monitor setup

V1del wrote:

If it happens in wine, this is unlikely to be it. Something else that I remember, do you run something like unclutter to disable your mousepointer after a set period of inactivity? They used to lead to such issues as well.

No, I don't happen to run anything like this. I tend to keep my install extremely minimalist. The only things I run at start-up is

pulseaudio &                                                                                                                                                                                                                                                                                                           
quasselcore &                                                                                                                                                                                                                                                                                                          
mpd &                                                                                                                                                                                                                                                                                                                  
xrandr --output HDMI-0 --primary &                                                                                                                                                                                                                                                                                     
xrandr --output HDMI-1 --right-of HDMI-0                                                                                                                                                                                                                                                                               
xrandr --output DVI-D-0 --right-of HDMI-1 &                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                     
#exec openbox-session                                                                                                                                                                                                                                                                                                  
exec bspwm

And then in my bspwmrc I run:

xsetroot -cursor_name left_ptr &
xset m 0 0 &
nitrogen --restore &
xinput --set-prop 12 'Coordinate Transformation Matrix' 0.5 0 0 0 0.5 0 0 0 1 &
# a bunch of bspwm stuff

I had Synergy for a time so I uninstalled that, and that doesn't seem to have fixed it either.

And yeah, happens in wine applications, even if I go into winecfg and make it run in it's own virtual desktop.. But at the same time, the direction of the mouse changes based on where I put the application. On my left-most screen, it goes directly to the top left- On my right-most screen, it goes immediately to the right, and on my middle screen, it goes almost straight up. Which is why I assumed it was something to do with the multi-monitor setup and my applications thinking it's just one big screen.


Tox: 874B861994E9032771D7C28F86FDA4D2AA914FAAD0F466541AD949B62E736517FA40E1D657ED

Offline

#6 2017-12-22 13:56:26

Viomi
Member
Registered: 2015-08-15
Posts: 5

Re: Camera going the wrong way in all games, multi-monitor setup

Necroing because I'm still having this issue and haven't found any sort of fix. I've reinstalled, I'm running openbox instead of bspwm.. I really think it's something to do with xrandr and the multiple monitor setup.

Is anyone else using 3+ monitors that are different sizes that has ever had a similar sort of issue?


Tox: 874B861994E9032771D7C28F86FDA4D2AA914FAAD0F466541AD949B62E736517FA40E1D657ED

Offline

Board footer

Powered by FluxBB