How To: Automatically Disable Touchpad While Typing

Discussion in 'Linux' started by N6546R, Sep 13, 2008.

  1. N6546R

    N6546R

    Joined:
    Aug 27, 2008
    Messages:
    126
    Likes Received:
    0
    The keyboard on the AA1 is pretty small, and I found that I was constantly inadvertently brushing against the touchpad while typing, sedning the cursor - and my text - off into random places in my document.

    Fortunately there's an easy way to prevent this, and you don't even have to install anything. The Synaptics Daemon (syndaemon) will temporarily disable the touchpad while you type, and enable it a configurable number of seconds after you stop typing.

    To start the daemon, open a terminal or Alt-F2 to get a command line and enter:

    Code:
    /usr/bin/syndaemon -i 1 -d
    This will start the daemon, which will pause for 1 second (the -i parameter, choose whatever length you like). The -d switch causes syndaemon to run in the background.

    If you want to start the daemon every time you log on, add the following lines to your .bashrc file (mousepad /home/user/.bashrc)

    Code:
    #Start up synaptics daemon
    if [ ! -f /tmp/synd.lock ];then
            /usr/bin/syndaemon -i 1 -d
            touch /tmp/synd.lock
    fi
    
    No need to reboot, just start up a terminal and your daemon should start (.bashrc is executed every time a new bash shell is launched).

    Perry
    http://www.kidpub.com
     
    N6546R, Sep 13, 2008
    #1
  2. N6546R

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    Very handy, thanks! This should also work well for those running Ubuntu and other distros on the Aspire One because it's a synaptics setting :)
     
    annafil, Sep 13, 2008
    #2
  3. N6546R

    N6546R

    Joined:
    Aug 27, 2008
    Messages:
    126
    Likes Received:
    0
    An update, I've moved startup of syndaemon from .bashrc to the xfce-session autostart, which seems more logical, and you don't have to worry about creating a lock file in /tmp.

    Start the autostart editor, from a terminal or Atl-F2:

    Code:
    xfce4-autostart-editor
    
    [attachment=1:33gukfe7]auto1.png[/attachment:33gukfe7]

    Click Add, then fill in the detail s for the daemon:

    [attachment=0:33gukfe7]auto2.png[/attachment:33gukfe7]

    The daemon will autostart at next login.

    Perry
    www.kidpub.com
     
    N6546R, Sep 16, 2008
    #3
  4. N6546R

    micha

    Joined:
    Aug 29, 2008
    Messages:
    52
    Likes Received:
    0
    Location:
    NH, USA
    I haven't had any problems yet but I probably will, knowing myself. Thanks for letting us know this solution!
     
    micha, Sep 16, 2008
    #4
  5. N6546R

    Zorofroozo

    Joined:
    Sep 28, 2008
    Messages:
    89
    Likes Received:
    0
    seems to work:)

    thx a lot mate :D
     
    Zorofroozo, Oct 21, 2008
    #5
  6. N6546R

    admin_one

    Joined:
    Sep 1, 2008
    Messages:
    27
    Likes Received:
    0
    I shut off the bottom 4 choices in the autostart dialog and my boot time speeded right up.

    What is compiz, and why is it autostarting?

    Is there a list or source of any/all other xvce4 dialogs?

    much thanks
     
    admin_one, Oct 21, 2008
    #6
  7. N6546R

    admin_one

    Joined:
    Sep 1, 2008
    Messages:
    27
    Likes Received:
    0
    I know what compiz is, don't need it to autostart either...

    what other dialogs are available?

    thanks
     
    admin_one, Oct 21, 2008
    #7
  8. N6546R

    donec

    Joined:
    Sep 11, 2008
    Messages:
    952
    Likes Received:
    0
    The Fn+F7 key combination will toggle the touch pad and once the touch pad is disabled it will stay disabled even through booting at least in Ubuntu and Mandriva.
     
    donec, Oct 29, 2008
    #8
  9. N6546R

    olegna

    Joined:
    Jan 5, 2009
    Messages:
    2
    Likes Received:
    0
    Hello,

    those attachements don't work anymore, and I don't know how to make the code working after reboot. May you explain it again? I've tried to add /home/user/.bashrc as a command in the autostart session, but with no success.

    Thanks in advance for your help!
     
    olegna, Jan 19, 2009
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.