Between Linux and Anime

Kind of like Schrodinger's Cat

Fixing Chromium/Chrome Ignoring Touch Input on Linux

Recent versions of Chromium (and, presumably, Google Chrome) appear to be capable of differentiating between input from a touch screen, and input from a mouse. The problem is, on Linux, you’ll often find the capability a counter-productive one, since chromium sometimes outright IGNORES all touch input, rendering chromium utterly inoperable with a touchscreen. Mouse and touchpad operates chromium okay? Touchscreen operates other applications okay but you can’t so much as click a link on Chromium? You’re probably experiencing what I’m talking about.

There’s a report here, but it doesn’t seem to be going anywhere at the moment. Apparently Ubuntu carries a patch that tries to fix this, and I’m not sure how well it works, but at least on OpenSUSE we appear to be on our own. Fortunately, it’s possible to workaround, based on a suggestion in the comments.

First, on the terminal, type

xinput list

You should get a listing that looks like

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Atmel Atmel maXTouch Digitizer            id=10   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Lenovo EasyCamera                         id=9    [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]

You need to look for the name of your touch screen hardware. In the above case, that is “Atmel Atmel maXTouch Digitizer”. Note the id number for the hardware on the right, 10 in the above case.

What you need to do is pass this id as a parameter to Chromium/Chrome. Like so:

chromium --touch-devices=10

Replace 10 of course with the id of your device. Launched this way, touch input should actually work reasonably on Chromium. In particular – you can switch tabs with touch, touch links to visit them, and even touch-scroll.

Of course, it’s a little tedious to do this every time you want to start Chromium. Fortunately, it’s not hard to put it all in a script. Like so:

#!/bin/bash
SCREEN=`xinput list | awk '/maXTouch/ { gsub(".*id=",""); print $1 }'`
exec chromium --touch-devices=$SCREEN

Of course, you’ll need to change ‘maXTouch’ above to a suitable identifier for your particular device, but running the script should start Chromium in touch-usable state. If you want, you can even modify your application menu entry to call this script instead of the Chromium binary directly.

UPDATE

It seems the above doesn’t quite work anymore on recent versions of Chromium. On my own box I’ve found that I now need to use the id of the parent item – ie “Virtual Core Pointer”, id=2 in the listing above. The rest of the procedure is basically the same, and if you use the script above you’ll need to make a minor adjustment to look for Virtual Core Pointer instead.

If you find, like I did for my box, that the id for Virtual Core Pointer stays the same all the time, instead of making a script you could just add the command line flag to the Chromium default settings config file. On OpenSUSE 13.2 this is at /etc/default/chromium, though I hear it can also be at /etc/chromium/default on some platforms. Simply add the following to the file:

CHROMIUM_FLAGS="--touch-devices=2"

This is cleaner and would probably also live across version updates :)

1390
Rate this post
Thanks!
An error occurred!


  • Facebook
  • Twitter
  • Identi.ca
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • RSS
  • Reddit

Previous

I’m alive! Hana no Android Gakuen Summer Specials 3 and 4 English Translated!

Next

Forest of Pillars

13 Comments

  1. MarkJeferson23

    However, if you’re expected to write a specific analysis, then your topic should be fairly specific. For example, let’s assume the objective of your essay is to write an overview

  2. LunwenTop

    assignment writing services at https://www.lunwentop.net/assignment-daixie/ have emerged as a valuable solution to these challenges. By providing expert guidance and support, these services help students overcome these difficulties and produce high-quality assignments. By utilizing these services, students can enhance their understanding of academic writing and achieve top grades in their assignments.

  3. This is exceptionally interesting, thanks!

  4. Hessa Joseph

    This post is useful for anyone dealing with trouble with touch input in Chromium or Chrome on Linux. Technical fixes like these help save time and headaches. Law Coursework Writers often require stable browsing.

  5. Asher Sanders

    AIF2.0 questions is revolutionizing industries by integrating smarter, more intuitive systems that enhance productivity and efficiency. It offers solutions like predictive analytics, automation, and advanced machine learning to optimize decision-making. With AI F2.0, businesses can unlock new levels of innovation and growth, driving transformation across sectors from healthcare to finance.

  6. Areej

    For Linux users who are having annoying problems with touch input in Chrome or Chromium, this is a really useful guide. Hours of guesswork are avoided with clear troubleshooting instructions. Similar to how professional CV editors polish little yet important aspects, fixing configuration quirks brings back seamless operation and enhances the user experience in general. Advice that is practical always makes a difference.

  7. eminent roof

    Shop the best memory foam mattress sale in Winnipeg. Save on premium comfort, pressure relief, and better sleep with unbeatable prices. memory foam mattress sale Winnipeg Looking for a memory foam mattress sale in Winnipeg? Explore affordable, high-quality mattresses with exceptional comfort and support. Upgrade your sleep with our memory foam mattress sale in Winnipeg. Find top-quality mattresses at discounted prices for every budget.

  8. eminent roof

    Refresh your driving skills with senior driving lessons in Stittsville. Enjoy personalized instruction for safe, confident, and comfortable driving. Regain confidence behind the wheel with senior driving lessons in Stittsville. Learn from qualified instructors in a relaxed environment. driving practice lessons in stittsville Choose expert senior driving lessons in Stittsville for personalized coaching, defensive driving techniques, and increased road confidence.

  9. noki

    Save time with commercial building cleaning services. Enjoy customized cleaning plans that fit your schedule and exceed expectations. Executive house cleaning services in Calgary provide thorough, reliable, and professional cleaning for homeowners who value quality and convenience. Transform your home with executive house cleaning services in Calgary. Enjoy sparkling results, flexible scheduling, and exceptional customer care.

  10. jimyy

    Transform your office with Smart window shades Kleinburg. Enjoy smart automation, privacy, and stylish window treatments. Improve comfort and efficiency with automated blinds for Maple office spaces. Control natural light with the touch of a button. Choose automated blinds for Maple office spaces to create a modern, energy-efficient workplace with convenient smart window controls.

  11. emmi

    Shop custom motorized zebra blinds for sliding doors in London Ontario. Experience smooth operation, modern design, and lasting quality. Upgrade large windows with motorized zebra blinds for sliding doors in London Ontario. Stylish, cordless solutions offer comfort and convenience. motorized roller blinds for office windows Kitchenert Motorized zebra blinds for sliding doors in London Ontario deliver smart automation, elegant fabrics, and effortless light adjustment.

  12. jhina

    Looking for affordable 100 mile house hotel? Reserve comfortable accommodations with excellent amenities and competitive rates. Enjoy a stress-free travel experience with hotel booking in 100 Mile House. Find the perfect hotel for family holidays, business, or weekend getaways. Hotel booking in 100 Mile House offers convenient accommodations with modern amenities, flexible reservations, and exceptional comfort for every guest.

  13. mg railing

    Grow your business with professional seo services in canada. Improve search rankings, increase organic traffic, and generate more qualified leads. Looking for SEO services in Canada? Our experts help businesses boost online visibility, attract customers, and achieve long-term digital growth. Professional SEO services in Canada designed to improve website rankings, drive targeted traffic, and maximize your online business success.

Leave a Reply

Powered by WordPress & Theme by Anders Norén