Disable touch of the tablet in Ubuntu Unity 14.04

11,723

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.

Share:
11,723

Related videos on Youtube

SNH
Author by

SNH

Updated on September 18, 2022

Comments

  • SNH
    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: PAD

    then

    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
    SNH almost 10 years
    Followed your instructions, restarted the computer, re-plugged the tablet but still it enables the touch by default.
  • hal7df
    hal7df almost 10 years
    I doubt it'll do much but try removing the exec keyword (I'm not exactly the world's best scripter...)
  • SNH
    SNH almost 10 years
    nope, nothing changed.
  • hal7df
    hal7df almost 10 years
    I changed my answer...try it now.
  • SNH
    SNH almost 10 years
    Didn't work, tried everything you suggested. As a side effect it removed transparency from the my-weather-indicator applet on the desktop.
  • hal7df
    hal7df almost 10 years
    Hmm...if you run the command in between the ```` signs, do you get the ID of the device back?
  • SNH
    SNH almost 10 years
    I only get the TOUCH word displayed, no numerical ID.
  • hal7df
    hal7df almost 10 years
    Okay. Could you please edit your question with the proper formatting of the example output I asked for earlier?
  • hal7df
    hal7df almost 10 years
    Try changing the '8’ after the -f flag to a 6.
  • SNH
    SNH almost 10 years
    Nope, doesn't work.
  • SNH
    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
    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
    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
    hal7df almost 10 years
    Okay... change the 6 to a 7?
  • SNH
    SNH almost 10 years
    Still not working. Output is: Unknown parameter name 'type:'.
  • hal7df
    hal7df almost 10 years
    Okay, new command. See if this command gets the ID number by itself: xsetwacom --list | grep TOUCH | cut -c 41,42
  • SNH
    SNH almost 10 years
    The output is only "1", see: inoki@innerdistance-Satellite-L650:~$ xsetwacom --list | grep TOUCH | cut -c 41,42 1
  • hal7df
    hal7df almost 10 years
    Okay...change the 41,42 to 42,43
  • SNH
    SNH almost 10 years
    The output is only "t".
  • hal7df
    hal7df almost 10 years
    xsetwacom --list | grep TOUCH | cut -c 41-42?
  • SNH
    SNH almost 10 years
    Nope, that was the 42,43, the 41,42 showed only "1".
  • hal7df
    hal7df almost 10 years
    No, sorry, I wanted to go back to 41 and 42, changing the comma to a dash.
  • SNH
    SNH almost 10 years
    Still the output is only "1".
  • hal7df
    hal7df almost 10 years
  • SNH
    SNH almost 9 years
    Not 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
    iGadget over 8 years
    If 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
    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
    Maxweel over 7 years
    I 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.