Linux mainline kernels since 5.14 contain sysfs code for the WMI interface of Lenovo ThinkPad notebooks in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/think-lmi.c
The kernel module is already available in the linux-modules-extra-$(uname -r) package in Jammy (i.e. as /lib/modules/5.15.0-18-generic/kernel/drivers/platform/x86/think-lmi.ko in the 5.15.0-18-generic variant).
There is a small userspace utility to interact with this kernel module at https://github.com/lenovo/thinklmi/tree/master/thinklmi-user. It would be helpful to have this available too.
Linux mainline kernels since 5.14 contain sysfs code for the WMI interface of Lenovo ThinkPad notebooks in https:/ /git.kernel. org/pub/ scm/linux/ kernel/ git/torvalds/ linux.git/ tree/drivers/ platform/ x86/think- lmi.c
The kernel module is already available in the linux-modules- extra-$ (uname -r) package in Jammy (i.e. as /lib/modules/ 5.15.0- 18-generic/ kernel/ drivers/ platform/ x86/think- lmi.ko in the 5.15.0-18-generic variant).
There is a small userspace utility to interact with this kernel module at https:/ /github. com/lenovo/ thinklmi/ tree/master/ thinklmi- user. It would be helpful to have this available too.