So I was mistaken and found that there is an event for tablet mode but you
need to fold the screen fully back round for it to be registered, I was
testing in 'tent mode'.

    $sudo evtest /dev/input/event9
    Event: time 0.0, type 5 (EV_SW), code 1 (SW_TABLET_MODE), value 1

There are issues with unwanted logging of unhandled HKEY events but they
are trivial and I may provide a patch to fix them.

On 22 October 2017 at 20:32, Calum Lind <caluml...@gmail.com> wrote:

> I have a Thinkpad X1 Yoga 2nd Gen and see the output below in dmesg when
> flipping the screen between laptop and tablet mode. It would be really
> quite useful to have this exposed as there is no way to currently handle
> this mode switching.
>
> Thanks, Calum
>
>     thinkpad_acpi: unknown possible thermal alarm or keyboard event
> received
>     thinkpad_acpi: unhandled HKEY event 0x60f0
>
>     Ubuntu 17.10: Linux 4.13.0-16-generic
>
>     $ cat /sys/class/dmi/id/modalias
>     dmi:bvnLENOVO:bvrN1NET29W(1.16):bd09/01/2017:svnLENOVO:pn20JDCTO1WW:
> pvrThinkPadX1Yoga2nd:rvnLENOVO:rn20JDCTO1WW:rvrSDK0J40709WIN:cvnLENOVO:
> ct31:cvrNone:
>
------------------------------------------------------------------------------
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-acpi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

Reply via email to