Linux Mint 20 on Teclast X4

After Linux on Intel Atom Tablet I want to continue to use a very small pc that can be used like a tablet. But I’m not enought shure of this selection so I buy Teclast X4 because is more economic then other choices and have 8 gb of ram and Intel N4100 Gemini Lake.

First configuration

Install Linux Mint

After download it and create a, bootable USB you can install it as in a normal PC: put USB and connect a keyboard, start the laptop and press ESC. In the bios option select Start from USB and save configuration. The bootable USB will start and you can install Linux Mint as you want: removing existing windows or keeping both.

I change the SSD with another with 512 GB in order to maintain original OS as fabric and in the cleaned one I put Linux. In this tablet it is easy to do: in the back after open the tablet support and you can see two small screws.

After the installation I have no problem, the touch work, the audio speaker work, the SD card reader work, the bluetooth work, and screen.

Enable On Screen Keyboard

To use in touch mode only it is necessary to enable from applet ui the On Screen Keyboard. After it you have a callable screen keyboard in the start bar. Into the login page it exist automatically: if you do not see click on information button on the bar and here there is on screen keyboard.

From Accessibility>keyboard you can change some properties from virtual keyboard, I use the menu bar on top of the screen so I set the keyboard on bottom.

From there you can set also that the keyboard open automatically when something wait for input, but I use the manual open.

I’m satisfied of this keyboard but if you want you can use other keyboard like onboard and florence as explained in Linux on Intel Atom Tablet.

Physic Keyboard

The teclast have his keyboard but it should be borrow separately like the Teclast T6 stylus. But you can use a bluetooth keyboard and an mouse or USB version.

This tablet as many other have the 5pin keyboard. I think that a good idea can be to adapt some other keyboard (because the physical joints does not match) like the keyboard of Mediacom WinPad 11.6 that get you also two new USB port.

Improve battery (also for laptop)

To improve your battery time you can install the follow:

It should make your laptop battery last longer by implementing some power-saving protocols.

Use workspace with touch

If you are a fun of workspace like me, you know the problem. To make it easy I use active angle: so (I use the start bar on the top) I set the bottom left angle that open all workspace in order to change or move apps into new workspace. On the bottom right corner I put all the active apps inside the workspace.

Jack Audio for headphone

The integrated audio system do not recognize the headphone but you can use the command:

by pressing “M” and set to 0 Speaker volume to obtain a situation like in figure.

Alsa mixer headphone volume only.

In this way you can manually turn down the volume of the speaker and turn up the volume of headphone.

Another way is to use the shell or a script with following instruction.

amixer sset Headphone on
amixer sset Headphone 100%

To automate this command you can use the alsapplet:

On click the Icon it exec the commands.

Auto rotation

The automatic auto rotation have wrong positions. A possible solution is explained at Linux on Intel Atom Tablet but I’m searching a more clean solution.

So old solution is:

To stop auto rotation do:

If you want to stop and start easily autorotation on your cinnamon environment you can use the applet:

Enable from applet ui:

Applet ui

Now by clicking the icon you can start and stop the auto-rotation easily. (the stop is quick but the restart take one or two seconds).

Touch and Stylus

One interesting tool can be the Teclast T6 stylus it is a stylus that need an AAAA battery. This pen can move the mouse if it is over the screan and click if it press. But it do not work immediatly in this way because exists some problem with the driver.

Tablet and tools

To install the driver at first edit “/lib/udev/hwdb.d/60-evdev.hwdb” file:

and add at the end:

(you can also replace 2736 with 1920 and 1824 with 1080, it will work at the same manner)

After reboot.

Now do the following steps to compile the driver:

Remember to recompile if you upgrade the kernel:

Test the driver with following:

Install the driver (this procedure can be repeated if you change kernel, maybe also the compilation part):

Now at every restart it should work.

Or if you prefer to run it when you need you can use the following script.sh:

In my situation I use the second one because the installation seams do not work.

The stylus is interesting for take note for example with xournalpp or to draw with krita or to sculpt with blender and many other uses.

An useful extra can be the graphic tablet glove that keep your screen clean also if you write a lot with the stylus and prevent a bit the touch on resting the rest of the hand on the screen while writing as you do on a sheet of paper.

Right click long press simulate left click

I do not know why by setting the secondary action on mouse with dconf-editor it works with mouse but not with touchscreen, so I use this python script rce.py that I automatize with service, you can install it with:

You can manage the service with classical systemctl commands:

If you do this before enable goodix driver you must restart the service

HDMI screen and stylus/touch mapping

On connecting to the second screen with HDMI (with a micro HDMI adapter) the touch an the stylus map the two screen so if you want to limit it to one screen you can see Lock Graphic Tablet to one screen on Linux.

Shortly you can lock the stylus and the touch to tablet scree by:

where “Goodix Active Stylus Pen Pen (0)” is the selected device to map to the tabled display. You can find it by:

(obviously you can also map the TouchScreen to the tablet monitor)

Multi touch gesture

For multitouch gesture I use touchegg it is fully configurable:

To test run with:

I use this config, but pich in seams does not work, at file
~/.config/touchegg/touchegg.conf :

    <application name="All">

<gesture type="TAP" fingers="2" direction="">
<action type="MOUSE_CLICK">BUTTON=3</action>
</gesture>
<gesture type="DRAG" fingers="2" direction="ALL">
<action type="SCROLL">SPEED=7:INVERTED=false</action>
</gesture>

<gesture type="PINCH" fingers="2" direction="IN">
<action type="SEND_KEYS">Control+minus</action>
</gesture>
<gesture type="PINCH" fingers="2" direction="OUT">
<action type="SEND_KEYS">Control+plus</action>
</gesture>
<gesture type="TAP" fingers="3" direction="ALL">
<action type="SEND_KEYS">Control+Alt+Q</action>
</gesture>
<gesture type="DRAG" fingers="4" direction="LEFT">
<action type="SEND_KEYS">Control+Alt+Right</action>
</gesture>

<gesture type="DRAG" fingers="4" direction="RIGHT">
<action type="SEND_KEYS">Control+Alt+Left</action>
</gesture>
<gesture type="DRAG" fingers="4" direction="UP">
<action type="SEND_KEYS">Control+Alt+Up</action>
</gesture>
<gesture type="DRAG" fingers="4" direction="DOWN">
<action type="SEND_KEYS">Control+Alt+Down</action>
</gesture>
</application> <application name="Firefox"> <gesture type="DRAG" fingers="2" direction="LEFT">
<action type="SEND_KEYS">Alt+Right</action>
</gesture>
<gesture type="DRAG" fingers="2" direction="RIGHT">
<action type="SEND_KEYS">Alt+Left</action>
</gesture>

</application>
</touchégg>

If I run it from a service it generate an error and the newest version does not work, only the repo once. I use the ubuntu repo version (1.1.1–0ubuntu4) and I run it into a shell. An alternative is to recompile it as explained there.

I also use GnomePie to run quickly some category of apps, for example I use from keayboard Ctrl+Alt+M to open a pie with all my favourite application for music, and many other. To use this I create a Pie that include all other my pies and I assign to 3 fingers tap: it simulate the press of Ctrl+Alt+Q that is my saved shortcut.

If you want to completely uninstall run:

Also fusuma seams does not work. I do not try libinput-gesture.

Concluded experience?

I this period I’ ll try to use it without physic keayboard, but no all linux apps are too ready for the touch experience. But also the worth apps seams to be at least usable. So touchegg or similar for touch gesture are very important to have a good touch experience.

In the future I will update this article with new solution. If some readers have better idea to solve the actually problem write there. I dream a community of linux user that use abitually touch feature as user, in order to the touch experience does not remain the prerogative of microsoft, Android and iOs.