2018-08-30 3:54 GMT+08:00 Daniel Cheung <
dwt.c...@gmail.com>:
> After some trial and error, I got the matrix to work with 0,-1,0,-1,0,0,0,1.
> No idea why but it worked. I read the original code comment that I found
Just a rotation matrix.
Your matrix means to exchange x and y axes
and reverse both values.
> online and it doesn't even explain how it works. What is the difference
> between iio and iio-old?
Current iio hal was developed by Intel.
It works well on most iio type sensors I've tested.
iio-old (former iio hal) is written by me.
It's just a simple hacking since I'm not really
familiar with iio protocol.
It works on some devices but not all.
I'm surprised but glad to know it works for you.
Please provide your device info by the commands:
(by root)
cat /sys/class/dmi/id/product_name
cat /sys/class/dmi/id/board_name
cat /sys/class/dmi/id/uevent
I'll add it in the later release.