From owner-freebsd-hardware@freebsd.org Sat Mar 2 18:09:56 2019 Return-Path: Delivered-To: freebsd-hardware@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA8E11507486 for ; Sat, 2 Mar 2019 18:09:56 +0000 (UTC) (envelope-from a.petrov@atweb.su) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2CBD67312E for ; Sat, 2 Mar 2019 18:09:54 +0000 (UTC) (envelope-from a.petrov@atweb.su) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 4E853F2088E for ; Sat, 2 Mar 2019 21:09:51 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id katAJ6vKcV-9olCOio8; Sat, 02 Mar 2019 21:09:50 +0300 Received: by sas1-87f9feb8d943.qloud-c.yandex.net with HTTP; Sat, 02 Mar 2019 21:09:50 +0300 From: a.petrov@atweb.su Envelope-From: stalex@atweb.su To: freebsd-hardware@freebsd.org Subject: Any plans to drag in accelerometer driver from STMicroelectronics? MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sat, 02 Mar 2019 21:09:50 +0300 Message-Id: <14463731551550190@sas1-87f9feb8d943.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Rspamd-Queue-Id: 2CBD67312E X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of a.petrov@atweb.su designates 2a02:6b8:0:801:2::102 as permitted sender) smtp.mailfrom=a.petrov@atweb.su X-Spamd-Result: default: False [-5.83 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; RCVD_TLS_LAST(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0::/52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hardware@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[atweb.su]; MX_GOOD(-0.01)[mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru]; NEURAL_HAM_SHORT(-0.91)[-0.915,0]; FROM_NO_DN(0.00)[]; IP_SCORE(-3.51)[ip: (-8.93), ipnet: 2a02:6b8::/32(-4.79), asn: 13238(-3.83), country: RU(0.00)]; RCVD_IN_DNSWL_LOW(-0.10)[2.0.1.0.0.0.0.0.0.0.0.0.2.0.0.0.1.0.8.0.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 18:09:56 -0000 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: 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.