Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Mar 2019 21:09:50 +0300
From:      a.petrov@atweb.su
To:        freebsd-hardware@freebsd.org
Subject:   Any plans to drag in accelerometer driver from STMicroelectronics?
Message-ID:  <14463731551550190@sas1-87f9feb8d943.qloud-c.yandex.net>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14463731551550190>