Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two screens connected to my system and I am working in Ubuntu Linux. Is it possible to make the mouse work only on one screen and to make it stop going in the second one?

share|improve this question
up vote 1 down vote accepted

I found this from a similar question:

The trick is to separate the 2 screen by a virtual space in xorg.conf , then use a tool called mouse-switchscreen to "jump" between the screens.

My config: Ubuntu 10.04 x64, ATI Mobility RadeonHD , ATI Catalyst Control Center correctly installed, screens in mode "Single Display Desktop" (each screen has it's own Desktop)

These are the steps that I made:

  1. Download dualscreen-mouse-utils from http://digamma.cs.unm.edu/trac.dmohr/wiki/DualscreenMouseUtils
  2. Decompress the package, in terminal type: make , you may need to xorg-dev package (in Ubuntu: sudo apt-get install xorg-dev )
  3. Copy the mouse-switchscreen binary to folder included in PATH (I used /usr/bin)
  4. Start gconf-editor (Alt-F2), in apps\metacity\keybinding_commands choose an empty command, and add: mouse-switchscreen -f 1
  5. In gconf-editor apps\metacity\global_keybindings choose the same number for run_command_n and add a shortcut of your choice, personally I entered: <Super>Tab =Win+Tab
  6. If everything is working, Edit /etc/X11/xorg.conf (better make a backup before), in the "ServerLayout" section, change the position of a screen to make the two separate. ONE pixel is enough :D

You can now sudo /etc/init.d/gdm restart and enjoy. Of course, Win+Tab to switch the screen. You can also try mouse-wrapscreen, mouse-wrapscreen -h for more info.

All credits goes to: David Antliff & David Mohr for mouse-switchscreen, and the Linux community for the infos.

share|improve this answer
    
Thank you nhinkle. I know my formatting is atrocious. – Jared Tritsch Oct 9 '12 at 16:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .