jmgomez-IAA / loogbook

Personal web page
0 stars 0 forks source link

Post Ideas: Chiwi Hi10 #54

Open jmgomez-IAA opened 4 years ago

jmgomez-IAA commented 4 years ago

Archlinux

Install Linux

First of all you need to install Linux on the tablet. That means you will erase your internal Windows installation, so make sure to either do a backup of it, or at least make yourself familiar with how to reinstall Windows in case it's needed.

Please note that you can NOT install Linux on an SDCard because the BIOS can not boot from the SDCard.

Backup

You can find the Hi10 Air Windows drivers here: https://forum.chuwi.com/forum.php?mo...hread&tid=6861 And a guide here (applies for the Hi10 Air too): https://forum.chuwi.com/forum.php?mo...age=7#pid29091 https://forum.chuwi.com/thread-15-1-1.html

Install

Next up, it's time to choose your Linux distro. I recommend anything that is based on Arch Linux and that uses either LightDM or lxdm, because that is what my guide will be using to setup certain features. Of cause you're free to choosewhatever you want.

That means you could for example use Antergos, an ArchLinux based distro that includes Desktop managers (for Antergos I recommend XFCE), or go the hard way and install ArchLinux from scratch and use lxdm with LXQt. LXQt proved to me to be the best lightweight and yet High-DPI friendly Desktop Environment, so that's what I used.

I trust you will be able to find the guides on how to install either with a quick Google search, so I will not go much further into detail here. To get into the boot menu, you need to press F7.

After your installation is done most things are already working.

Fixing Remaining Issues

Out of the box, there are a few issues and things that do not work because they are missing drivers or similar.

Automatic Rotation

We're getting started with the most important which is rotation.

As you'll need to enter a couple commands to get automatic rotation working, start off with manually rotating the screen by opening a terminal and run the command Code:

xrandr -o left

Note: xrandr is part of xorg-xrandr, and you will need that package for autoration to work.

There are a couple solution on how to rotate the screen out there, however I decided to go for the one with least overhead that looked the cleanest to me.

First of all, compile the 2in1screen binary. The sourcecode can be found on my GitHub. Download, compile it and push it to /usr/local/bin.

Note: Make sure to install xorg-xrandr and xorg-xinput for this tool to work.

Code:

wget https://raw.githubusercontent.com/Myself5/Chuwi_Hi10_Air_Linux/master/2in1screen.c
gcc -O2 -o 2in1screen 2in1screen.c
sudo mv 2in1screen /usr/local/bin/
sudo chmod +x /usr/local/bin/2in1screen

Now configure the Desktop Manager to start it after login.

LXDE: add Code:

/usr/local/bin/2in1screen &

to Code:

/etc/lxdm/PostLogin

LightDM: Place the screenrotate.sh in /etc/lightdm/screenrotate.sh and set Code:

display-setup-script

in Code:

/etc/lightdm/lightdm.conf

to Code:

display-setup-script /etc/lightdm/screenrotate.sh

screenrotate.sh Code:

#!/bin/bash
pkill -9 2in1screen
/usr/bin/2in1screen &

Reboot and make sure everything works as desired.

Touchscreen

The Hi10 Airs Silead touchscreen requires drivers that are not bundled with a Linux install. You can download them here: https://github.com/onitake/gsl-firmw...firmware/linux See the Readme on how to install them.

These drivers get loaded by the Linux kernel. I submitted a commit to add support for the Hi10 Air to the Linux Kernel and it has been approved. The commit is merged in the 5.1 (and newer) Kernel. That means you need to update your kernel for a proper touch support.

If you previously used my Kernel you can go back to the official kernel by running: Code:

sudo pacman -R linux-chewbacca linux-chewbacca-headers
sudo pacman -Syu linux linux-headers
sudo grub-mkconfig -o /boot/grub/grub.cfg

Now reboot and enjoy your touchscreen.

Audio

If your Audio isn't working, make sure to update the alsa-lib to Version 1.1.7 or above. On Arch that package is in the stable repos so a Code:

sudo pacman -Syu

will be enough.

Bluetooth

Install blueman and follow the firmware instructions mentioned here: https://github.com/lwfinger/rtl8723b...ment-432806835

Which means you need to clone https://github.com/lwfinger/rtl8723bs_bt and run Code:

#]$ sudo cp rtlbt_fw /usr/lib/firmware/rtl_bt/rtl8723bs_fw.bin
#]$ sudo cp rtlbt_config /usr/lib/firmware/rtl_bt/rtl8723bs_config.bin
#]$ cd /usr/lib/firmware/rtl_bt
#]$ sudo ln -s rtl8723bs_config.bin rtl8723bs_config-OBDA8723.bin

General UI

Now, you probably already noticed, everything is a bit small to use your Fingers.

As a browser I recommend Google Chrome as that has a great touchscreen UI already.

For File browsing and reading I suggest using nautilus and evince because of their touch friendlyness.

System DPI

For the whole system, there is a few things you can improve: First of all, increase the general DPI. You can do so by adding Code:

Xft.dpi: 150

to Code:

~/.Xresources

. If the file doesn't exist, create it.

LXQt Tweaks

Next up a few additional tweaks for LXQt: First of all increase the Panel bar Rightclick on the Panel and Press "Configure Panel". Then set the Size to 50px and the Icon Size to 30px.

Next up, Go to the Menu -> Preferences -> LXQt settings -> Appearance -> Font and set the DPI to 96 and finally go to Menu -> Preferences -> LXQt settings -> OpenBox Settings -> Font and increase the individual fonts to get a window title bar to drag/drop as well as hit the navigation with the finger. I set mine to Cantarell 16 and Cantarell 14.

Install OnBoard

Another Handy feature I found myself in need of was an onscreen keyboard. For that I installed OnBoard, and found a very neat feature here: https://bugs.launchpad.net/onboard/+bug/1232107

You can map a button to open/close the keyboard. I set mine to Super L, which equals the left Windows button and the touch button on the tablet itself.

In the LXQt Settings Menu you can configure Shortcut Keys. Create or edit the existing shortcut and either map the following DBus Call.

DBus Call: Service: Code:

org.onboard.Onboard

Path: Code:

/org/onboard/Onboard/Keyboard

Interface: Code:

org.onboard.Onboard.Keyboard

Method: Code:

ToggleVisible

If your Desktop environment doesn't support DBus calls, use the following command: Code:

dbus-send --type=method_call --dest=org.onboard.Onboard /org/onboard/Onboard/Keyboard org.onboard.Onboard.Keyboard.ToggleVisible

Links

https://forum.xda-developers.com/general/general/chuwi-hi10-air-linux-installation-guide-t3915804

jmgomez-IAA commented 4 years ago

Windows 10

Backup

Links

Chuwi Hi10 Air Windows, driver, Bios download

jmgomez-IAA commented 4 years ago

Notas

1.- Parace ser que la bios 1903 es la misma que del AIR64G1810 (https://forum.chuwi.com/t/bios-for-chuwi-hi10-air64g18103964/4549)[https://forum.chuwi.com/t/bios-for-chuwi-hi10-air64g18103964/4549]