Use the accelerometer to rotate the screen in tablet mode

From: Alexandrov Anatoly <AlexandrovAA_at_outlook.com>
Date: Wed, 02 Oct 2024 22:09:30 UTC
I use thinkpad x1 yoga gen 5 which has accelerometer, i want to rotate screen on accelerometer event via devd but i cant find this sensor in sysctl or in acpi_ibm, hw etc. Are sensors supported or do i need to patch kernel? Thanks