LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Disabling the touchpad. (https://www.linuxquestions.org/questions/slackware-14/disabling-the-touchpad-4175613158/)

stf92 09-03-2017 07:32 AM

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?

Gordie 09-03-2017 10:44 AM

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

a4z 09-03-2017 11:19 AM

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


a4z 09-03-2017 11:24 AM

Quote:

Originally Posted by Gordie (Post 5755193)

kde 5 , not in 4 what is so far the standard in Slackware ;-)

Gordie 09-03-2017 11:45 AM

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 ...

stf92 09-03-2017 12:17 PM

Quote:

Originally Posted by Gordie (Post 5755193)
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

Gerard Lally 09-03-2017 12:51 PM

Quote:

Originally Posted by stf92 (Post 5755224)
I do not see any 'Input Devices'. Mine is version 4.10.5

Open your KDE | System Settings maximized and post a screenshot here.

stf92 09-03-2017 02:21 PM

Quote:

Originally Posted by Gerard Lally (Post 5755236)
Open your KDE | System Settings maximized and post a screenshot here.

How do I open the screenshot?

stf92 09-03-2017 02:27 PM

1 Attachment(s)
I'm sending the screenshot.

Gerard Lally 09-03-2017 02:44 PM

Quote:

Originally Posted by stf92 (Post 5755259)
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.

stf92 09-03-2017 02:55 PM

Please see post #9.

Gerard Lally 09-03-2017 03:03 PM

Quote:

Originally Posted by stf92 (Post 5755267)
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.

jlinkels 09-03-2017 07:15 PM

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

ferrari 09-03-2017 07:23 PM

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

Michael Uplawski 09-04-2017 01:42 AM

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.


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