A Simple Industrial Touch Screen Driver for Ubuntu Linux

Ubuntu Linux Desktop

Ubuntu Linux Desktop

More and more often, our industrial touch screen customers are taking advantage of the open source Linux operating system, Ubuntu. Ubuntu has evolved into a versatile, easy-to-configure environment with a large community following and massive support from the company Canonical. We have seen a steady increase in calls from customers leveraging Linux in industrial environments, and in recent years Ubuntu has been leading the charge. In addition to the standard Elo-provided Linux driver, Ubuntu users now have a very simple touch screen driver solution that requires no new software.

The easiest connection interface for using your touch screen with Ubuntu is via USB. You will notice that when most Hope Industrial Systems touch screens are connected to an Ubuntu 12.04 system, it will immediately respond to touch albeit with an inverted Y axis. The standard Ubuntu desktop installation is actually prepackaged with the “Xorg touchscreen driver,” which uses the Xinput protocol. This is what enables our touch screens to work with Ubuntu right out of the box. The only trick is to calibrate the screen to correct the cursor inversion and precisely align the cursor to your finger.

Ubuntu Software Center

Ubuntu Software Center

If you open the Ubuntu Software Center and do a search for “calibrate touchscreen,” the first result you will see will be a software package by the same name. The actual name for the program is Xinput_Calibrator and alternatively is supported on several other flavors of Linux. More information can be find on its webpage. Just install the package by clicking “Install.” Once complete, it should create an icon on your launcher. After the installation is complete, initiate the calibration by clicking the icon in your launcher or do a search for “calibrate touchscreen” from the Ubuntu dash search bar.

Ubuntu Touch Screen Calibration

Ubuntu Touch Screen Calibration

It’s important to note the message that pops up after the calibration is complete. In order to retain the calibration settings after you shutdown or reboot, you will need to create a configuration file with these settings. First, note that the “MatchProduct” is recognized as an Elo device. If not, disconnect and reconnect your touch screen and try calibrating again. Next, copy the required settings by highlighting everything from the beginning of “Section ‘InputClass’” to the end of “EndSection,” right click on the highlighted text and select COPY. Next, you’ll need to first create the directory referenced by Xinput_calibrator for the configuration file location, then open the configuration file for editing. This can easily be done by running the following two commands:

sudo mkdir /etc/X11/xorg.conf.d
sudo gedit /etc/X11/xorg.conf.d/99-calibration.conf

Once the editor is open, paste your configuration, save the file, then close it, and that’s it! If you’d like to implement a “right click on hold” feature just like the Windows feature, then add this line of code above “EndSection”:

Option  "EmulateThirdButton" "On"

We’ve found this to be a great, fast way to get your touch screen up and running on Ubuntu 12.04 LTS and 14.04 LTS. Our research found it can even work on some old versions of Ubuntu, and according to the Xinput_calibrator website it can work with a number of Linux distributions.

6 Responses to “A Simple Industrial Touch Screen Driver for Ubuntu Linux”

  1. Roy Westwood November 22, 2012 at 5:23 pm #

    You should link to this article from your Linux Drivers section!

    • Daniel J. McGraw December 6, 2012 at 12:03 pm #

      Hi Roy – great suggestion, we will do this right away!

      -Dan McGraw

  2. jack.sun November 16, 2013 at 8:48 pm #

    I want To buy 12″ touch monitor for PCDUINO , as ubuntu 12.04

    can you give me a list price & shipping price

  3. Krishna July 31, 2014 at 11:00 am #

    How can I use this on a Ubuntu14. I can see it works on Ubuntu12.

    Please email me the process for Ubuntu 14. When I am trying to do it, I dont see any errors but still the touchscreen is not working.

    Please help.

    Thanks,
    Krishna

  4. Dailen August 8, 2014 at 2:13 pm #

    These instructions are currently valid through 14.04. For immediate help you can contact our support at http://www.hopeindustrial.com/contact.aspx.

  5. J.C. January 23, 2017 at 5:19 pm #

    This is valid to UBUNTU 16.04 which we are using on our production machines. The installation was quick and painless (unlike most other things in ubuntu.) Also, the screen worked without calibration, but did so by seeming to shrink the effective work area. Calibration fixed this entirely.

Leave a Reply:

Gravatar Image

WordPress Appliance - Powered by TurnKey Linux