Tablet mode switch in Linux

Hi,

I’ve installed Arch Linux on Chuwi Minibook 8, everything is working except the damn tablet mode switch.

I see there’s a device with that capability:

-event8   DEVICE_ADDED     Intel Virtual Button driver       seat0 default group9  cap:kS
 event8   SWITCH_TOGGLE    +0.000s	switch tablet-mode state 1

But 1) it starts in tablet-mode, 2) never changes, and never emits changes.

I’ve been trying to dump all input events and still didn’t see the SW_TABLET_MODE event there.

Has anyone managed to make it work?