Lenovo Yoga Tablet Mode Control

modulename: lenovo-ymc.ko

configname: CONFIG_LENOVO_YMC

Linux Kernel Configuration
└─>Device Drivers
└─>X86 Platform Specific Device Drivers
└─>Lenovo Yoga Tablet Mode Control
In linux kernel since version 4.14.326 (release Date: 2023-09-23)  
This driver maps the Tablet Mode Control switch to SW_TABLET_MODE input
events for Lenovo Yoga notebooks.

source code: