On-screen keyboard popping up whenever I touch screen

Solution 1:

Caribou also kept popping up to my great annoyance, so I wrote a gnome extension that monkey patches gnome-shell to stop popping up the keyboard when the touchscreen is pressed.. It's only a couple of lines of js, but the git repo is here

How to use extensions

  1. To manage gnome extensions, download gnome-tweak-tool with

    sudo apt install gnome-tweak-tool
    
  2. Gnome extensions are downloaded through the official gnome-extensions website, which requires a native connector to communicate with gnome-shell. Install this native connector (even if you're running Firefox) with

    sudo apt install chrome-gnome-shell
    
  3. Finally to install the extension, go to the extension's page and hit the switch in the top right corner. Gnome will than prompt you to install the extension. These extensions can be managed through the gnome tweak tool. However, to uninstall them, you must use the web page.

Solution 2:

I'm running Ubuntu 16.04 and had a similar problem when running Synergy. Sometimes the on-screen keyboard would pop up for no reason and I couldn't get it to go away. I finally decided to just remove Caribou:

sudo dpkg --remove --force-depends caribou
ps -eF | grep caribou | awk "{print $2}" | xargs kill -9 {}+ 

That left the keyboard still stuck on the screen, but I locked the screen (crtl+alt+L) and logged back in, then the keyboard dropped away.