Older kernels will not rotate the display in the correct orientation. If you aren't able to use a newer kernel, you can manually specify the orientation by running the below commands:
printf "sensor:modalias:acpi:KIOX000A*:dmi:*:*\n ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1;\n ACCEL_LOCATION=display\n" | sudo tee /etc/udev/hwdb.d/21-kiox000a.hwdb
sudo systemd-hwdb update
sudo udevadm control --reload-rules
sudo udevadm trigger
You will need to reboot for these changes to apply.
Jul 3, 2024