Discussion:
Help with Acer Iconia W500 hwdb
(too old to reply)
Brock York
2017-02-08 10:05:43 UTC
Permalink
Raw Message
Hello

I've been trying to get auto rotation working with
Gnome 3 on my Acer Iconia Tab W500. Using iio-sensor-proxy
the rotation works but the orientation is wrong.

So I've managed to come up with the following hwdb change
which corrects the orientation.

The problem is I think the modalias string I have is to generic
to be included in systemd as is, as it would match on any bma150
accelerometer is my guess?

I've tried to modify the current rules in 60-sensors.hwdb
to match the w500s accelerometer but it's not working.

udevadm info --path=/devices/virtual/input/input17
P: /devices/virtual/input/input17
E: ABS=7
E: DEVPATH=/devices/virtual/input/input17
E: EV=9
E: ID_INPUT=1
E: ID_INPUT_ACCELEROMETER=1
E: ID_INPUT_ACCELEROMETER_ORIENTATION=right-up
E: IIO_SENSOR_PROXY_TYPE=input-accel
E: MODALIAS=input:b0019v0000p0000e0000-e0,3,kra0,1,2,mlsfw
E: NAME="Acer BMA150 accelerometer"
E: PHYS="wmi/input1"
E: PRODUCT=19/0/0/0
E: PROP=0
E: SUBSYSTEM=input
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:seat:systemd:
E: USEC_INITIALIZED=121291851

Any help with trying to craft a better modalias string
so I can put in a pull request is appreciated.

Thank you
Regards Brock

From a0eaa241176dda366b930338cf3166d100061a97 Mon Sep 17 00:00:00 2001
From: Brock York<***@gmail.com>
Date: Wed, 8 Feb 2017 17:16:05 +1100
Subject: [PATCH] hwdb: Acer Iconia Tab W500 support

The Acer W500 has a Bosch BMA150 accelerometer which
is mounted in a different orientation to the display
orientation.

Correct the accelerometer output to match the screen
orientation.
---
hwdb/60-sensor.hwdb | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb
index fcbdcabf3..06ae82864 100644
--- a/hwdb/60-sensor.hwdb
+++ b/hwdb/60-sensor.hwdb
@@ -42,6 +42,12 @@
# Sort by brand, model

#########################################
+# Acer
+#########################################
+evdev:input:b0019v0000p0000e0000*
+ ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
+
+#########################################
# AsusTek
#########################################
sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB*
--
2.11.0
Lennart Poettering
2017-02-08 12:53:26 UTC
Permalink
Raw Message
Post by Brock York
Hello
I've been trying to get auto rotation working with
Gnome 3 on my Acer Iconia Tab W500. Using iio-sensor-proxy
the rotation works but the orientation is wrong.
So I've managed to come up with the following hwdb change
which corrects the orientation.
The problem is I think the modalias string I have is to generic
to be included in systemd as is, as it would match on any bma150
accelerometer is my guess?
I've tried to modify the current rules in 60-sensors.hwdb
to match the w500s accelerometer but it's not working.
udevadm info --path=/devices/virtual/input/input17
P: /devices/virtual/input/input17
E: ABS=7
E: DEVPATH=/devices/virtual/input/input17
E: EV=9
E: ID_INPUT=1
E: ID_INPUT_ACCELEROMETER=1
E: ID_INPUT_ACCELEROMETER_ORIENTATION=right-up
E: IIO_SENSOR_PROXY_TYPE=input-accel
E: MODALIAS=input:b0019v0000p0000e0000-e0,3,kra0,1,2,mlsfw
E: NAME="Acer BMA150 accelerometer"
E: PHYS="wmi/input1"
E: PRODUCT=19/0/0/0
E: PROP=0
E: SUBSYSTEM=input
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: USEC_INITIALIZED=121291851
Please file this as PR on github, and make sure to cc @hadess.

Thanks!

Lennart
--
Lennart Poettering, Red Hat
Loading...