I hope I'm filing this in the right component, please reassign if not. I have a Lenovo Yoga 3 with a built in rotation sensor. The sensor doesn't kick in unless I first suspend it. It works as expected after I suspend it and wake it up again. Apparently others have the same issue. https://github.com/hadess/iio-sensor-proxy/issues/66
I am facing the same problem as OP (Lenovo Yoga 2 Pro). This seems to be a regression from kernel 4.2.x, since the rotation sensors worked right off a boot in that version, but since an upgrade to kernel 4.3 it works only after suspending and waking up once.
Sorry, just to add, I am on openSUSE Tumbleweed, so the issue seems to be distro blind. > uname -rvmo 4.4.0-1-default #1 SMP PREEMPT Mon Jan 11 14:46:34 UTC 2016 (83948c1) x86_64 GNU/Linux
I am also experiencing this issue on my Lenovo Yoga 900 laptop, using 4.5-rc2 compiled on archlinux. Rotation and ambient light sensors in the laptop fail to function until after a suspend resume. Linux pyke 4.5.0-rc2-mainline #1 SMP PREEMPT Mon Feb 1 08:12:01 EST 2016 x86_64 GNU/Linux Went scouring through dmesg and was able to find the following log entry immediately following a resume, but am unsure of it's relevance. hid_sensor_rotation HID-SENSOR-20008a.6.auto: Unbalanced pm_runtime_enable!
hi all, I filed this bug https://bugzilla.kernel.org/show_bug.cgi?id=109501, which might be linked to this one.
Actually this issue is the same as the one I filed.
Can confirm this issue for the Thinkpad Yoga S1. The regression seems to be some time after kernel 4.2.3. Here's some speculation that might be useful: Parts of the community using my machine have found that suspension doesn't work unless the sensors are turned off first. Here's a thread discussing the issue: https://github.com/admiralakber/thinkpad-yoga-scripts/issues/1 Hope this helps! Josh.
Same issue with Dell Venue 11 Pro 7140.
Following up on this one: The sensor seems to be working again in kernel 4.7.2 on the Thinkpad Yoga S1. Are you able to test this again Andreas?
Thinkpad Yoga 260 (Intel Sensor Hub patches applied): still doesn't work with Kernel 4.7.2 from a cold boot. Works after suspend.
I have the same issue on the Thinkpad Yoga 260 using 4.9.4. Some additional information: the raw accelerometer output (/sys/bus/iio/devices/iio:device3/in_accel_{x,y,z}_raw) is fine even before suspending, but the buffered output only works after suspending and resuming.
Resolved: https://github.com/hadess/iio-sensor-proxy/issues/116