Sorry for digging up such an old topic, but I found it googling for a mouse switching program.
To get the two seperate screens set up so the mouse is 'stuck' in one of the is pretty simple. Just put the following in your x.org conf file. What this does is tells X to create two separate screens in the session with the second one being 2000 pixels away from the first. My understanding is that so long as your resolution is less than 2000 the mouse cursor can't jump the gap and is stuck.
Code:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 0 2000
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Then you need to create a second "Device" and "Screen" sections. Just make a copy of your existing versions of those sections and make sure they have different Identifiers and that the devices are attached to Screen 0 and 1 and the screen sections are attached to different devices. Mine is below.
Code:
Section "Device"
Identifier "Videocard0 out 0"
Driver "nvidia"
Option "RenderAccel" "true"
Option "UseDisplayDevice" "DFP-0"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9500 GT"
Screen 0
EndSection
Section "Device"
Identifier "Videocard0 out 1"
Driver "nvidia"
Option "RenderAccel" "true"
Option "UseDisplayDevice" "DFP-1"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9500 GT"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0 out 0"
Monitor "Monitor0"
DefaultDepth 24
Option "NoLogo" "true"
SubSection "Display"
Depth 24
Viewport 0 0
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Videocard0 out 1"
Monitor "Monitor1"
DefaultDepth 24
Option "NoLogo" "true"
SubSection "Display"
Depth 24
Viewport 0 0
EndSubSection
EndSection
As to the mouse switching program the Gentoo Dual Monitors wiki has one that didn't work for me: here. It also had a link to a project that had a few different ones listed, but all the links were dead. I'll see if I can round one up somewhere.
EDIT:
It looks like the dualscreen-mouse-utils script hasn't been unavailable for long, perhaps just a small glitch and it will be back.
Bookmarks