Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: HOWTO: Temporarily Disable Touchpad While Typing

  1. #1
    Join Date
    Sep 2007
    Location
    Fort Wayne, IN
    Beans
    Hidden!
    Distro
    Kubuntu

    HOWTO: Temporarily Disable Touchpad While Typing

    As I have gone back to using Linux once again I installed Ubuntu 9.04 “Jaunty” on my Acer Aspire One netbook. One thing that I noticed is when typing my thumb or part of my hand would touch the mouse sensor pad and click it. Sending whatever I was typing to another place. The easy fix was to disable clicking via the touch pad but I found that I was too used to it so here is a easy script to fix the problem.

    You will need to do a couple of things before it will work.

    1. You need to have tapping enabled.
    2. you will need to edit your xorg.conf to reflect:

    Code:
    SHMConfig “on”
    If you need help with this open the terminal and type:
    Code:
    sudo gedit /etc/X11/xorg.conf
    Scroll to the bottom of the page. Start a new section and add:

    Code:
    SHMConfig "on"
    Okay, once this is done we will be using a little tool called syndaemon. if you want to know more about this tool you can man syndaemon. But, my basic command should do the trick for you.

    Open your terminal again and type in the following:

    Code:
    syndaemon -d -t -i 6
    Okay, I’ll go through what this did for you.
    # the -d flag tells syndaemon to run all the time and monitor the keyboard
    # the -t flag tells it to only disable tapping and scrolling, not pointer movement.
    # the -i flag is how long (in seconds) to disable the touchpad *after* the last keypress

    So in a nutshell this will monitor the keyboard for activity and disable tapping for a set number of seconds. You will still be able to have pointer movement but, the click function will be temporally disabled. In the example above I have it set for 6 seconds.

    You could try adding that command to your gnome sessions (System > Preferences > Sessions) to have it load at gnome login. This way it will always startup and run.

    NOTE: You do NOT have to be root or use the sudo command for this to work.

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    This is a nice trick for most laptops / netbooks.

    Just for clarification, the syntax in /etc/X11/xorg.conf is a bit off in the original post.

    Using any editor, edit /etc/X11/xorg.conf

    you can use :
    sudo nano /etc/X11/xorg.conf
    sudo -e /etc/X11/xorg.cong
    gksu gedit /etc/X11/xorg.conf , or
    kdesu kate /etc/X11/xorg.conf

    In that file you are looking for the Section "InputDevice" for your touchpad (usually identified by the Driver "synaptics" )

    Add the option in that section, like this:

    Code:
    Section "InputDevice"
    Driver "synaptics"
    Option "SHMConfig" "on"
    EndSection
    You may have additional options in that section, just add in the SHMConfig line.'

    Then restart X

    Personally I like

    Code:
    syndaemon -d  -i 2
    Without the -t it disables moving the cursor (mouse) which is annoying if you are typing =)
    Also two seconds (-i 2) is agonizing enough , 6 seconds is forever.

    Otherwise very nice post, thank you Wonderly
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Feb 2009
    Beans
    9

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    Neither variety worked for me. My X wouldn't start.

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    Sorry you are having problems. Can you post either your error messages or better your xorg.conf
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #5
    Join Date
    Aug 2006
    Location
    Hong Kong or Northern NM
    Beans
    322
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    Adding that section to my xorg.conf crashed X on restart.

  6. #6
    Join Date
    Aug 2006
    Location
    Hong Kong or Northern NM
    Beans
    322
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    It turns out that enabling SHMConfig is now done differently for Jaunty and forwards. It is not done through xorg.conf. Also syndaemon does not necessarily need to have SHMConfig enabled for it to work correctly. It works fine without enabling SHMConfig on my laptop. Here's all the good stuff:

    https://help.ubuntu.com/community/Sy...hpad#shmconfig

    For me adding a startup command to disable tapping for one second after typing was simple:

    Code:
    syndaemon -d -t -i 1
    Last edited by treesurf; August 28th, 2009 at 04:17 PM.

  7. #7
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    Thank you for the update. At the moment it works for me in jaunty (9.04) with the xorg.conf modifications I posted.

    Fedora, however, has used the method you linked (hal) for some time so I am not surprised to see ubuntu is changing.

    In Fedora hal and xorg edits conflict, so you need to use the method on the Ubuntu wiki. I suspect this will then be the case in 9.10 (Karmic).
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  8. #8
    Join Date
    Feb 2009
    Beans
    9

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    Quote Originally Posted by treesurf View Post
    It turns out that enabling SHMConfig is now done differently for Jaunty and forwards. It is not done through xorg.conf. Also syndaemon does not necessarily need to have SHMConfig enabled for it to work correctly. It works fine without enabling SHMConfig on my laptop. Here's all the good stuff:

    https://help.ubuntu.com/community/Sy...hpad#shmconfig

    For me adding a startup command to disable tapping for one second after typing was simple:

    Code:
    syndaemon -d -t -i 1
    Thanks for the info and link. I was able to get this to work. I had to use the -S option to make my system use the syndaemon.

    A year of touchpad annoyance is over at last!

  9. #9
    Join Date
    Sep 2009
    Beans
    12

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    try a gui app called touchfreeze 0.2.2 it works well for me its in the repositories


    dlr

  10. #10
    Join Date
    Oct 2009
    Location
    Alabama, USA
    Beans
    23
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Temporarily Disable Touchpad While Typing

    Thanks for that. The touch freeze program would not work for me but this worked great.

Page 1 of 2 12 LastLast

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
  •