I run Ubuntu on a ThinkPad T15 Gen 2i and I constantly have issues with performance mode being disabled due to lap detection.
I'm not that impressed with lap detection in general, as it's just a motion detector which also gets activated if the device is stable but tilted, but please correct me if "motion detector" is not right.
This causes issues if I just move my laptop on my desk, or when I keep it tilted on a hard flat surface.
How can I disable lap detection?
I'd like to know if there are some workarounds, but also how can it be totally disabled. If there aren't any software approaches, can it be disabled on the hardware itself?