Any plans to drag in accelerometer driver from STMicroelectronics?
a.petrov at atweb.su
a.petrov at atweb.su
Sat Mar 2 18:09:56 UTC 2019
Hi!
Just a subject.
Here is a linux source SUB-tree from manufacturer:
https://github.com/STMicroelectronics/linux/tree/v4.19-stm32mp/drivers/iio/accel
Here is a plain independent driver sources:
https://github.com/STMicroelectronics/STMems_Standard_C_drivers
for example, this HW sensor installed in DELL Inpirion 3147:
https://www.notebookcheck.net/Dell-Inspiron-11-3147.121944.0.html
This unit visible via boot deviceprobe as:
uhid0: <STMicroelectronics STSENSORHUB, class 0/0, rev 2.00/0.32, addr 3> on usbus0
And usbconfig -d ugen0.4 dump_all_config_desc:
https://pastebin.com/pJ1rJwnA
Perhaps, the same HW-device present in any "YOGA" ("2-in-1" or other named) notebooks, with a 180 degree flipping screen
This is suitable for X system only, because it navigable via the touchscreen (of course in terminal this is commonly are unusable).
In Linux (tested on Ubuntu and XFce4) this sensor affects for screen rotation in any display position - in normal with keyboard present for type text and "inverse" - when keyboard is flipped and notebook present as tablet.
More information about the freebsd-hardware
mailing list