LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-30-2013, 11:56 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Rep: Reputation: Disabled
can I make Linux deactivate laptop's touchpad?


I assume there's some Linux command to deactivate (and reactivate) a laptop's touchpad or other pointing device? I'm using my laptop only on desks and tables, and used the BIOS editor to deactivate the touchpad because I don't need or want it. (This laptop is used, and the trackball is erratic--that's why I bothered to shut it off.) But if I ever need to use it because I don't have a hard surface to use the mouse, I'd have to reboot to get into the BIOS again. I do also have one of those soft round plugs in the middle of the keyboard resembling a pencil eraser (I forget what they're called), but I don't like it any more than a touchpad. (Who prefers laptop native pointing devices to a mouse?)

Last edited by newbiesforever; 11-30-2013 at 11:58 AM.
 
Old 11-30-2013, 02:16 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you have a Synaptics touchpad you can use this little script to toggle the touchpad on/off:
Code:
#!/bin/bash

synclient TouchpadOff=$(synclient -l|grep -c 'TouchpadOff.*=.*0')
I have set up a keyboard shortcut to run it, works fine here.
 
Old 11-30-2013, 08:43 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Some laptops have a hardware key to toggle the touchpad on and off. On my Acer Travelmate, it's one of the function keys and has an icon that looks like a football field with a rocket shot into it--it's supposed to be a touchpad with finger on it, but you'd never crack the code without help.

My Dell does not have such a key.
 
Old 12-01-2013, 06:35 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Another useful script;
Code:
$ cat touchpad.sh
#!/bin/bash

# touchpad.sh Written by Atanas S / Siteground Support Team

# First we need to get the device ID from the xinput
# if it does not work for you, you may need to set the cut -f option to another number
# I would suggest that you test the command in your terminal first to see the result
# It should output an integer usually between 8-15, at least on my lap top :D

getdev=`xinput list |grep pointer |grep PS |cut -f 2`
devid=${getdev/id=/}

#Second we need to get the device status, if it is enabled or not

# if it does not work for you, you may need to set the cut -f option to another number
# I would suggest that you test the command in your terminal first to see the result
# It should output 0 or 1

getstatus=`xinput list-props $devid |grep 'Device Enabled' |cut -f 3`

#once we get the device status depending on the status we set it the other way arround
        if [ "$getstatus" == "1" ]; then
        newstatus="0"
        else
        newstatus="1"
        fi
`xinput set-prop $devid "Device Enabled" $newstatus`
This should work for any touchpad.
 
Old 12-01-2013, 07:04 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Whoot - ta muchly @onebuck
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how how to make laptop touchpad work in Fedora 16 jamesbon Fedora 4 02-15-2012 02:11 PM
Using the laptop touchpad with Fedora Linux on an hp 6730b laptop jai0601 Linux - Laptop and Netbook 4 11-16-2010 08:39 AM
how can i deactivate the integrated keyboard of my laptop hp pavilion ze5500? the_rastaman Gentoo 1 05-31-2010 05:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration