Hi,
On 02-12-17 17:32, Steven Presser wrote:
Seconding this question. Or does this merely require some configuration?
I also have a Yoga 11e to try this on. I built this last night and gave it a try this morning. The screen rotations I'm getting are reasonably correct, but don't seem to be accounting for the relative positions of the screen and keyboard. That is, I'm getting screen rotation in laptop mode and the keyboard isn't disabled in tent or tablet mode.
I should note this is definitely an improvement over what used to happen - screen rotations used to be 90 degrees off correct.
So the tablet-switch stuff (which will disable the keyboard if you've a really
recent gnome3 userland) is separate from the accelerometers and
fully handled in ACPI, proper tablet-switch reporting is fixed by
this commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=dda3ec0aa631d15b12a42438d23336354037e108
But iio-sensor-proxy may need some changes so that it only uses
the accelerometer in the screen, not the one in the base to
provide information for screen rotation.
Regards,
Hans
Thanks for all your work on this,
Steve
On 11/30/2017 04:19 PM, Lars Kellogg-Stedman wrote:
On Wed, Nov 29, 2017 at 5:31 PM, Jeremy Cline <jeremy@xxxxxxxxxx <mailto:jeremy@xxxxxxxxxx>> wrote:
Some BOSC0200 ACPI devices, like the one in the Yoga 11e, have two i2c
accelerometers listed under a single ACPI device. This checks to see if
there is an ACPI companion and if so handles a second i2c client.
I am going to try this out (on a yoga 11e) over the weekend.
Will this require an additional patch to iio-sensor-proxy in order to provide the appropriate input events to enter/exit tablet mode? I believe these need to be generated based on the relative position indicated by the two accelerometers.
--
Lars Kellogg-Stedman <lars@xxxxxxxxxx <mailto:lars@xxxxxxxxxx>> | larsks@{twitter, irc, github, ...}
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html