Arjun Krishna

2 minute read

Steps to setup calibration settings

xinput is a utility to list available input devices, query information about a device and change input device settings.

xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ SONiX USB Keyboard                      	id=11	[slave  pointer  (2)]
⎜   ↳ USB Optical Mouse                       	id=12	[slave  pointer  (2)]
⎜   ↳ Melfas LGD AIT Touch Controller         	id=9	[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)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ HD Pro Webcam C920                      	id=8	[slave  keyboard (3)]
    ↳ SONiX USB Keyboard                      	id=10	[slave  keyboard (3)]
    ↳ Eee PC WMI hotkeys                      	id=13	[slave  keyboard (3)]
    ↳ SONiX USB Keyboard                      	id=14	[slave  keyboard (3)]

xrandr tool (an app component in Xorg) is a command line interface to RandR extension, and can be used to set outputs for a screen dynamically, without any specific setting in xorg.conf.

xrandr
Screen 0: minimum 320 x 200, current 5040 x 1920, maximum 16384 x 16384
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-D-1 connected 1200x1920+3840+0 left (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00  
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
   720x400       70.08  
HDMI-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00  
   1600x1200     60.00  
   1680x1050     59.95  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
   720x400       70.08  

I wanted to map touchscreen controller to my touchscreen monitor connected to HDMI-1

xinput map-to-output 9 HDMI-1

Now the touchscreen was working as expected.