Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

OK, thanks. So you are running the default Unity desktop. I wonder if that, combined with using a Kernel above v4.5 is why your Hi12 is working better than others has. Nobody else but you has had even partial TS working as far as I know... with LinuxMint that is.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
mauser_270
Level 2
Level 2
Posts: 59
Joined: Sun Aug 28, 2016 2:37 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by mauser_270 »

Yes I am just running vanilla unbuntu now with a newer kernal
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

mauser_270 wrote:Yes I am just running vanilla unbuntu now with a newer kernal
Each time you startup are you starting up from power-on cold boot or are you sometimes starting up from being suspended or hybernated?
Just trying to think of why it might be getting a different configuration sometimes that's making it fail.
Also, are you now running with the rtl8723bs wifi driver built into the Hi12 (built from the Hadess driver)? or still using the USB wifi dongle?

edit: ah, I see this in your dmesg output so is your onboard WiFi working now?...
[ 8.679940] RTL8723BS: module init start
[ 8.679951] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 8.679955] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
Last edited by bbaker6212 on Sun Sep 04, 2016 3:46 pm, edited 3 times in total.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
mauser_270
Level 2
Level 2
Posts: 59
Joined: Sun Aug 28, 2016 2:37 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by mauser_270 »

I have been only starting from off or restarting, I haven't let it go to sleep or put it into hibernation
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

mauser_270 wrote:I have been only starting from off or restarting, I haven't let it go to sleep or put it into hibernation
OK good to know. Your internal wifi working now?
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
mauser_270
Level 2
Level 2
Posts: 59
Joined: Sun Aug 28, 2016 2:37 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by mauser_270 »

Yes it is thank you for the help.
mauser_270
Level 2
Level 2
Posts: 59
Joined: Sun Aug 28, 2016 2:37 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by mauser_270 »

Has any one got this working https://github.com/lwfinger/rtl8723bs_bt for Bluetooth on this tablet, I was a little unclear on that as i read through this thread.
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

[edit:] eh. wait on this until I remove this edit line. I think this does not work. It was directions I got from reading a developer post and I think it's old/outdated now...
Since that error is complaining about the config, lets see if we can dump the configuration of the goodix TS at both the time when it's working and also when it's failing:

run this

Code: Select all

dmesg | grep 'input: Goodix'
and you should see a line like this
[ 8.090398] input: Goodix Capacitive TouchScreen as /devices/pci0000:00/808622C1:05/i2c-13/i2c-GDIX1001:00/input/input6
take note of the last part of that line which says 'input6' or some other number in place of 6.

now dump current configuration of the device replacing below 'input4' with 'input6' or whatever was your result from above:

Code: Select all

cat /sys/class/input/input4/device/dump_config > goodix_911_cfg
now what is the content of the resulting goodix_911_cfg file? Paste it to http://www.pastebin.com if it's big:

Code: Select all

cat goodix_911_cfg
[/i]
Last edited by bbaker6212 on Sun Sep 04, 2016 5:24 pm, edited 1 time in total.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

mauser_270 wrote:Has any one got this working https://github.com/lwfinger/rtl8723bs_bt for Bluetooth on this tablet, I was a little unclear on that as i read through this thread.
I don't think I've heard anyone so far report the BT is working but also I don't know if/how-much anyone tried. I think, though I'm not sure, that the Hadess 8723bs (not bs_bt) driver https://github.com/hadess/rtl8723bs operates both the WiFi and Bluetooth. That's how the other Realtek drivers work but who knows, maybe as of now it does require that bs_bt driver? dunno. The Hadess repo includes the file 'rtl8723bs_bt.bin' which looks like a bluetooth firmware file.

Btw, a little gotcha on that 8723bs driver. The name of the module after you build it is different than you'd expect. It does not start with 'rtl'
as you can see in the Makefile:
MODULE_NAME = r8723bs
So if you modprobe it to load/unload use that name.
If you do 'make' and then 'make install' it should install it correctly as r8723bs.

[edit:] sorry, I didn't see that you said you have WiFi working now, so you're already up on the Hadess bs driver.
Last edited by bbaker6212 on Sun Sep 04, 2016 5:23 pm, edited 1 time in total.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

mauser_270 wrote:Yes it is thank you for the help.
One thing I'm confused about. You said that the goodix driver was not present in kernel 4.7.2 right?
So how was it working at all until you built the goodix_backport module? Or was it working (~50% of the time) only when you booted into kernel 4.4?

Another separate question. Many people on TechTablets have been afraid to install Linux to the MMC/SD drive of their Hi10/Hi12. Did you have any problem installing Ubuntu? Did you install by wiping the drive or did you install as grub and dual-boot with Windows? What directions did you follow to do it? thanks.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

<deleted - see posts below>
Last edited by bbaker6212 on Thu Sep 08, 2016 7:31 pm, edited 10 times in total.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
mauser_270
Level 2
Level 2
Posts: 59
Joined: Sun Aug 28, 2016 2:37 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by mauser_270 »

Yes it was on 4.4 that it was working 50% of the time, I installed 4.7 to see if I could get my internal wifi to work, that was about the time you posted wondering if the goodix_backport would work any better for me so figured I would try it on 4.7 first. I did wipe the entire internal EEMC and installed on to that originally just like I would on any other PC, knowing that all the files to turn it back to stock were on the chuwi forums. Since then I reinstalled only windows no guide needed you realy only need the driver dump to get everything up and running once you have installed I used a stock copy of windows and a external DVD drive. I reinstalled Ubuntu to a 64gb usb3 drive in hopes one day I can just clone it to the internal drive once it in a more usable state. I hope to get to try that new driver soon but it will probably be two days before I can get back to it.
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

Got confirmation from an Ubuntu developer that that above mentioned "reinforce" version of the goodix_backport driver is the main one that should be used"
Sent: Mon Sep 05, 2016 10:09 am
From: JeremyB
Recipient: bbaker6212

I would use the device-tree branch from reinforce. If you have already cloned a github named gt9xx you can cd into the Desktop and clone

cd Desktop
git clone -b device-tree --single-branch https://github.com/reinforce/gt9xx.git


Then cd into gt9xx and do the compile and install the driver

The version in device-tree by reinforce is identical to the latest kernel source code but there hasn't been a change made this year but for some reason the 4.4 kernel doesn't have all the changes
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

a bit more info below from Jeremy that will help anyone wanting to build the goodix_backport TS driver. You can download it here from my pCloud if you can't compile it : goodix_backport.ko (31416 bytes) https://my.pcloud.com/publink/show?code ... se5H2EakmV Make sure to perform his steps below to install it including 'depmod', 'lsmod', and blacklisting the goodix.ko module if it's present in the kernel you are using:
Sent: Mon Sep 05, 2016 11:06 am
by JeremyB

I am not a developer.

The reason I had you switch the terminal to Desktop is that the git clone command won't do anything if a directory is already present, in this case gt9xx

You could delete or rename the gt9xx folder from your home folder and run the command

Code: Select all

git clone -b device-tree --single-branch https://github.com/reinforce/gt9xx.git
And it should create a gt9xx folder with the latest source code

If it becomes a big problem you can just copy the needed files, create a directory and copy them in

Code: Select all

mkdir gt9xx-test
cd gt9xx-test
wget https://raw.githubusercontent.com/reinforce/gt9xx/device-tree/goodix.c
wget https://raw.githubusercontent.com/reinforce/gt9xx/device-tree/Makefile

You may have to blacklist the goodix module with

Code: Select all

echo "blacklist goodix" | sudo tee /etc/modprobe.d/blacklist.conf
Reboot and after building the module do

Code: Select all

sudo depmod -a
Then reboot again and see if the goodix_backport is listed in

Code: Select all

lsmod
Last edited by bbaker6212 on Mon Sep 05, 2016 10:57 am, edited 8 times in total.
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
JeremyB
Level 20
Level 20
Posts: 11699
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by JeremyB »

Code: Select all

mkdir gt9xx-test
wget https://raw.githubusercontent.com/reinforce/gt9xx/device-tree/goodix.c
wget https://raw.githubusercontent.com/reinforce/gt9xx/device-tree/Makefile
Should be

Code: Select all

mkdir gt9xx-test
cd gt9xx-test
wget https://raw.githubusercontent.com/reinforce/gt9xx/device-tree/goodix.c
wget https://raw.githubusercontent.com/reinforce/gt9xx/device-tree/Makefile
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

JeremyB wrote:...
@JeremyB, I notice that performing your steps above does not result in the newly built file being copied to the /lib/modules/* folder - ie, in my case I already had a previous version of goodix_backport.ko there. Should overwriting that file if it exists be a required install step as well, or is this because I did not reboot after doing modprobe and depmod?
brad@G50 ~/working/goodix/reinforce/gt9xx $ sudo modprobe -rv goodix_backport
brad@G50 ~/working/goodix/reinforce/gt9xx $ sudo modprobe -v goodix_backport
insmod /lib/modules/4.8.0-040800rc1-generic/extra/goodix_backport.ko
brad@G50 ~/working/goodix/reinforce/gt9xx $ sudo depmod -a
brad@G50 ~/working/goodix/reinforce/gt9xx $ lsmod | grep goodix
goodix_backport 20480 0
brad@G50 ~/working/goodix/reinforce/gt9xx $ diff ./goodix_backport.ko /lib/modules/$(uname -r)/extra/goodix_backport.ko
Binary files ./goodix_backport.ko and /lib/modules/4.8.0-040800rc1-generic/extra/goodix_backport.ko differ
brad@G50 ~/working/goodix/reinforce/gt9xx $ ls -l *.ko
-rw-r--r-- 1 brad brad 31416 Sep 5 10:42 goodix_backport.ko
brad@G50 ~/working/goodix/reinforce/gt9xx $ ls -l /lib/modules/4.8.0-040800rc1-generic/extra/goodix_backport.ko
-rw-r--r-- 1 root root 30960 Sep 4 20:43 /lib/modules/4.8.0-040800rc1-generic/extra/goodix_backport.ko
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
JeremyB
Level 20
Level 20
Posts: 11699
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by JeremyB »

Change the name of the current module

Code: Select all

sudo mv /lib/modules/$(uname -r)/extra/goodix_backport.ko /lib/modules/$(uname -r)/extra/goodix_backport.ko.bak
Then see if

Code: Select all

sudo make install
works as it should.

I just did a diff on the github source versus the 4.8 kernel source and even though the logs show the commits by the same people they are still different
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

I'm getting an error...could be my 4.8-rc1. I'll try on 4.7
brad@G50 ~/working/goodix/reinforce $ git clone -b device-tree --single-branch https://github.com/reinforce/gt9xx.git
Cloning into 'gt9xx'...
remote: Counting objects: 490, done.
remote: Total 490 (delta 0), reused 0 (delta 0), pack-reused 490
Receiving objects: 100% (490/490), 114.16 KiB | 0 bytes/s, done.
Resolving deltas: 100% (297/297), done.
Checking connectivity... done.
brad@G50 ~/working/goodix/reinforce $ cd gt9xx/
brad@G50 ~/working/goodix/reinforce/gt9xx $ make
make -C /lib/modules/4.8.0-040800rc1-generic/build SUBDIRS=/home/brad/working/goodix/reinforce/gt9xx modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-040800rc1-generic'
CC [M] /home/brad/working/goodix/reinforce/gt9xx/goodix.o
LD [M] /home/brad/working/goodix/reinforce/gt9xx/goodix_backport.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/brad/working/goodix/reinforce/gt9xx/goodix_backport.mod.o
LD [M] /home/brad/working/goodix/reinforce/gt9xx/goodix_backport.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-040800rc1-generic'
brad@G50 ~/working/goodix/reinforce/gt9xx $ sudo mv /lib/modules/$(uname -r)/extra/goodix_backport.ko /lib/modules/$(uname -r)/extra/goodix_backport.ko.bak
brad@G50 ~/working/goodix/reinforce/gt9xx $ sudo make install
make -C /lib/modules/4.8.0-040800rc1-generic/build SUBDIRS=/home/brad/working/goodix/reinforce/gt9xx modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-040800rc1-generic'
INSTALL /home/brad/working/goodix/reinforce/gt9xx/goodix_backport.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory

DEPMOD 4.8.0-040800rc1-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-040800rc1-generic'
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
JeremyB
Level 20
Level 20
Posts: 11699
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by JeremyB »

It got installed, I am not sure why the error shows up but you will find it in

Code: Select all

ls /lib/firmware/$(uname -r)/extra
User avatar
bbaker6212
Level 5
Level 5
Posts: 522
Joined: Wed Aug 12, 2015 6:35 pm

Re: Linux Mint 18 Working on Chuwi Hi12 Tablet PC 64 Bit Cherry Trail Quad Core

Post by bbaker6212 »

JeremyB wrote:It got installed, I am not sure why the error shows up but you will find it in

Code: Select all

ls /lib/firmware/$(uname -r)/extra
Cool. The error may be my RC kernel. There is no 'extra' folder under /lib/firmware/4.8.xxx-generic. I think you meant '/lib/modules/4.8.0-xxx-generic' ?...
brad@G50 ~/working/goodix/reinforce/gt9xx $ ls -l /lib/modules/4.8.0-040800rc1-generic/extra
total 64
-rw-r--r-- 1 root root 31416 Sep 5 12:56 goodix_backport.ko
-rw-r--r-- 1 root root 31416 Sep 5 12:42 goodix_backport.ko.bak
Linux Mint Mate 19.1 k/4.15, Windows 10, Manjaro 18.03 Xfce k/4.19.24-1 MX-Linux 18.1 Lenovo Ideapad G50-45 8GB
Lenovo Ideapad 330S-15IKB, Core i5-8250U, 8GB RAM, Samsung EVO 850 SATA SSD, 14GB Optane M.2 PCIe NVMe, QCA9377 WiFi
Post Reply

Return to “Hardware Support”