This action requires saving a cookie to remember the page's state. You can read more about that on the cookies page.

 

Easily calibrate multiple touch screens in linux

Released on: 2018-01-01

niceTouch is a tool to “Easily calibrate multiple touch and non touch screens on a single linux system.”

This is to address the issue on multi-display Linux desktops where the touch panel is automatically calibrated to operate over all of the displays, and even if you get the calibration right, it’s then wrong again when you add or remove displays.

For now, it works by keeping track of what touch and display devices are added and removed at any given time, and matching them up accordingly. This is done by running the command between each change, and again in the final state. But I want to turn this into a user-space service that listens to DBUS (for example) very soon. At that point the user will be able to simply plug stuff in, and it be calibrated correctly very soon (The time it takes for getting the event, and the correct information about the new state being reported. Associating stuff is computationally easy.)

If there is more than one device that has been added between runs, it guesses based on device ordering (for reasons I won’t go into in this post (but let me know if you’re interested), that is only slightly better than flipping a coin.) Depending how necessary it seems at the time, I’m keen to improve the guessing. One way to do this would be to maintain a database of display/touchpanel combinations that are common. This will help when people plug in external touch panels, but won’t be better for devices where the are multiple devices of the same make and model. As we strike those cases, we can look at the best way to solve them. Eg meta infomation.

Knowledge is persisted, so subsequent boots will work just fine with everything plugged in.

If you google around for how to calibrate a touch screen to a specific display in a multi-display setup, there are lots of results telling you to get information about the screen from xrandr, do some calculations, stick them in to a long line in xinput. It’s fiddly, but it works. This was actually what I intended to automate, but when I did my research this most recent time, the page where I normally got information for this now talks about using --map-to-output to map to a particular device. This isn’t persistant, but is substantially easier than the old way.

If you think this might be helpful to you, or you think you know someone who might benefit from this, feel free to use it. If you have improvements, feel free to create pull requests. If you have suggestions, but not the ability to do them, feel free to raise issues.

More * Known good releases. * Repo.

NOTE: This page has moved from FunnyHacks.com/niceTouch.

This post references

1970-01-01
I've done a few software projects over the years. Here's a collection of some of them.

Posts using the same tags

It was time for a much needed update to the resolution app. Here's what I've improved.
2024-01-30
Getting the information and access you need to your infrastructure quickly, so that you can get back to sleep.
It's time to blow the dust off machine learning, and apply it to a dataset that I know.
I've just released the biggest, most exciting, update since the first public release of handWavey. The learning curve is dramatically reduced!
A recent question on Reddit resulted in many incomplete and wrong answers. It seemed valuable to dive a little deeper.
The story of where Achel came from, and where it's going.
My CV had gained so much weight that it was hard to do anything with it any more, and it was hard to read. So I did something about it...
Control your computer using a Leap Motion controller, but with an every-day-quality implementation.
How much of your phone's screen resolution can you actually see? This app helps you quantify it.
An easy way to get a dark theme for kmail content, that reliably works on pretty much everything.
calibrate multiple touch and non touch screens on a single linux system." This is to address the issue on multi-display Linux desktops where the touch panel is automatically calibrated to operate over all of the displays, and even if you get the calibration right, it's then wrong again when you ...
DoneIt is a time tracker for working out where your time is going. For me there were a few things I wanted to achieve with it - Be able to say what I've been doing all day. - See how much time is lost to time ...
Well over a year ago I introduced mass which is a tool for managing large numbers of servers. It's come along way in that time, and it's well and truly time for another look. From the users' point of view, the most interesting things are probably that you can now ...
Achel is a programming language that I have been working on for the past 13 years (I said 12 in the video, it has been a long time!) There has been growing interest in the programs I have been writing using it, so I have now released it open source. ...
1970-01-01
I've done a few software projects over the years. Here's a collection of some of them.
Home | About | Contact | Cookies | Site map