X
 

Easily calibrate multiple touch screens in linux

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](https://github.com/ksandom/niceTouch/pulls).
If you have suggestions, but not the ability to do them, feel free to raise issues.

More
* Known good releases.
* Repo.

Released 2018-01-01. Link to this page. Tags: linux, touch, calibrate, software.

Other posts using the same tags

Mass - Intro - 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 ...
massIntro, achel, fh, software, mass, sabbatical
DoneIt - Intro - DoneIt is a time tracker for working out where your time is going.http://www.youtube.com/watch?v=AetzOZAwi5YFor me there were a few things I wanted to achieve with itBe able to say what I've ...
achel, software, fh, doneItIntro, doneIt, sabbatical
InstantPulse - Beat/pulse is a very simple app to get an accurate heart beat measurement, quickly. It's open source, so pull requests are welcome, and it's on Google play. The way you ...
pulse, instantPulse, InstantPulse, heatbeat, heart, beat, software
Mass - For when you want to look like a hacker from the movies, but actually do something useful! ;) - http://www.youtube.com/watch?v=dPUHCjfkiicMass is a tool for manipulating lots of servers concurrently. Open up an SSH terminal to each server that maches your request, do the same with cluster SSH, upload a ...
funnyhacks, software, fh, mass

Other stuff

Syncronising 3D footage - When you create 3D footage from two sources, there will be issues getting the two sources in sync. This episode is all about getting that 3D footage in sync, and ...
fh, s2, in3D, sync, 3D, cable, adaptor
Repairing the circuit board of an RC car - If you're really going to use a radio controlled car, it will break from time to time. Doing maintenance and repairs becomes essential if you don't want to pay stupid ...
rcCar, fh, s2, fix, circuit, solder, dry, joint, intermittent, reception
Season 3 update - As mentioned here, FunnyHacks is coming back. We're now days away.http://www.youtube.com/watch?v=ugPDuawRNvwThe last few weeks have been spent doing documentation, discovering little things that needed tidying and generally making this stuff ...
fh, s3, update, cow
ColouredWeb - Intro - ColouredWeb generates and installs a custom stylesheet that re-colours the internet to make it easier for people who are sensitive to particular colours to use the internet. Here is an ...
achel, colouredWeb, fh, sabbatical
Demolition derby soccer with rc cars - You'll see in this episode that it was more about action than destruction. Over an hour and a halfs footage went into about 9 minutes, so it's all action :)http://www.youtube.com/watch?v=pUmW83aWsN0There ...
fh, s2, funnyhacks, demolition, derby, soccer, rcCar
Tablet mouse - Today I show you an adapter I made that converts a tablet into its own mouse. https://www.youtube.com/watch?v=MwqozQ-fDv8This is basically the insides of a mouse, with a drastically shortened cable and all ...
tablet, mouse, fh, s3
FunnyHacks season 3 returning - FunnyHacks season 3 is back. I'm taking a break from work to pursue my passions for a few months. As a result, FunnyHacks is going to getting love.I've got loads ...
s3, fh
Repairing and improoving a radio controlled car - The basic ideaBring the legend of an awesome radio controlled car back to life, and make some improovements along the way!http://www.youtube.com/watch?v=67nmq5xhxrsRisksIf you actually use your radio controlled car, you've got ...
fh, s2, in3D, rc, car, fast, traxx, repair, improovements
Fixing a defective head torch - Here I make a defective torch useful using a simple modification to stop the straps from falling off.http://www.youtube.com/watch?v=DdcgrwIoCt4In the original design it's very easy for the strap to slide to ...
head, torch, fh, repair, flaw
Building a tablet from a netbook - This is a tablet that I've built from an old Asus Eee 701. I've wanted a tablet for years. My motivation for building one instead of buying one was that ...
s3, eee, laptop, convert, translucent, glow, blue, fh
Box - Tech talk - Today I talk about the technical details of making the bike box work.http://www.youtube.com/watch?v=lFGBY3QYCcA
box, bonus, tech, fh, s2, box, tech, doggy
Jump starting: Which lead first? - Today I show you why it matters which lead is connected first when jump-starting a car, and why it's not obvious if you have an electronics background.https://www.youtube.com/watch?v=iaLmIc-3zZYThe answer is that ...
batCar, carBattery, car, battery, explosion, fh, jump, start, jumpStart, shortCircuit
Tarp parachute - Our first tries - This is the first of at least a couple of compilation videos of our progress as we play with different ideas. We've taken literally hours of footage, so these compilations ...
tarp, funnyhacks, tarpaulin, parachute, first, tries, , fh, s2, wildcard
Tablet: Lots of photos and info - This is one of my more impressive looking builds. Not the most complex by any means, but it certainly looks cool. Where ever I take it, I get lots of ...
tablet, build, fh, s3
Headphoning a phone - The basic ideaModifying a phone so that it can take headphones. The hardest bit about this hack is making it all fit in the phone... So it's not that hard. ...
fh, s1, phone, headphones, fh7
Running a laptop off AA batteries - A big thankyou to david at lifehacker for featuring this episode!The basic ideaSo you've done all the little optimisations to make your laptop last an extra half hour. Wireless is ...
laptop, AAs, alternate, power, volts, amps, battery, pack, s1, fh, series, parallel, fh10
3D Mount - Technical part 2/2 - This is part 2 of 3DMountTech1 where I talk about the technical details of recording 3D video. Here I continue that with information about rendering the video.http://www.youtube.com/watch?v=MInnJ43cdd4
3DMount, fh, funnyhacks, s2, in3D, two, cameras, mounts, adjustment, see3D, crosseye, polarized, glasses, interlaced, sidebyside, alternatve, interleaved, 3DMountTech1
DoneIt - Intro - DoneIt is a time tracker for working out where your time is going.http://www.youtube.com/watch?v=AetzOZAwi5YFor me there were a few things I wanted to achieve with itBe able to say what I've ...
achel, software, fh, doneItIntro, doneIt, sabbatical
Back lit LCD - part2 - Today I show you how to get some extra brightness on your LCD in the sun.https://www.youtube.com/watch?v=_AJVCS5RlnAThis is part 2 where I repair a mistake I made in part 1 and ...
lcd, practical, fh, s3
YEEEEEE HAAWWWWWwwww! - Slow mo RC car - Slow mo footage of an RC car in puddles and on shingle. This is simply having fun with a radio controlled car to demonstraight the concepts discussed in /3DMounthttp://www.youtube.com/watch?v=42VkVBO4lcMFor the ...
in3D, fh, s2, rcCar, 3DMount, puddle, shingle, splash, banjo, slowmo, wildcard
My Sabbatical - I'm nearing the end of my sabbatical, and I did stuff! Here's an ultra short summary of what I did.https://www.youtube.com/watch?v=Ik_-ft0GoO0Polishing projectsThis phase was to get my open source projects that ...
fh
Pin hole camera - Every morning I look up at the ceiling and see a fuzzy representation of the world below. Light hits the objects and bounces off in various directions. Some of it ...
fh, misc
Making a mobile chroot practical - IntroChrooting to provide a desktop environment on a mobile device is not a new concept, but it is still with it's challenges. This post is about the various successes and ...
practical, proot, android, sailfish, kindle, fh, mobile, phone, debian, android, sailfish, jolla, vnc, proot
Laptop AAs revisit - Today I answer questions about running a laptop off AA batteries.https://www.youtube.com/watch?v=vkhyOVcxUIEIt seems to be necessary to remind you that as with all hacks, don't do this on anything you can't ...
laptopAAs, AAs, s2.5, fh, miliamps, volts, amps, capacity
Prototype tablet - Today I show you the semi-working prototype of the final tablet.https://www.youtube.com/watch?v=4roWEexPGvsWhile I made prototypes of many parts, this was the only one bringing everything together, and there was still learning ...
fh, tablet, prototype
Driving a car on the ceiling - Someone driving you up the walls? Get some space and drive on the ceiling instead! In this episode, I show you how to drive an RC car on the ceiling.http://www.youtube.com/watch?v=fcXJ0CqWb-0What ...
fh, s1, fh4, car, rc, boat, magnets
Converting an RC car to a boat - You may remember the car that could drive on the ceiling. It didn't last very long. So now I've turned it into a boat. This episode was filmed out in ...
fh, s1, boat, fh6, magnetCar, car, rc
Home made parachute! - Further "experimentation" :D - In this episode we are really starting to get somewhere! This was a lot of fun and I hope to get out there again before I leave NZ. We have ...
tarp, parachute, tarpaulin, fh, funnyhacks, s2, wildcard
Repairing and optimizing an old radio controlled car - tech details - In this episode I discuss the technical details of repairing and improving a really old radio controlled car. http://www.youtube.com/watch?v=WOVCY-o_ZdwThe most important change was the battery since the old one wouldn't ...
fh, s2, in3D, rcCar, lipo, battery, repair, optimize
How secure is your lock? - Today I reassemble a doorlock that was replaced after our flat was burgled. The result surprised me!https://www.youtube.com/watch?v=Iiotn7p-d4EVerifying the resultsTo confirm my results, I compared this lock to a new lock ...
fh, repair, understand, security
Tablet: More info - Today I show you more details with making the tablet.http://www.youtube.com/watch?v=a-LBQUXBOo4Battery dockGluing without making too much messPlanning the layoutStock softwareAuto loginTouch screen calibration
tablet, build, fh, s3
Dog eyes - Today I show you how I did the dog eyes on the bike box. This is pretty much the same method that I used in the koala.https://www.youtube.com/watch?v=2DkUe37AlDISadly I don't have ...
dog, eyes, bike, box, koala, fh, s2.5
Turbocharged fly swat - Today I dig up another unreleased FunnyHacks episode from the archive. This one is about a fly swat that I've turbocharged with an electric drill.https://www.youtube.com/watch?v=qzmM19550gMThis episode really hits on the ...
fh, fly, swat,
Where is FunnyHacks going? - Over the last while it has been becoming increasingly apparent that I'm simply trying to do too much. So let's address that.https://www.youtube.com/watch?v=WJfmZr7e98sThis post coversWhere is FunnyHacks going?Where has it been?Life ...
fh, next
3D Sync - Tech talk part 1/2 - I've been refinining capturing 3D footage for quite a while now, and my adapter for syncing the cameras was a big part of that. There's a lot to cover, so ...
3DSync, tech, adapter, sync, fh, s2
3D Mount - Technical part 1/2 - Recording 3D footage on two 2D cameras can be quite challenging. In this episode I go through the technical details of making it happen.http://www.youtube.com/watch?v=8Cj7mPtbu6oAdjustmentI found making things loose and then ...
3DMount, fh, funnyhacks, s2, in3D, two, cameras, mounts, adjustment, see3D
Biscuit Reloaded - *read in batman voice*The quest is nearing its end. But first we must eliminate more wrong biscuits.Biscuit! WHERE IS SHE?... it!2PS: I just re-read this... It will make absolutely no ...
biscuit, offTopic, wrongBiscuit, fh
Achel - Introduction - 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 ...
fh, language, achelintro, achel, sabbatical
Audio switch - The basic ideaHook every audio source to every audio output in an easily switchable way.http://www.youtube.com/watch?v=FLQPZP69RtQSeries vs ParallelChoosing whether to hook things up in series or parallel affects the impedance of ...
fh, s1, audio, switch, series, parallel, fh9
3D Sync - Tech talk part 2/2 - One of the biggest challenges of capturing 3D footage is getting the footage syncronised. Sure, you can do it in post production. But on most cameras, you have granularity of ...
3DSync, tech, adapter, sync, fh, s2, 3DSyncTech1
3DMount - Capturing 3D footage - 3D video is really taking off, and most of my work over the last year has been in 3D. So I thought that it was about time to show how ...
3DMount, two, cameras, techniques, steroscopic, separation, anaglyph, convergence, point, 3D, funnyhacks, talky, in3D, fh, s2
Carphone - The basic ideaImagine your phone is ringing and you can't find it. Probably the last thing you want is for it to be quietly driving away from you. Well that's ...
fh, s1, fh1, car, phone, cellphone
Windows 95 insanity - A few days ago I started playing with the idea of trying to post to facebook from a fresh windows 95 VM using only software that I could aquire from ...
win95, nostalgia, fh
Tarp Parachute - Technical details - Today I walk you through the technical details of building the home made parachute.This is a stupid thing to do, so if you have not yet gone over the risks, ...
tarp, fh, s2, funnyhacks, tech
Jumpstarting a cellphone - Today we bring another unreleased episode from the archive to show you how to charge a phone that is too flat to charge.https://www.youtube.com/watch?v=ebplWZgfP0gOverviewThe basic idea of this is to charge ...
fh, s2.5, jump, jumpStart, phone, charge, batter
Running a cellphone and camera off AA batteries - The basic ideaIn this episose I power a camera and phone using a 3 battery batterypack. This hack is basically the next step after this. In this edition I've also ...
cellphone, mobile, phone, AAs, battery, batterypack, fh, s1, camera, cellPhoneBattery, fh8
Mass - Intro - 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 ...
massIntro, achel, fh, software, mass, sabbatical
Bike box - Simply put, this is a box to put on the back of your bike and be seen. The response from this one has been amazing. If you were to only ...
bike, bikebox, fh, s2, talky, awesome, conversation, starter
Pimped granny stroller - Today I show you how I pimped up a granny stroller to help me out during a tough time in my life.https://www.youtube.com/watch?v=5sVqhHbTJeIWhy?I broke my collar bone, which meant I couldn't ...
pimped, hacked, granny, stroller, fh, s3
Mass - For when you want to look like a hacker from the movies, but actually do something useful! ;) - http://www.youtube.com/watch?v=dPUHCjfkiicMass is a tool for manipulating lots of servers concurrently. Open up an SSH terminal to each server that maches your request, do the same with cluster SSH, upload a ...
funnyhacks, software, fh, mass
Tarpaulin parachute - The basic ideaAs a kid I always wanted to make a parachute. I kept jumping off hedges using a tiny sheet with the hope of sailing down. The reality was ...
fh11, fh, in3D, tarpaulin, parachute, rope, shackle, s2
Permission to do stuff - Most work on this site is licensed under the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license which should allow you to do most of what you'd like to do. (Most ...
copyright, fh
Season 3 has a date - 03/03/2014 - Getting the videos done took much longer than I expected, namely because I had a lot more in my head than I realised, which lead to me recording over 6 ...
update, s3, fh
Username
Password