1.Open a terminal and input command: xrandr, and check the HDMI-ID of main display.;
2.Open a terminal and input command: xinput, to check the touch ID of main display;
3.Run the command: xinput map-to-output <touch ID> <HDMI-ID>
(The ID value should be changed according to the actual ID checked. for example: xinput map-to-output 7 HDMI-1 )
4.If you want to configure the touchscren and save the setting, you have to set it to auto start.
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Add the line: xinput map-to-output 7 HDMI-1
Note that You need to change the ID and reboot Raspberry Pi.
|