SW_TABLET_MODE on Yoga L13 undetected / switch manually

Hello folks,

I’ve got a Thinkpad L13 Yoga I installed Fedora 35 KDE Plasma. However, when I switch it to become a tablet, the SW_TABLET_MODE is not triggered. I looked at it using “libinput debug-events” and using “evtest”. The event code in evtest exists, but it is never triggered. Instead on a L390 Yoga everything works fine. So I have the following questions:

  1. does anyone else have a Thinkpad Yoga L13 and does it work there? I want to confirm this, because maybe the sensor is broken or it is just unsupported, yet. Or does anyone have an idea how I can confirm it is working or not? In 1 it seems to be supported, but I want to be sure when I sent it back to the vendor.

  2. As a workaround, I’d like to switch it manually. As far as I understood, the kernel emits a “SW_TABLET_MODE” event wich triggers all other functions. So can I somehow tell the kernel manually to emit this event? Or are there any other methods to change the mode manually? I have seen a solution for Arch 2, but it requires sysmoded (which I canot find for Fedora). I also tried to look how to code something, but the only things I found where the other way around.

Thank you very much for your help,

Christopher

Hi there, I’m in a hurry here but just saying on my L13 Yoga the debug-events outputs:

-event13 SWITCH_TOGGLE +38.963s switch tablet-mode state 1
event13 SWITCH_TOGGLE +45.739s switch tablet-mode state 0

Okay, thank you very much! So 1) is closed and I think the sensor does not work and I can send it back.

Question still ist 2), would be useless when it works, but still interesting, even for Convertibles which are not supported in that way (should be generic not Thinkpad specific…).

Best Regards,

Christopher

I would find it weird if the reason was this, but still regarding 1), FYI, my BIOS version is not stock, it is:

R1FET42W (1.16 )

Okay, where did you get this BIOS? I think it is worth a try.

Lenovo website. Will post detailed info later.

$ sudo dmidecode|grep "Product Name"
	Product Name: 20VKCABCDEF
	Product Name: 20VKCABCDEF

Go to https://pcsupport.lenovo.com/

Paste the model (example: 20VKCABCDEF), press ENTER,
Drivers & Software, BIOS & UEFI, " BIOS Update (Utility & Bootable CD) for Windows 11, 10 (64-bit) - ThinkPad L13 Gen 2, L13 Yoga Gen 2", choose BIOS Update (Bootable CD)
(you can dd it to a pen).