Teclast X4 (tablet) accelerometer does not work in Android-x86 but works in Windows10

275 views
Skip to first unread message

Александр Леонтьев

unread,
Feb 2, 2020, 4:36:47 AM2/2/20
to Android-x86
Hello everyone. I have a tablet "Teclast X4". Windows 10 was installed when I bought this tablet. I installed Android-x86 else. But in Android-x86 does not work  accelerometer (Rotate-sensor tilt-sensor, G-sensor, axis-sensor). Can you please add a support of accelerometer of Teclast X4?

I opened Device Manager in Windows10 and found  that Teclast X4 uses "Kionix KXCJ9 3-axis accelerometer".
If you need any info or any tests of Teclast X4 I am ready to do it!

DeviceManager.jpg

Daniel Cheung

unread,
Feb 2, 2020, 4:39:52 AM2/2/20
to andro...@googlegroups.com
It is supported. Search for the words "screen rotation" on the forum. A few other Teclast only, myself included, had the same problem.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/1e9a25d6-9d92-422f-bbf3-bc3599dbb43b%40googlegroups.com.

Александр Леонтьев

unread,
Feb 2, 2020, 5:02:03 AM2/2/20
to Android-x86
I found that https://www.kionix.com/downloads placed drivers for "KXCJ9". Can you add them to thee next release of android-x86 please

воскресенье, 2 февраля 2020 г., 12:36:47 UTC+3 пользователь Александр Леонтьев написал:

kevin.Liu

unread,
Feb 2, 2020, 5:41:36 AM2/2/20
to android-x86
you may want to search this forum first. I have a teclast x98 tablet and had the same issue. Sulution is as follows 
for auto rotation, edit /etc/init.sh
try going into init.sh and scroll down to init_hal_sensors function and after the last "fi" statement insert the following:
has_sensors=true
hal_sensors=iio
set_property ro.iio.accel.quirks no-trig #insert this line if screen is 90 degree rotation instead of 180, it exchanges Y and X axis
set_property ro.iio.accel.x.opt_scale -1 #Use one or more of them, depends on which axes are inverted. 
set_property ro.iio.accel.y.opt_scale -1 
set_property ro.iio.accel.z.opt_scale -1



------------------ Original ------------------
From: "Александр Леонтьев" <sane...@gmail.com>; <"Александр Леонтьев" <sane...@gmail.com>;>
Date: Sun,Feb 2,2020 6:31 PM
To: kevin.liu912 <kevin....@gmail.com>
Subject: Re: Teclast X4 (tablet) accelerometer does not work in Android-x86but works in Windows10

I found that https://www.kionix.com/downloads placed drivers for "KXCJ9". Can you add them to thee next release of android-x86 please

воскресенье, 2 февраля 2020 г., 12:36:47 UTC+3 пользователь Александр Леонтьев написал:
Hello everyone. I have a tablet "Teclast X4". Windows 10 was installed when I bought this tablet. I installed Android-x86 else. But in Android-x86 does not work  accelerometer (Rotate-sensor tilt-sensor, G-sensor, axis-sensor). Can you please add a support of accelerometer of Teclast X4?

I opened Device Manager in Windows10 and found  that Teclast X4 uses "Kionix KXCJ9 3-axis accelerometer".
If you need any info or any tests of Teclast X4 I am ready to do it



------------------ Original ------------------
From: Daniel Cheung <dwt.c...@gmail.com>
Date: Sun,Feb 2,2020 5:39 PM
To: android-x86 <andro...@googlegroups.com>
Subject: Re: Teclast X4 (tablet) accelerometer does not work in Android-x86but works in Windows10

Александр Леонтьев

unread,
Feb 2, 2020, 8:24:44 AM2/2/20
to Android-x86
воскресенье, 2 февраля 2020 г., 13:41:36 UTC+3 пользователь kevin.Liu написал:
> you may want to search this forum first. I have a teclast x98 tablet and had the same issue. Sulution is as follows 
> for auto rotation, edit /etc/init.sh
> try going into init.sh and scroll down to init_hal_sensors function and after the last "fi" statement insert the following:
> has_sensors=true
> hal_sensors=iio
> set_property ro.iio.accel.quirks no-trig #insert this line if screen is 90 degree rotation instead of 180, it exchanges Y and X axis
> set_property ro.iio.accel.x.opt_scale -1 #Use one or more of them, depends on which axes are inverted. 
> set_property ro.iio.accel.y.opt_scale -1 
> set_property ro.iio.accel.z.opt_scale -1
>
>
> 发自我的iPhone
>
>
>
>
> ------------------ Original ------------------
>
> From: "Александр Леонтьев" <sane...@gmail.com>; <"Александр Леонтьев" <sane...@gmail.com>;>
> Date: Sun,Feb 2,2020 6:31 PM
> To: kevin.liu912 <kevin...@gmail.com>
> Subject: Re: Teclast X4 (tablet) accelerometer does not work in Android-x86but works in Windows10
>
> I found that https://www.kionix.com/downloads placed drivers for "KXCJ9". Can you add them to thee next release of android-x86 please
>
> воскресенье, 2 февраля 2020 г., 12:36:47 UTC+3 пользователь Александр Леонтьев написал:
>
> Hello everyone. I have a tablet "Teclast X4". Windows 10 was installed when I bought this tablet. I installed Android-x86 else. But in Android-x86 does not work  accelerometer (Rotate-sensor tilt-sensor, G-sensor, axis-sensor). Can you please add a support of accelerometer of Teclast X4?
>
>
> I opened Device Manager in Windows10 and found  that Teclast X4 uses "Kionix KXCJ9 3-axis accelerometer".
> If you need any info or any tests of Teclast X4 I am ready to do it
>
>
> 发自我的iPhone
>
>
>
>
> ------------------ Original ------------------
>
> From: Daniel Cheung <dwt....@gmail.com>
> Date: Sun,Feb 2,2020 5:39 PM
> To: android-x86 <andro...@googlegroups.com>
> Subject: Re: Teclast X4 (tablet) accelerometer does not work in Android-x86but works in Windows10
>
> It is supported. Search for the words "screen rotation" on the forum. A few other Teclast only, myself included, had the same problem.
>
>
> On Sun, Feb 2, 2020, 1:36 AM Александр Леонтьев <sane...@gmail.com> wrote:
>
>
> Hello everyone. I have a tablet "Teclast X4". Windows 10 was installed when I bought this tablet. I installed Android-x86 else. But in Android-x86 does not work  accelerometer (Rotate-sensor tilt-sensor, G-sensor, axis-sensor). Can you please add a support of accelerometer of Teclast X4?
>
>
> I opened Device Manager in Windows10 and found  that Teclast X4 uses "Kionix KXCJ9 3-axis accelerometer".
> If you need any info or any tests of Teclast X4 I am ready to do it!
>
>
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "Android-x86" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/1e9a25d6-9d92-422f-bbf3-bc3599dbb43b%40googlegroups.com.
>
>
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "Android-x86" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
helo. I did what you told. It does not help =(

Александр Леонтьев

unread,
Feb 2, 2020, 10:04:35 AM2/2/20
to Android-x86
воскресенье, 2 февраля 2020 г., 12:36:47 UTC+3 пользователь Александр Леонтьев написал:
> Hello everyone. I have a tablet "Teclast X4". Windows 10 was installed when I bought this tablet. I installed Android-x86 else. But in Android-x86 does not work  accelerometer (Rotate-sensor tilt-sensor, G-sensor, axis-sensor). Can you please add a support of accelerometer of Teclast X4?
>
>
> I opened Device Manager in Windows10 and found  that Teclast X4 uses "Kionix KXCJ9 3-axis accelerometer".
> If you need any info or any tests of Teclast X4 I am ready to do it!

I found a solution how to make rotate-sensor works fine in Teclast X4
I edited /etc/init.sh this way:
I scrolled down to init_hal_sensors function and after the last "fi" statement insert the following:
has_sensors=true
hal_sensors=iio
set_property ro.iio.accel.quirks no-trig
set_property ro.iio.accel.order 102


So I received that:
elif [ "$hal_sensors" != "kbd" ]; then
has_sensors=true
fi
has_sensors=true
hal_sensors=iio
set_property ro.iio.accel.quirks no-trig
set_property ro.iio.accel.order 102

set_property ro.hardware.sensors $hal_sensors
set_property config.override_forced_orient ${HAS_SENSORS:-$has_sensors}
}

function create_pointercal()
{

After reboot rotation works well


Reply all
Reply to author
Forward
0 new messages