Keyboard and trackpad doesn't get disabled when computer is put in tablet mode

Using Fedora 44 KDE Plasma Desktop Edition. Title explains issue. Any fixes/scripts I can use? Putting it in tablet mode doesn’t deactivate the keyboard and trackpad as it should, so there are always ghost clicks and typing.

Run sudo libinput debug-events, then fold the screen into tablet mode. A working tablet switch prints a SWITCH_TOGGLE line with switch tablet-mode state 1.

If no SWITCH_TOGGLE line appears, run sudo libinput list-devices and look for a device with Capabilities: switch.

When none is listed, the kernel isn’t reporting the switch on your model. This shows whether the intel-hid or intel-vbtn driver loaded:

sudo dmesg | grep -i -e intel-hid -e vbtn

Drafted with AI, reviewed by me.

The SWITCH_TOGGLE line does appear with switch tablet-mode state 1, which means it’s being recognized.

The switch reaches libinput, so it’s most likely that libinput isn’t pairing the keyboard and touchpad with it, either because it treats them as external devices or because a quirk turns off tablet-mode suspend for your model.

Find the event nodes for the keyboard and touchpad in sudo libinput list-devices, then run this for each one:

sudo libinput quirks list /dev/input/eventX

Does either one show ModelTabletModeNoSuspend or AttrKeyboardIntegration=external?

Drafted with AI, reviewed by me.

A device firmware update fixed the trackpad. It is now disabled in tablet mode. However, I still face the same issue with the keyboard UNLESS I put the computer to sleep and wake it up while in tablet mode, or reboot/turn it on while in tablet mode. Also, quirks is not installed and I’m unable to install it, so I cant run the command for the keyboard.