Support for automatic screen rotation on Lenovo Yogo 2 Pro

From: Nico Schottelius
Date: Mon Feb 10 2014 - 03:14:19 EST


Good morning hackers,

The screen on the Lenovo Yoga 2 Pro can rotate up to 180 degrees and it would be awesome
if we could rotate it automatically under Linux. xrandr can already rotate it, what is missing
is an event that we can trigger on.

Is there any way to find out
a) if the screen is opened for more than 90 degrees?
a) what the opening angle of the screen is?

I guess there must be support somewhere, as it is supposed to happen
automatically under windows. [1]

I am still facing the problem that there are no keycodes present for
some keys [0] - if you have a hint for this problem, I am wondering
if anyone has a pointer on how to solve one of these issues?

Cheers,

Nico

[0] https://lkml.org/lkml/2014/1/28/251
[1] I have never tried windows on this device, but from the forums and
marketing I assume it works trigger based on the opening angle.



--
PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/