My configuration is: Lenovo Yoga 910. Values reported by accelerometer inside: devices/pci0000:00/0000:00:15.3/i2c_designware.2/i2c-7/i2c-ITE8186:00/0018:048D:8186.0012/HID-SENSOR-200073.2.auto/iio:device0/*_raw have always the same values x: 31, y: 64849, z: 64826 - no meter how I hold the notebook. Timestamp also not changing. There is such a log inside my dmesg: i2c_hid i2c-ITE8186:00: i2c-ITE8186:00 supply vdd not found, using dummy regulator
Created attachment 256549 [details] yoga 910 quirk Added similar quirk like for yoga 900
I have Yoga 900 with 4.11 kernel. I see the data change. What is your kernel version?
Hi. Thank you for your response. I've tested on: 4.10, 4.11 and 4.12-rc1. The same behavior on each one of them.
Created attachment 256643 [details] dmesg with i2c_hid debug on I've attached dmesg log for turned on debug flag for i2c_hid module
Created attachment 256645 [details] dmesg hid_descr_cmd failed I've tested newest kernel after "9d6408433019bfae15e2d0d5f4498c4ff70b86c0 i2c: designware: don't infer timings described by ACPI from clock rate" fix. It looks like after that, driver stopped to work at all - no device is exposed in sysfs. Also touchpad stopped to work.
Created attachment 256651 [details] dmesg after 9d6408433019 + unintialized vars fixes Jan Kiszka's fix of unintialized vars make devices works again but still no changes from accelometers. Attaching dmesg after newest changes in designware module.
Created attachment 256671 [details] content of /sys/bus/i2c/devices/i2c-ITE8186:00/power
Created attachment 256673 [details] content of /sys/bus/iio/devices/iio:device1/power runtime_enabled = disabled looks the worst
I will try to get a yoga 910 and check. I don't know why this is different than Yoga 900.
It looks like adding quirk (attached in patch) helped a little. But there is also other bug https://bugzilla.kernel.org/show_bug.cgi?id=111321 making sensor state non-deterministicly active/inactive after reboot.