Just installed Kubuntu on my new ThinkPad X1 Yoga. Everything's working except for 1 thing: being a 2-in-1

Keyboard & trackpad pauses after I flip to tablet mode, as it should be, but keyboard & trackpad doesn’t work again after I flip it back to laptop mode. But when it goes to sleep, keyboard starts working again, but doesn’t pause when I flip to tablet mode.

Any idea how I can fix this?