# A story about a Linux beginner putting Linux on a Windows tablet

This is Qiita's first post. It's a poor sentence, but it would be helpful if you could get along with me.

## Windows tablet is heavy (subject is huge)

I'm using an ASUS Transbook R106HA (although the contents seem to be T102HA) purchased around October 2018, but with 4GB of memory, it's still severe and heavy for Windows 10. did. If I use Windows, I thought it would be okay to use my laptop laptop, so I left it until June 2019.

## The reason I decided to reuse it

The battery of the notebook PC that I usually use is exhausted, and if the lecture is for 3 consecutive periods, I have fallen into a situation where it will run out in the middle unless the charge is inserted once. Then, as a result of thinking that I could improve the tablet I mentioned earlier and use it, I decided to install Linux, Maru.

## In making Linux

I would like to install Linux in advance. For the time being, introduce the specifications.

ASUS Transbook T102HA(R106HA)
CPU Intel Atom x5-Z8350
storage eMMC:64GB
RAM 4GB

Also, even if you wear a keyboard dock soberly, it's good that it doesn't weigh 1 kg. And as for the distribution to be included, this time I have selected the Xubuntu 18.04 LTS version. The reason is that the load on the CPU is relatively small.

Please refer to here for the installation procedure.

It went smoothly until the installation was completed.

## Occurrence of trouble

I had some troubles when I tried using it, so I will write it in addition to the memorandum.

--Screen related troubles

As mentioned in the article I referred to earlier, if this tablet is the default, the vertical state of the main body will be the default.

If you rotate the screen 90 degrees to the right, it will be in the normal orientation when the main unit is laid down, so set the orientation to the right from xrandr -o right or screen settings on the terminal. However, since the coordinates when touched do not move, it is necessary to calibrate the touch panel as well.

Hitting xinuput list will output a list of input devices such as mouse and keyboard. So get the name of the touch panel. Then enter the command xinput set-prop'dev-name''Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1 to calibrate. ('dev-name' can be replaced with id, but it is not recommended because it will change when forced termination etc.)

For the acquisition of the input device name and the principle, this is Reference. From here, the Coordinate Transformation Matrix is

\begin{matrix}
\cos\theta & \sin\theta & 0 \\
-\sin\theta & \cos\theta & 0 \\
0 & 0 & 1
\end{matrix}


It has become. 0 degrees (normal) and 90 degrees (when correcting the touch coordinates to the right) are

\theta = 0 \\
\begin{matrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{matrix} \\
\theta = 90 \\
\begin{matrix}
0 & 1 & 0 \\
-1 & 0 & 0 \\
0 & 0 & 1 \\
\end{matrix}


Will be. Even if I remember, I think I will only use it at 0 or 90 degrees after all ...

I wrote it in ~ / .profile. I think it's probably better to write it somewhere else. (Not applicable on the login screen)

--Bluetooth starts without permission

For some reason, immediately after installation, Bluetooth was turned on by default at startup. At first I thought that it was in either the profile or the config, and when I searched for ~~ with the clumsy keyword of ~~ linux bluetooth automatic connection ~~, here I arrived at the article.

[policy]
AutoEnable == true


Make changes and reboot. But failed. As a result of rushing and looking at various things, I was able to prevent it from turning on automatically if I turned it off because Blueman Bluetooth Manager was included in the automatic start application.

## After maintenance

I was able to solve the cause of the inconvenience in using it. Since it is a tablet PC as a future issue, I would like to be able to detect screen rotation and automatically switch the screen orientation. As an aside, I used to install Linux Mint MATE before installing Xubuntu, but I changed to Xubuntu because the battery life is very poor (it only lasts for about an hour). It was a good experience to be able to experience the difference between distros in this way. ~~ Or rather, there is a problem on the side of Linux Mint who can not change the screen brightness ~~

### Postscript (2020/1/28)

I was able to talk at a later date → https://qiita.com/Requin/items/cde193aaf4b9ff5dae78