Disable touch of the tablet in Ubuntu Unity 14.04
Solution 1
in my case worked this:
xsetwacom -v --set 'Wacom Intuos Pro M (WL) Finger touch' gesture off
test
xsetwacom -v --set 'Wacom Bamboo 16FG 4x5 Finger touch' gesture off
Solution 2
Rather than rely on fixed character positions and cut, you could use sed instead, like this:
xsetwacom --set `xsetwacom --list | grep TOUCH | sed -r "s/.*id: *([0-9]*).*/\1/"` touch off
Solution 3
First off, you still need to add the new command to your autostart configuration so that it's disabled to start with:
xsetwacom --set `xsetwacom --list | grep TOUCH | cut -c 40-42` touch off
Then try putting the following into a new file: /etc/pm/power.d/99_touchdisable
:
#!/bin/bash
ac_power ()
{
xsetwacom --set `xsetwacom --list | grep TOUCH | cut -c 40-42` touch off
}
battery_power ()
{
xsetwacom --set `xsetwacom --list | grep TOUCH | cut -c 40-42` touch off
}
Then run sudo chmod 755 /etc/pm/power.d/99_touchdisable
Restart your tablet and try unplugging/plugging in your tablet.
If it doesn't work, check to see if you have different power profiles enabled. If it still isn't working, run sudo apt-get install pm-utils
and try running sudo pm-powersave <true/false>
to get it to run the script.
Related videos on Youtube
SNH
Updated on September 18, 2022Comments
-
SNH over 1 year
I've searched beforehand and the only suggestion I've found is this one but it doesn't work, at least not on my system (Ubuntu Unity 14.04 x64).
I need to disable the touch on my WACOM Bamboo Manga CTH-470 tablet so only the pen tip and eraser are recognized and not my hand when I accidentally touch it.
I know of this temporary solution:
xsetwacom --list
to list the output of the tablet (example)
inoki@innerdistance-Satellite-L650:~$ xsetwacom --list Wacom Bamboo 16FG 4x5 Pen stylus id: 11 type: STYLUS
Wacom Bamboo 16FG 4x5 Finger touch id: 12 type: TOUCH
Wacom Bamboo 16FG 4x5 Pen eraser id: 16 type: ERASER
Wacom Bamboo 16FG 4x5 Finger pad id: 17 type: PADthen
xsetwacom --set # touch off
Using
inoki@innerdistance-Satellite-L650:~$ xsetwacom --list | grep TOUCH | cut -d ' ' -f 8 TOUCH inoki@innerdistance-Satellite-L650:~$
has shown only the "TOUCH" word exactly as above.
I need to make it permanent, so I don't have to insert the command every time I want to work with my tablet.
-
SNH almost 10 yearsFollowed your instructions, restarted the computer, re-plugged the tablet but still it enables the touch by default.
-
hal7df almost 10 yearsI doubt it'll do much but try removing the
exec
keyword (I'm not exactly the world's best scripter...) -
SNH almost 10 yearsnope, nothing changed.
-
hal7df almost 10 yearsI changed my answer...try it now.
-
SNH almost 10 yearsDidn't work, tried everything you suggested. As a side effect it removed transparency from the my-weather-indicator applet on the desktop.
-
hal7df almost 10 yearsHmm...if you run the command in between the ```` signs, do you get the ID of the device back?
-
SNH almost 10 yearsI only get the TOUCH word displayed, no numerical ID.
-
hal7df almost 10 yearsOkay. Could you please edit your question with the proper formatting of the example output I asked for earlier?
-
hal7df almost 10 yearsTry changing the '8’ after the
-f
flag to a 6. -
SNH almost 10 yearsNope, doesn't work.
-
SNH almost 10 years
inoki@innerdistance-Satellite-L650:~$ xsetwacom --set xsetwacom --list | grep TOUCH | cut -d ' ' -f 6 touch off Cannot find device 'touch'.
-
SNH almost 10 years
inoki@innerdistance-Satellite-L650:~$ xsetwacom --list Wacom Bamboo 16FG 4x5 Finger touch id: 11 type: TOUCH Wacom Bamboo 16FG 4x5 Finger pad id: 12 type: PAD Wacom Bamboo 16FG 4x5 Pen stylus id: 16 type: STYLUS Wacom Bamboo 16FG 4x5 Pen eraser id: 17 type: ERASER
-
SNH almost 10 years
inoki@innerdistance-Satellite-L650:~$ xsetwacom --set xsetwacom --list | grep TOUCH | cut -d ' ' -f 6 touch off Cannot find device 'touch'. inoki@innerdistance-Satellite-L650:~$
-
hal7df almost 10 yearsOkay... change the 6 to a 7?
-
SNH almost 10 yearsStill not working. Output is:
Unknown parameter name 'type:'.
-
hal7df almost 10 yearsOkay, new command. See if this command gets the ID number by itself:
xsetwacom --list | grep TOUCH | cut -c 41,42
-
SNH almost 10 yearsThe output is only "1", see:
inoki@innerdistance-Satellite-L650:~$ xsetwacom --list | grep TOUCH | cut -c 41,42 1
-
hal7df almost 10 yearsOkay...change the
41,42
to42,43
-
SNH almost 10 yearsThe output is only "t".
-
hal7df almost 10 years
xsetwacom --list | grep TOUCH | cut -c 41-42
? -
SNH almost 10 yearsNope, that was the 42,43, the 41,42 showed only "1".
-
hal7df almost 10 yearsNo, sorry, I wanted to go back to
41
and42
, changing the comma to a dash. -
SNH almost 10 yearsStill the output is only "1".
-
hal7df almost 10 yearsLet us continue this discussion in chat.
-
SNH almost 9 yearsNot really. The by me marked solution works like a charm and, most importantly, it is memorable. Your suggested method might work, but can easily be forgotten or mistyped. The working method can be applied by just creating a launcher and triggered each time the tablet is used. Thanks for the effort though.
-
iGadget over 8 yearsIf you, like me, experience that while this command disables gesture but not tapping (i.e. finger 'clicks'), run the command again but then replace 'gesture' with 'touch'. So in my case: xsetwacom -v --set 'Wacom Intuos PT S Finger touch' touch off
-
Timtro about 8 years@Patrik This solution can be pasted into a script just as easily, and is generic, so it will work for other wacom tablets that have a 'TOUCH' device.
-
Maxweel over 7 yearsI edited this older thread to show how to use the scripts on the tablet's buttons: askubuntu.com/a/118466/53256 . In this case, having a one-line command for toggling makes sense.