Calibrate the touch input

This is a problem when dual screen is being used.

xinput | grep -i touch

I am interested in the following:

⎜   ↳ Raydium Corporation Raydium Touch System       id=18   [slave  pointer  (2)]
⎜   ↳ SYNA8004:00 06CB:CD8B Touchpad                 id=22   [slave  pointer  (2)]

Let’s get the primary display:

xrandr

I am interested in eDP-1.

Calibrate:

xinput map-to-output 18 eDP-1
xinput map-to-output 22 eDP-1