Hey Davide,
I am experience similar things with the Thinkpad Yoga 370 and I think
Lars Kellogg-Stedman on the thread "Detecting tablet mode on Yoga 11e"
might have the same issue.
I found that the thinkpad_acpi driver indeed reports the correct tablet
mode on my device to
/sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode. The event
triggering this is the 0x60c0. I am not sure what the 0x60f0 is but it
is an additional event. Nevertheless the screen rotation doesn't work
on my system.
I tracked my problem down to a faulty iio acceleration sensor. Have a
look at the output of 'monitor-sensor'. Is the iio-sensor-proxy
reporting values? If not, like in my case, we have indeed the same
problem. Which is the iio device not triggering a event and the device
software buffer doesn't get values. I reported the issue here: https://
github.com/hadess/iio-sensor-proxy/issues/164
I talked to a guy who fixed the issue for an older yoga and he told me
that he had to fix the hid-sonsor-hub and add a quirk for the sensor.
If we really have the same issue here we might work on this on a
different channel because it doesn't concern the thinkpad_acpi driver.
Hope that helps!
Cheers,
Simon
On Mon, 2017-04-17 at 11:34 +0000, Davide Depau wrote:
> Hello,
> I just noticed that when I rotate my computer screen past 180° (at
> which point Window gives me a dialog "do you want to switch to tablet
> mode?"), I get this message in the kernel log:
>
> [22873.281071] thinkpad_acpi: unknown possible thermal alarm or
> keyboard event received
> [22873.281083] thinkpad_acpi: unhandled HKEY event 0x60f0
> [22873.281089] thinkpad_acpi: please report the conditions when this
> event happened to ibm...@li...
>
> If I turn it back, I get the exact same message when I turn it back
> into "laptop" position.
> I think this can be useful to implement tablet mode detection, which
> is useful for programs like onboard (onboard can avoid showing up
> unless the computer is in tablet mode).
>
> I can try to implement it myself if you can give me some hints on
> where to put my hands.
>
> Davide[22873.281071] thinkpad_acpi: unknown possible thermal alarm or
> keyboard event received
> [22873.281083] thinkpad_acpi: unhandled HKEY event 0x60f0
> [22873.281089] thinkpad_acpi: please report the conditions when this
> event happened to ibm...@li...
> -------------------------------------------------------------------
> -----------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> ibm-acpi-devel mailing list
> ibm...@li...
> https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
|