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
Post Reply
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 »

Beware that two USB method. I tried this and it fouled up my multi-boot grub where I could not boot into anything but Windows.
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
Dupo
Level 5
Level 5
Posts: 511
Joined: Thu Jan 31, 2008 9:42 pm

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

Post by Dupo »

Hi,

for wifi and bluethooth (RTL8723BS) you can use the following firmware : https://github.com/apinela/rtl8723bs :wink:

Do you have a rt5640 audio hardware on it ? I try to find a solution to enable sound for 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 »

Dupo wrote:Hi,

for wifi and bluethooth (RTL8723BS) you can use the following firmware : https://github.com/apinela/rtl8723bs :wink:

Do you have a rt5640 audio hardware on it ? I try to find a solution to enable sound for it.
Is bluetooth working with that driver?
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 »

bbaker6212 wrote:
Dupo wrote:Hi,

for wifi and bluethooth (RTL8723BS) you can use the following firmware : https://github.com/apinela/rtl8723bs :wink:

Do you have a rt5640 audio hardware on it ? I try to find a solution to enable sound for it.
Is bluetooth working with that driver?
That repo does not build for me on LM18 with kernel 4.7 I get compile errors. The original from 'hadess' builds OK...
viewtopic.php?f=49&t=227346&p=1200861#p1200861
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
Dupo
Level 5
Level 5
Posts: 511
Joined: Thu Jan 31, 2008 9:42 pm

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

Post by Dupo »

Hi bbaker6212,

for bluethooth support, you can check it : https://github.com/lwfinger/rtl8723bs_bt. :wink:

About you last answer, check the message in the end of this link https://gist.github.com/franga2000/2154d09f864894b8fe84.
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 »

Dupo wrote:Hi bbaker6212,

for bluethooth support, you can check it : https://github.com/lwfinger/rtl8723bs_bt. :wink:

About you last answer, check the message in the end of this link https://gist.github.com/franga2000/2154d09f864894b8fe84.
The lwfinger rtl8723bs repo builds OK on 4.7 kernel. And yes I know about the BT repo.
brad@G50 ~/working/bt/rtl8723bs $ make clean
brad@G50 ~/working/bt/rtl8723bs $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.7.0-040700-generic/build M=/home/brad/working/bt/rtl8723bs modules
make[1]: Entering directory '/usr/src/linux-headers-4.7.0-040700-generic'
CC [M] /home/brad/working/bt/rtl8723bs/core/rtw_cmd.o
CC [M] /home/brad/working/bt/rtl8723bs/core/rtw_security.o
CC [M] /home/brad/working/bt/rtl8723bs/core/rtw_debug.o
...
...
CC [M] /home/brad/working/bt/rtl8723bs/hal/HalPhyRf_8723B.o
CC [M] /home/brad/working/bt/rtl8723bs/hal/odm_RTL8723B.o
LD [M] /home/brad/working/bt/rtl8723bs/r8723bs.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/brad/working/bt/rtl8723bs/r8723bs.mod.o
LD [M] /home/brad/working/bt/rtl8723bs/r8723bs.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.7.0-040700-generic'

brad@G50 ~/working/bt/rtl8723bs $ git show
commit 3cb42f0aa127206f3a2a00f280ffcfc34ae8ee17
Merge: 4d19f17 37132d8
Author: lwfinger <Larry.Finger@lwfinger.net>
Date: Wed Aug 10 08:59:36 2016 -0500
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
Destry
Level 4
Level 4
Posts: 312
Joined: Thu Mar 03, 2016 11:57 am

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

Post by Destry »

Been too busy with life to have been on here and working on my tablet.
I just installed Sarah 18 KDE on my Chuwi Hi12 and even installed the new kernel and still face the same issues. Now I have some catching up to do here in this thread. 8)
Distro: Linux Mint 19.1
8 core 16 thread Intel Core i9-9900K (-MT-MCP-) arch: Skylake rev.12 cache: 16384 KB 5ghz
32 gig ram 2080Ti Nvidia Zotac Amp Extreme Gaming 11gb
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 was playing with my chuwi hi12 and a Ubuntu 16.04.1 live usb today and the toutch screen was working, I rebooted and it stopped so I rebooted a couple times till it started again and decided to install to the EEMC at that point, I wiped the internal disk, as I was planing on reinstalling windows anyways. To my surprise the touchscreen worked after the install... About half the time when I start it if its not working I reboot and it seems to work on the next boot. Not sure what I can do as I am a new comer to linux, and besides that at the moment I'm in the hospital with my wife becouse she might be in labour. If it helps im more than willing to do anything I can when I get home, if someone would give me a step by step of what they want.
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 was playing with my chuwi hi12 and a Ubuntu 16.04.1 live usb today and the toutch screen was working, I rebooted and it stopped so I rebooted a couple times till it started again and decided to install to the EEMC at that point, I wiped the internal disk, as I was planing on reinstalling windows anyways. To my surprise the touchscreen worked after the install... About half the time when I start it if its not working I reboot and it seems to work on the next boot. Not sure what I can do as I am a new comer to linux, and besides that at the moment I'm in the hospital with my wife becouse she might be in labour. If it helps im more than willing to do anything I can when I get home, if someone would give me a step by step of what they want.
In both the cases where it's working and not working type the keys Ctrl-Alt-T at once to open a Terminal window and run this command (you'll have to move or rename the resulting touch.txt file on subsequent runs)

Code: Select all

lsusb > touch.txt ; xinput >> touch.txt ; dmesg >> touch.txt
Then post the content of the resulting touch.txt files to http://www.pastebin.com and post the URLs to those pages here - the working and not working outputs.

Congrat's and good luck with the baby! ;)
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 »

the working touch is at http://pastebin.com/87mieCZE , im not sure if this information is helpful but the TS only seems to work when i boot wthout a mouse attached
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 »

This is touch not working http://pastebin.com/ra2esCe7
handygeek
Level 1
Level 1
Posts: 17
Joined: Sat Jul 16, 2016 3:10 pm

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

Post by handygeek »

Can you move the mouse to a different USB port and try again?
The mouse and the touchscreen may be competing for the same resource.
I'm guessing someone can tweak a script somewhere in the system to force the mouse and touchscreen to test for a busy resource and seek a different USB port.
I'm so far from the day when I tinkered with such things I don't even remember where to look - let alone remember what to do to fix it!
David
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 looks like I was mistakin about the mouse being related to the touchscreen problem as playing with it some more I can see no pateren, it still worked more often than not even after I reinstalled windows and booted off the same live CD a bunch more times. With windows present on the internal storage and without it there.
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:This is touch not working http://pastebin.com/ra2esCe7
just noticed. In this non-working case you have the following output:
[ 7.857610] Goodix-TS i2c-GDIX1001:00: ID 9111, version: 1060
[ 7.864924] Goodix-TS i2c-GDIX1001:00: Invalid config, using defaults
[ 7.865203] input: Goodix Capacitive TouchScreen as /devices/pci0000:00/808622C1:05/i2c-13/i2c-GDIX1001:00/input/input8
The middle bolded line does not exist in the log you posted when you say your TS was working. So to me that is saying that in this latter case it's not seeing a valid configuration for some reason and perhaps in the working case it *somehow* is seeing a configuration it likes. Why/how this is happening I have no idea right now but it's one avenue to investigate. @Destry the original poster in this thread has that same error.

The other difference in the logs is:

not working:
input: Goodix Capacitive TouchScreen as /devices/pci0000:00/808622C1:05/i2c-13/i2c-GDIX1001:00/input/input8
yes working:
input: Goodix Capacitive TouchScreen as /devices/pci0000:00/808622C1:05/i2c-13/i2c-GDIX1001:00/input/input5
So how is it deciding on this input8 versus input5? Is it important at all? I'm thinking not. but where is this specified in the configuration? Is it sometimes finding some other device that is clashing with it's configuration?
Last edited by bbaker6212 on Fri Sep 02, 2016 6:09 pm, edited 2 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
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 looks like I was mistakin about the mouse being related to the touchscreen problem as playing with it some more I can see no pateren, it still worked more often than not even after I reinstalled windows and booted off the same live CD a bunch more times. With windows present on the internal storage and without it there.
I would focus on trying to find out how and where to get debug logging output. Without that, there's prob no way to figure out what's going wrong.
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:I looks like I was mistakin about the mouse being related to the touchscreen problem as playing with it some more I can see no pateren, it still worked more often than not even after I reinstalled windows and booted off the same live CD a bunch more times. With windows present on the internal storage and without it there.
@mauser_270 are you using a USB wifi dongle? I noticed in the logs you posted that in the case of the touchscreen not working that you had this line which is missing the the log from your working case. Is this your internal WiFi device or is it an external USB dongle? If it's internal it's strange why it only showed up in your non working log. To rule out that it could be interfering, do all your touchscreen testing without any external USB devices attached.
Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
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 »

When it's not working try running these Terminal commands...

Code: Select all

modprobe -r goodix
modprobe goodix
test touchscreen

Code: Select all

modprobe -r i2c_hid
modprobe i2c_hid
test touchscreen

any difference?

If it's still not working at this point, please provide the output from this (put on http://www.pastebin.com):

Code: Select all

 dmesg ; sudo dmidecode ; lsmod
Last edited by bbaker6212 on Fri Sep 02, 2016 6:50 pm, edited 2 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 did have a USB wifi dongle attached for one log and I may have took it off on the other, I misread the instructions to install the wifi driver and missed the part about puting it into PCI mode in the bios. I dont think it has any relevance on the touch screen issue. I will install to a USB 3 stick tonight and back to you on your other post.
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 »

Something else to try. I rebuilt the Hadess' goodix touchscreen driver using more reasonable defaults for the Hi12 screen size (2160x1440) just to see if that makes any difference when it encounters that error "Invalid config, using defaults" where the code looks like it's defaulting to 4096x4096. But it could be something more important than screen size that's not being set correctly at startup/default - eg. and IRQ or other improtant value (Note: I built it using kernel 4.8; if you cannot load it let me know what kernel version you're on) [EDIT:] @Destry has a post here with instructions for rebuilding/installing the driver so you could also do it yourself. The change I made was only commenting out 3 lines and changing their values in the file goodix.c like this...
/* Chuwi Hi12 is 2160 x 1440 */
#define GOODIX_MAX_HEIGHT 2160
#define GOODIX_MAX_WIDTH 1440
#define GOODIX_MAX_CONTACTS 5
// #define GOODIX_MAX_HEIGHT 4096
// #define GOODIX_MAX_WIDTH 4096
#define GOODIX_INT_TRIGGER 1
#define GOODIX_CONTACT_SIZE 8
// #define GOODIX_MAX_CONTACTS 10
You can download the driver goodix_backport.ko here: https://my.pcloud.com/publink/show?code ... hxdySuFcEk

Now, how to make it load the new one instead of the old one. The original driver is here:

Code: Select all

ls -l /lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/goodix.ko
From the same folder that contains the downloaded goodix_backport.ko I think you can just do

Code: Select all

sudo modprobe -rv goodix
sudo modprobe -v goodix_backport
sudo modinfo goodix_backport
If that doesn't work try backing up and then over-writing the original goodix.ko driver at the location stated above (renaming goodix_backport.ko to goodix.ko). then unload the original driver/module and reload it (assuming you downloaded goodix_backport.ko to your ~ home folder:

Code: Select all

sudo modprobe -rv goodix
sudo mv /lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/goodix.ko /lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/goodix.ko.backup
sudo mv ~/goodix_backport.ko /lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/goodix.ko
sudo modprobe -v goodix
If it does not work then copy back the original driver goodix.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
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 »

Sorry havent had a chance to do much tonight. I can tell you that I installed kernal 4.7.2 and ran modprobe -r goodix, and it said somthing to the effect of the module was not installed in that kernal. In 4.4 running modprobe -r goodix stopped the touch screen form working and modprobe goodix started it again. But I dident have enough time to get it to boot into kernal 4.4 without it working. I'll try and fet further tommorow
Post Reply

Return to “Hardware Support”