Trouble with Mouse Not Spanning Multiple Monitors Correctly

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
MDRMintUser

Trouble with Mouse Not Spanning Multiple Monitors Correctly

Post by MDRMintUser »

Hi,

I'm having an issue with my multi-monitor settings. The issue is that the mouse will not move between the screens continuously. It almost seems like the desktop thinks the main monitor is 640x480, but it's set to 1920x1080. To move from the primary screen to the second screen, I have to move the mouse over the top right edge of the screen, somewhere around halfway down from the top. Anything below that will be blocked. Then it jumps to the far edge of the second monitor. When I move it back, I can move it back from the second monitor from anywhere on the left edge of the second monitor screen, but it jumps to the middle of the main monitor, almost around 640 pixels from the left edge of the main monitor. It all kind of works, but it's really annoying.

Couple things unique to my setup. I have the monitors setup with separate xservers so that each monitor has it's own set of virtual desktops. I am not using Xinerama mode to make a continous desktop. I am using the Nvidia driver, and I also run the primary monitor through a KVM system that only passes RGB info.

I could use any ideas if anyone has any. Here are the details of what I've done:

I've messed a lot with mdm, mainly trying to get the initial resolution on the main monitor to log in in high res and then stay high res on my desktops. So I've:

1. Added "xrandr --output DVI-I-0 --mode 1920x1080" to "/etc/mdm/Init/Default".
2. Added "xrandr --output DVI-I-0 --mode 1920x1080" to "/etc/mdm/PostLogin/Default".
3. Added "xrandr --output DVI-I-0 --mode 1920x1080" to "/etc/mdm/PostSession/Default".
4. Added "xrandr --output DVI-I-0 --mode 1920x1080" to "/etc/mdm/PreSession/Default".

This is hit or miss on trying to get the main login screen to come up in high res mode. That's another issue I'd take an answer on if anyone has any ideas.

In KDE, I've also setup a krandrrc file in ~/.kde/share/config with the following data:

[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output "DVI-I-0" --pos 1920x0 --mode 1920x1200 --refresh 59.9502\nxrandr --output "DVI-I-1" --pos 0x130 --mode 1920x1080 --refresh 60\nxrandr --noprimary

And finally, I've been messing with my xorg.conf file a lot. Here is the contents of it:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
# Screen 1 "Screen1" Relative "Screen0" 1920 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Ancor Communications Inc ASUS VE278"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
# 1400x900 59.96 Hz (CVT) hsync: 56.01 kHz; pclk: 103.50 MHz
Modeline "1400x900_60.00" 103.50 1400 1480 1624 1848 900 903 913 934 -hsync +vsync
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
Option "PreferredMode" "1920x1080_60.00"
Option "DPMS"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Envision H190L"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 76.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 550 Ti"
BusID "PCI:3:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 550 Ti"
BusID "PCI:3:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
# Option "nvidiaXineramaInfoOrder" "CRT-0"
Option "metamodes" "DVI-I-0: 1920x1080 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
Modes "1920x1080" "1680x1050" "1400x900" "1280x1024"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "DVI-I-1: 1280x1024 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Thanks for looking at it. It may be I've got some things fighting each other, but I've tried a number of different things and nothing seems to work. I did have this initial problem in Mint15, but somehow I got past it, and I have not been able to get past it in Mint 16 since upgrading. I think the issue is somewhere in my xorg.conf file but I can't seem to find it.

Mark
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
MDRMintUser

Re: Trouble with Mouse Not Spanning Multiple Monitors Correc

Post by MDRMintUser »

One quick bit of extra info, the krandrrc file is pretty new. I added it yesterday and it didn't seem to have any effect on anything. Not really sure it's even being run.
MDRMintUser

Re: Trouble with Mouse Not Spanning Multiple Monitors Correc

Post by MDRMintUser »

Ok, well, I think I solved it for anyone who may have similar issues. I have been able to reboot a couple times and the behavior still works. They way I solved this issue was by adding a view port description to the display subsection of the xorg.conf file like this (the added lines are in bold):

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
# Option "nvidiaXineramaInfoOrder" "CRT-0"
Option "metamodes" "DVI-I-0: 1920x1080_60.00 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
Modes "1920x1080_60.00" "1680x1050_60.00" "1400x900_60.00" "1280x1024_60.00"
virtual 1920 1080
viewport 0 0
EndSubSection
EndSection

This seems to work consistently now and the desktop seems to be behaving pretty well. Not sure if there was a better way to do this, but it worked. I think the default viewport was being set from the main login screen, which almost always is 640x480 no matter what I do. I had that working in Mint15, but Mint16 doesn't want to behave the same way. Not sure what to do about that.
Locked

Return to “Software & Applications”