LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-03-2017, 07:32 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Disabling the touchpad.


Hi: in KDE you can enable/disable the touchpad by means of a certain key combination, by going to System Settings. Could you tell me exactly how?

Last edited by stf92; 09-03-2017 at 07:33 AM.
 
Old 09-03-2017, 10:44 AM   #2
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Seek and ye shall find.

System Settings
Input Devices
Touchpad
Carefully consider all tabs.
That is how I do it. Unplug the mouse and the touchpad works. Plug it back in and the touchpad is diabled

UGH but uploading attachments is a sore point for me on this forum.

http://my.tbaytel.net/nitesky/Screenshot1.png

Last edited by Gordie; 09-03-2017 at 11:05 AM.
 
Old 09-03-2017, 11:19 AM   #3
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
depends on the model,
but for a somehow generic way, I have a script, and call this with a custom key combo
this will toggle the touchpad on/off

Code:
#!/bin/bash

ID=$(xinput | grep TouchPad | cut -f 2 | cut -d= -f2)
STATE=$(xinput list-props $ID | grep 'Device Enabled' | cut -f3)

if [ $STATE -eq 1 ]
then
    xinput disable $ID
else
    xinput enable $ID
fi
 
1 members found this post helpful.
Old 09-03-2017, 11:24 AM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Gordie View Post
kde 5 , not in 4 what is so far the standard in Slackware ;-)
 
Old 09-03-2017, 11:45 AM   #5
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Yes. I am using Plasma 5. Was essentially the same in KDE 4. You just have to look

EDIT - Oops, my bad. I just put Alien Bob's full version of his live system to a usb stick and booted to see. Different. I remember now using a script as per at least one other post. A sneak peek for you into Plasma 5 shows that this is better addressed and in the future when KDE is upgraded in Slackware ...

Last edited by Gordie; 09-03-2017 at 08:10 PM.
 
Old 09-03-2017, 12:17 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Gordie View Post
Seek and ye shall find.

System Settings
Input Devices
Touchpad
Carefully consider all tabs.
That is how I do it. Unplug the mouse and the touchpad works. Plug it back in and the touchpad is diabled

UGH but uploading attachments is a sore point for me on this forum.

http://my.tbaytel.net/nitesky/Screenshot1.png
I do not see any 'Input Devices'. Mine is version 4.10.5
 
Old 09-03-2017, 12:51 PM   #7
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by stf92 View Post
I do not see any 'Input Devices'. Mine is version 4.10.5
Open your KDE | System Settings maximized and post a screenshot here.
 
Old 09-03-2017, 02:21 PM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Gerard Lally View Post
Open your KDE | System Settings maximized and post a screenshot here.
How do I open the screenshot?
 
Old 09-03-2017, 02:27 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I'm sending the screenshot.
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 09032017 - 04:25:53 PM.png
Views:	62
Size:	246.1 KB
ID:	25819  

Last edited by stf92; 09-03-2017 at 02:54 PM.
 
Old 09-03-2017, 02:44 PM   #10
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by stf92 View Post
How do I open the screenshot?
In KDE:

Make sure the System Settings window is open and maximized, so that all icons are showing.

Type Alt + F2

type ksnapshot and press Enter.

Take fullscreen snapshot, save it to disk and upload the file here.

Last edited by Gerard Lally; 09-03-2017 at 02:53 PM.
 
Old 09-03-2017, 02:55 PM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Please see post #9.
 
Old 09-03-2017, 03:03 PM   #12
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by stf92 View Post
Please see post #9.
Absolutely worthless screenshot, since you did not follow my instructions and maximize the window. The point of this exercise is to show ALL system settings so we can see where your Input settings are.
 
Old 09-03-2017, 07:15 PM   #13
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Open a terminal and enter
Code:
synclient TouchpadOff=1
I have seen reports complaining that it does not work anymore so your mileage may vary. On Debian Jess + KDE 4 it works. Don't recall at the moment of you have to sudo the command.

jlinkels
 
Old 09-03-2017, 07:23 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Open a terminal and enter
Code:

synclient TouchpadOff=1
That is only applicable if the synaptics driver is handling the touchpad of course. This can be verified using
Code:
grep "Using input driver" /var/log/Xorg.0.log
 
Old 09-04-2017, 01:42 AM   #15
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,621
Blog Entries: 40

Rep: Reputation: Disabled
Like a4z, #3:

Code:
#!/bin/bash
# disableTouchpad
# finds the device named $DNAME, then disables it.
#

DNAME="Touchpad"
DEV=`xinput --list | grep "$DNAME"|cut -d= -f2|cut -c1,2`
xinput -set-prop "$DEV" "Device Enabled" 0
and
Code:
#!/bin/bash
# enableTouchpad
DEVNAME="Touchpad"
DEV=`xinput --list | grep "$DEVNAME"|cut -d= -f2|cut -c1,2`
xinput -set-prop "$DEV" "Device Enabled" 1
Depending on the system (driver?), it may be “Touchpad”, “TouchPad” or something else... « PaveTactile » is a rather bad dream, though. You have to check first, with ~:$ xinput --list.

Last edited by Michael Uplawski; 09-04-2017 at 06:29 AM. Reason: more text. Boasts for fun. disables: verb missing.
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:02 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