Mouse stuck on 2nd Screen (KDE 4.1. Nvidia Xinerama)

So, basically I have my dual output Nvidia 7600GS gfx card hooked up to
two LCD monitors. I wanted to have two linked desktops, where I could
send some windows to the other monitor, but apparently Xinerama is as
close as you can get…anyways…

my computer:

Nvida 7600GS using the Nvidia binary driver (current)
Opensuse 11.0 with all updates installed
KDE 4.1.3 the most current version

So it took me a while but i got Xinerama kinda working.

Only problem is either I cannot get my mouse on to the other monitor at
all, or if I do I cannot move it back.

If I use this line in my xorg.conf I cannot move it on to the second
screen

Code:

Screen 1 “Screen1” LeftOf “Screen0”

If I use this line when I move it on to the second screen it gets
“stuck” on that screen

Code:

Screen 1 “Screen1” RightOf “Screen0”

The only other thing I can think that might be related to this is that
SOMETIMES when I start up my mouse will not work, and the only way to
fix this is to reboot.

Because I know the secret is here somewhere…

Code:

nvidia-settings: X configuration file generated by nvidia-settings

nvidia-settings: version 1.0 (buildmeister@builder57) Thu Jul 17 18:40:12 PDT 2008

/…/

SaX generated X11 config file

Created on: 2008-11-13T16:59:39-0600.

Version: 8.1

Contact: Marcus Schaefer <sax@suse.de>, 2005

Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>

Automatically generated by [ISaX] (8.1)

PLEASE DO NOT EDIT THIS FILE!

Section “ServerLayout”
Identifier “Layout[all]”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
InputDevice “Keyboard[0]” “CoreKeyboard”
InputDevice “Mouse[0]” “CorePointer”
Option “Clone” “off”
Option “Xinerama” “on”
EndSection

Section “Files”
InputDevices “/dev/gpmdata”
InputDevices “/dev/input/mice”
FontPath “/usr/share/fonts/misc:unscaled”
FontPath “/usr/share/fonts/local”
FontPath “/usr/share/fonts/75dpi:unscaled”
FontPath “/usr/share/fonts/100dpi:unscaled”
FontPath “/usr/share/fonts/Type1”
FontPath “/usr/share/fonts/URW”
FontPath “/usr/share/fonts/Speedo”
FontPath “/usr/share/fonts/PEX”
FontPath “/usr/share/fonts/cyrillic”
FontPath “/usr/share/fonts/latin2/misc:unscaled”
FontPath “/usr/share/fonts/latin2/75dpi:unscaled”
FontPath “/usr/share/fonts/latin2/100dpi:unscaled”
FontPath “/usr/share/fonts/latin2/Type1”
FontPath “/usr/share/fonts/latin7/75dpi:unscaled”
FontPath “/usr/share/fonts/baekmuk:unscaled”
FontPath “/usr/share/fonts/japanese:unscaled”
FontPath “/usr/share/fonts/kwintv”
FontPath “/usr/share/fonts/truetype”
FontPath “/usr/share/fonts/uni:unscaled”
FontPath “/usr/share/fonts/CID”
FontPath “/usr/share/fonts/ucs/misc:unscaled”
FontPath “/usr/share/fonts/ucs/75dpi:unscaled”
FontPath “/usr/share/fonts/ucs/100dpi:unscaled”
FontPath “/usr/share/fonts/hellas/misc:unscaled”
FontPath “/usr/share/fonts/hellas/75dpi:unscaled”
FontPath “/usr/share/fonts/hellas/100dpi:unscaled”
FontPath “/usr/share/fonts/hellas/Type1”
FontPath “/usr/share/fonts/misc/sgi:unscaled”
FontPath “/usr/share/fonts/xtest”
FontPath “/opt/kde3/share/fonts”
EndSection

Section “Module”
Load “dbe”
Load “type1”
Load “freetype”
Load “extmod”
Load “glx”
EndSection

Section “ServerFlags”
Option “AllowMouseOpenFail” “on”
Option “ZapWarning” “on”
Option “Xinerama” “1”
EndSection

Section “InputDevice”
Identifier “Keyboard[0]”
Driver “kbd”
Option “Protocol” “Standard”
Option “XkbLayout” “us”
Option “XkbModel” “microsoftpro”
Option “XkbRules” “xfree86”
EndSection

Section “InputDevice”
Identifier “Mouse[0]”
Driver “evdev”
Option “Device” “/dev/input/event2”
Option “Name” “Logitech USB-PS/2 Optical Mouse”
Option “CorePointer”
EndSection

Section “Modes”
Identifier “Modes[0]”
ModeLine “1280x1024” 108 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection

Section “Monitor”
Identifier “Monitor[0]”
VendorName “SNY”
ModelName “SONY SDM-HS75P”
UseModes “Modes[0]”
DisplaySize 338 270
HorizSync 30.0 - 65.0
VertRefresh 43.0 - 63.0
Option “CalcAlgorithm” “XServerPool”
Option “DPMS”
Option “PreferredMode” “1280x1024”
EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Sony SDM-HS75P”
HorizSync 28.0 - 65.0
VertRefresh 57.0 - 63.0
EndSection

Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “COMPAQ 1825”
HorizSync 30.0 - 82.0
VertRefresh 56.0 - 76.0
EndSection

Section “Device”
Identifier “Device[0]”
Driver “nvidia”
VendorName “NVidia”
BoardName “GeForce 7600 GS”
BusID “1:0:0”
EndSection

Section “Device”
Identifier “Videocard0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce 7600 GS”
BusID “PCI:1:0:0”
Screen 0
EndSection

Section “Device”
Identifier “Videocard1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce 7600 GS”
BusID “PCI:1:0:0”
Screen 1
EndSection

Section “Screen”
Identifier “Screen[0]”
Device “Device[0]”
Monitor “Monitor[0]”
DefaultDepth 24
SubSection “Display”
Depth 15
Modes “1280x1024” “1280x960” “1024x768” “800x600”
EndSubSection
SubSection “Display”
Depth 16
Modes “1280x1024” “1280x960” “1024x768” “800x600”
EndSubSection
SubSection “Display”
Depth 24
Modes “1280x1024” “1280x960” “1024x768” “800x600”
EndSubSection
SubSection “Display”
Depth 8
Modes “1280x1024” “1280x960” “1024x768” “800x600”
EndSubSection
EndSection

Section “Screen”
Identifier “Screen0”
Device “Videocard0”
Monitor “Monitor0”
DefaultDepth 24
Option “TwinView” “0”
Option “metamodes” “DFP: nvidia-auto-select +0+0”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1”
Device “Videocard1”
Monitor “Monitor1”
DefaultDepth 24
Option “TwinView” “0”
Option “metamodes” “CRT: nvidia-auto-select +0+0”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Extensions”
Option “Composite” “on”
EndSection


thanks

doss


dossjh

dossjh’s Profile: http://forums.opensuse.org/member.php?userid=646
View this thread: http://forums.opensuse.org/showthread.php?t=401110

I have basically the same setup but with the 7600GT instead of GS. I
set up mine using the nvidia-settings program and setting up twinview in
the “X Server Display Configuration” tab.

In case it helps, here is my xorg.conf that is working. Comparing
them, it seems like you should have the xinerama turned off and instead
use the Nvidia twinview, but I’m just guessing.

Code:

nvidia-settings: X configuration file generated by nvidia-settings

nvidia-settings: version 1.0 (buildmeister@builder62) Mon May 19 00:30:30 PDT 2008

/…/

SaX generated X11 config file

Created on: 2008-06-21T03:50:05-0700.

Version: 8.1

Contact: Marcus Schaefer <sax@suse.de>, 2005

Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>

Automatically generated by [ISaX] (8.1)

PLEASE DO NOT EDIT THIS FILE!

Section “ServerLayout”
Identifier “Layout[all]”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard[0]” “CoreKeyboard”
InputDevice “Mouse[1]” “CorePointer”
Option “Clone” “off”
Option “Xinerama” “off”
EndSection

Section “Files”
InputDevices “/dev/gpmdata”
InputDevices “/dev/input/mice”
FontPath “/usr/share/fonts/misc:unscaled”
FontPath “/usr/share/fonts/local”
FontPath “/usr/share/fonts/75dpi:unscaled”
FontPath “/usr/share/fonts/100dpi:unscaled”
FontPath “/usr/share/fonts/Type1”
FontPath “/usr/share/fonts/URW”
FontPath “/usr/share/fonts/Speedo”
FontPath “/usr/share/fonts/PEX”
-----------snipped out fonts so it would fit ------------------
FontPath “/usr/share/fonts/misc/sgi:unscaled”
FontPath “/usr/share/fonts/xtest”
FontPath “/opt/kde3/share/fonts”
EndSection

Section “Module”
Load “dbe”
Load “type1”
Load “freetype”
Load “extmod”
Load “glx”
EndSection

Section “ServerFlags”

Removed Option “Xinerama” “0”

Removed Option “Xinerama” “1”

Option “AllowMouseOpenFail” “on”
Option “ZapWarning” “on”
Option “Xinerama” “0”
EndSection

Section “InputDevice”
Identifier “Keyboard[0]”
Driver “kbd”
Option “Protocol” “Standard”
Option “XkbLayout” “us”
Option “XkbModel” “microsoftpro”
Option “XkbRules” “xfree86”
EndSection

Section “InputDevice”
Identifier “Mouse[1]”
Driver “mouse”
Option “Buttons” “5”
Option “Device” “/dev/input/mice”
Option “Name” “Logitech M-UV69a Optical Wheel Mouse”
Option “Protocol” “explorerps/2”
Option “Vendor” “Sysp”
Option “ZAxisMapping” “4 5”
EndSection

Section “Modes”
Identifier “Modes[0]”
ModeLine “1280x1024” 108 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection

Section “Monitor”
Identifier “Monitor[0]”
VendorName “HSD”
ModelName “JC199D”
UseModes “Modes[0]”
DisplaySize 376 301
HorizSync 30.0 - 83.0
VertRefresh 43.0 - 76.0
Option “CalcAlgorithm” “XServerPool”
Option “DPMS”
Option “PreferredMode” “1280x1024”
EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “HSD JC199D”
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 76.0
EndSection

Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “DELL 1704FPV”
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
EndSection

Section “Device”
Identifier “Device[0]”
Driver “nvidia”
VendorName “NVIDIA”
BoardName “GeForce 7600 GT”
BusID “1:0:0”
EndSection

Section “Device”
Identifier “Videocard0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce 7600 GT”
EndSection

Section “Device”
Identifier “Videocard1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce 7600 GT”
BusID “PCI:1:0:0”
Screen 1
EndSection

Section “Screen”
Identifier “Screen[0]”
Device “Device[0]”
Monitor “Monitor[0]”
DefaultDepth 24
SubSection “Display”
Depth 15
Modes “1280x1024” “1280x960” “1280x800” “1152x864” “1280x768” “1280x720” “1024x768” “1280x600” “1024x600” “800x600” “768x576” “640x480”
EndSubSection
SubSection “Display”
Depth 16
Modes “1280x1024” “1280x960” “1280x800” “1152x864” “1280x768” “1280x720” “1024x768” “1280x600” “1024x600” “800x600” “768x576” “640x480”
EndSubSection
SubSection “Display”
Depth 24
Modes “1280x1024” “1280x960” “1280x800” “1152x864” “1280x768” “1280x720” “1024x768” “1280x600” “1024x600” “800x600” “768x576” “640x480”
EndSubSection
SubSection “Display”
Depth 8
Modes “1280x1024” “1280x960” “1280x800” “1152x864” “1280x768” “1280x720” “1024x768” “1280x600” “1024x600” “800x600” “768x576” “640x480”
EndSubSection
EndSection

Section “Screen”

Removed Option “TwinView” “0”

Removed Option “metamodes” “DFP-0: 1280x1024 +0+0; DFP-0: 1280x960 +0+0; DFP-0: 1152x864 +0+0; DFP-0: 1024x768 +0+0; DFP-0: 800x600 +0+0; DFP-0: 640x480 +0+0”

Identifier “Screen0”
Device “Videocard0”
Monitor “Monitor0”
DefaultDepth 24
Option “TwinView” “1”
Option “metamodes” “DFP-0: 1280x1024 +0+0, DFP-1: nvidia-auto-select +1280+0; DFP-0: 1280x960 +0+0; DFP-0: 1152x864 +0+0; DFP-0: 1024x768 +0+0; DFP-0: 800x600 +0+0; DFP-0: 640x480 +0+0”
EndSection

Section “Screen”
Identifier “Screen1”
Device “Videocard1”
Monitor “Monitor1”
DefaultDepth 24
Option “TwinView” “0”
Option “metamodes” “DFP-1: nvidia-auto-select +0+0”
EndSection

Section “Extensions”
Option “Composite” “on”
EndSection



elserj

elserj’s Profile: http://forums.opensuse.org/member.php?userid=2799
View this thread: http://forums.opensuse.org/showthread.php?t=401110

First. Thank you for your reply.

I had Twinview set up, but it doesnt accomplish exactly what I want.
The major difference is with Xinerama the system KNOWS you have two
monitors. With Twinview it just thinks its one big monitor…so when
you maximize something…it looks like crap.

Neways, some further details…

i dont think this problem is kde 4.1.3 related. I installed gnome to
see if it would work, and i also tried icewm and such.

I read somewhere on the net that kdm starts up and ‘controls’ the
monitors before logon…can anyone confirm this and if so how can i try
gdm or xdm.

thanks for any help

doss


dossjh

dossjh’s Profile: http://forums.opensuse.org/member.php?userid=646
View this thread: http://forums.opensuse.org/showthread.php?t=401110

Well, I am not an expert in configuring X, but my setup does work the
way you are asking for. When I maximize a program, it only fills one
screen and I can drag windows from one screen to the other. I am also
running KDE 4.1.3.

I am attaching an image of my desktop and the nvidia-setting program
with the settings I am using. Note that when I maximize the window, it
does only fill the one monitor.

[image: http://www.physics.oregonstate.edu/~elserj/snapshot1.png]

I’m sure it is a setting somewhere in xorg.conf, but I couldn’t tell
you for sure which one. If it were me, I would backup my xorg.conf and
then try the nvidia-settings program (as root). If it still wasn’t
right, I would then try to hand-edit xorg.conf and change the sections
that are related to the graphics sections (the serverlayout, serverflags
and screen sections).

Hope this helps.


elserj

elserj’s Profile: http://forums.opensuse.org/member.php?userid=2799
View this thread: http://forums.opensuse.org/showthread.php?t=401110

ok…i got it working…thanks for the tip…i think the key was the
metamodes line.

thanks alot!!

doss


dossjh

dossjh’s Profile: http://forums.opensuse.org/member.php?userid=646
View this thread: http://forums.opensuse.org/showthread.php?t=401110