You are not logged in.

#1 2021-07-10 04:47:18

cstn
Member
Registered: 2019-12-24
Posts: 37

Kionix 3-axis accelerometer sensor NOT work

My laptop(tablet) has a "Kionix 3-axis accelerometer" sensor and "Kionix 3-axis accelerometer in keyboard" sensor, which informed in Windows. It can sense the screen rotation and auto enable/disable the keyboard when the screen flip.

The driver for these sensors seems called "kxcjk1013"
It seems not work in linux, here's the dmesg message:

[tom@testlaptop ~]$ sudo dmesg | grep kxcjk
[    7.131538] kxcjk1013 i2c-KIOX010A:00: mounting matrix not found: using identity...
[    7.131551] kxcjk1013 i2c-KIOX010A:00: supply vdd not found, using dummy regulator
[    7.131636] kxcjk1013 i2c-KIOX010A:00: supply vddio not found, using dummy regulator
[    7.289021] kxcjk1013 i2c-KIOX020A:00: mounting matrix not found: using identity...
[    7.289040] kxcjk1013 i2c-KIOX020A:00: supply vdd not found, using dummy regulator
[    7.289126] kxcjk1013 i2c-KIOX020A:00: supply vddio not found, using dummy regulator

How can I active the sensors to work?

Offline

#2 2021-07-10 04:52:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Kionix 3-axis accelerometer sensor NOT work

Its in the vanilla kernel (at least 5.13.1). Can you load it manually?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-07-10 09:09:24

cstn
Member
Registered: 2019-12-24
Posts: 37

Re: Kionix 3-axis accelerometer sensor NOT work

jasonwryan wrote:

Its in the vanilla kernel (at least 5.13.1). Can you load it manually?

I checked the page, yes there is the kxcjk1013 driver. But I think my current system running kernel 5.12.13-arch1-2 contains the kxcjk1013 driver according to my dmesg info.

For further check, I disassembled my laptop, and checked the sensor chip is KXCJ9(KXCJ9_1918). Then I found a topic:
https://techtablets.com/forum/topic/kio … -on-linux/

the topic mentioned a kernel patch, just added a PID to make the driver work:
https://patchwork.kernel.org/project/li … edhat.com/

So, I want to have a try adding my specific VID and PID to build my custom kernel.

My current arch system runs 5.12.13-arch1-2 kernel, not the newest.

Is there a step by step way to build an old customed kernel?

Offline

#4 2021-07-10 19:49:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Kionix 3-axis accelerometer sensor NOT work

cstn wrote:

Is there a step by step way to build an old customed kernel?

There is a wiki page for kernel compilation. But you are better off just upgrading to the new kernel: that's the whole point of Arch.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB