2022/05/20 ｜By G Editor
As a free and open source operating system, Linux is not only efficient and stable, but also highly customisable. In recent year, Linux has been widely applied in the fields of servers, decentralized computing and the Internet of Things.
While most of Linux versions support plug-and-play functionality for USB external touch monitor, manually installation is still required for vertical touch operation and touch calibration. Due to the increasing popularity of Linux application, we hereinafter show you how to set up vertical display, vertical touch screen settings, and install the touch calibration software in Manjaro Linux.
Display application is already included in xfce Desktop of Manjaro Linux, allowing you to set up the display resolution and direction.
Click → click《 All Applications》
Click 《 Display 》
Click Rotation menu：choose Right or Left to rotate the display 90° or 270°→click 《Apply》
Click 《Keep this configuration》for confirmation
After the display became portrait mode, you may find that the touch response position is different from the actual finger touch location. This is because the initial position of touch panel is still set to landscape. You shall set the initial TransformationMatrix value of touch screen to vertical.
In Terminal, key in
Key in ls to list all the files in the folder
Key in sudo nano 40-libinput.conf
Find the InputClass section of 《 touchscreen 》 , and key in
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
List of TransformationMatrix for M505T/T1
90° = Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
180° = Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
270° = Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
Remark: The XY position of different touch screen's start point may be various, so the transformation matrix values of 90° and 270° may be the opposite. For models other than M505T, please try to adjust it yourself!
Right click the mouse→select 《 log out》 → select 《 Restart》
After rebooting, the touch respond on the right position.
There is xinput_calibrator package in AUR database, but we recommand you to connect github to install xinput_calibrator in Manjaro Linux. It seems easier to install via this path.
In Terminal, key in
git clone https://github.com/tias/xinput_calibrator.git
Key in cd xinput_calibrator
Key in ./autogen.sh
Key in make
Key in sudo make install
If you find the touch response is inaccurate, running the touch calibration procedure can improve the accuracy of touch screen response.
In Terminal, key in xinput_calibrator
Click the cross cursor on the screen in sequence
Refer to the figure left, select the text between Section ~ EndSection and copy them by right click the mouse.
Key in cd /etc/X11/xorg.conf.d
Key in sudo nano 99-calibration.conf
Right Click the mouse → select 《Paste》 → press 《ctrl + 0》 to save → press 《Enter》 to confirm.
Right click the mouse → select 《log out》 → select 《Restart》
Please install Arch base devel program
Key in sudo pacman -S –needed base-devel
After running ./autogen.sh , error of autogen.sh no such file appears. Please install autogen Program.
Key in sudo pacman -Syu
Key in sudo pacman -S autogen
After running make command, error of make:command not found appears. Please install make command first.
Key in sudo pacman -S make