Results 1 to 2 of 2

Thread: HOW TO: Synaptics touchpad *and* a USB mouse

  1. #1
    Join Date
    Nov 2005
    Location
    Taunton, England
    Beans
    931
    Distro
    Ubuntu 10.04 Lucid Lynx

    HOW TO: Synaptics touchpad *and* a USB mouse

    This how to will get your laptop's touchpad working with a USB mouse at the same time. People who use their laptop as a replacement desktop often want to use a proper mouse when sitting at a desk, and ubuntu doesnt set this up for you if you want to use the full-featured synaptic driver as well.

    here goes:

    Code:
    stuff written in these boxes should be entered in to a terminal. applications > accessories > terminal
    Step 1

    Make sure your touchpad IS using the synaptics driver, or at least CAN use the synaptics driver. Im not entirely sure how you go about finding this out, but 95% of laptops use this type of touchpad.

    Also make sure you have a USB mouse otherwise you wont be able to test if it works.

    Step 2

    Back up the old xorg.conf file.
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.mybackup
    Step 3

    Open up your xorg.conf
    Code:
    sudo gedit /etc/X11/xorg.conf
    (note: other *buntu distributions will use a different text editor)

    this is the important bit.

    below are the RELEVANT sections from my xorg.conf file. everyones xorg.conf file looks different, so dont worry if you arent seeing what i have. All you need to do is make sure the bits that i have made colourful are in your file too. it is not necessary to change the name of your devices to "Synaptics Mouse" and "USB Mouse" but it just makes more sense that way

    it is likely that you only have one "input device" for one mouse at the moment. this is probably set up to use either the "synaptic" driver, or the generic "mouse" driver. If this is the case, then you will want to add a new device. you can safely use my ones here and just copy and paste them,

    (this is not to be entered in to a terminal, i used a code box to keep the formatting)
    Code:
    Section "InputDevice"
    	Identifier	"Synaptics Mouse"
    	Driver		"synaptics"
    	Option		"CorePointer"
    	Option		"Device"		"/dev/input/mice"
    	Option		"Protocol"		"ExplorerPS/2"
    	Option		"ZAxisMapping"		"4 5"
    	Option		"Emulate3Buttons"	"true"
    	Option		"HorizScrollDelta"	"0"
            #Option		"SHMConfig"    		"true"
    EndSection
    
    Section "InputDevice"
            Identifier  "USB Mouse"
            Driver      "mouse"
            Option      "Protocol"         "Auto"
            Option      "Device"           "/dev/input/mice"
            Option      "ZAxisMapping"     "4 5"
            Option      "Emulate3Buttons"  "false"
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
    	Screen		"Default Screen"
    	InputDevice	"Generic Keyboard"
    	InputDevice	"Synaptics Mouse" 		"CorePointer"
    	InputDevice	"USB Mouse"			"AlwaysCore"
    	InputDevice     "stylus" "SendCoreEvents"
    	InputDevice     "cursor" "SendCoreEvents"
    	InputDevice     "eraser" "SendCoreEvents"
    EndSection
    make sure that the device "identifier" is the same as what is written in the "ServerLayout" section at the end (i colour coded to make it more obvious)

    all done? good!

    save and quit

    Step 4

    copy the instructions from the bit below, about how to recover if it blows up in your face

    Step 5

    restart your X Server by pressing ctrl+alt+backspace (this will kill all your programs - be warned)

    all done!




    What if everything now doesnt work?

    if the mouse now doesnt work at all, or your computer gives you errors about the xserver, do the following

    Step 1

    move to a console by pressing ctrl+alt+f1

    Step 2

    log in

    Step 3

    Code:
    sudo cp /etc/X11/xorg.conf ~/xorg.conf
    sudo cp /etc/X11/xorg.conf.mybackup /etc/X11/xorg.conf
    startx
    -----------------------------------------------------------------------------------------------

    i cant guarantee anything about this how to. i have to the best of my ability reduced the risk of trying this, but ya know... if you bork your system messing with system files you can only blame yourself

    having said that, i see no reason why this should do any damage that cant be easily recovered from
    Last edited by Choad; January 31st, 2007 at 05:04 PM.
    sudo make me a sandwich

  2. #2
    Join Date
    Sep 2005
    Location
    Los Baños, Laguna
    Beans
    396
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOW TO: Synaptics touchpad *and* a USB mouse

    Thanks Choad.

    I had this set-up before when I was using Slackware on another computer and it was driving me nuts trying to figure it out again.

    I did have to make one change, I'm using Ksynaptics, it complained that I needed to add
    Code:
    Option		"SHMConfig"    		"on" 
    to my xorg.conf file.

    I uncommented
    Code:
    #Option		"SHMConfig"    		"true"
    and replaced true with on, works great now!

    One other thing, don't forget to load the synaptics module.

    Put this in the modules section at the beginning of your xorg.conf file.
    Code:
    Section "Module"
               Several other modules loaded here.
               Load    "synaptics"
    End Section
    Last edited by earlycj5; February 6th, 2007 at 01:55 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •