Rotation Matrix to enable correct auto-rotation with [iio-sensor-proxy](https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/) on an Asus Transformer Mini T103HAF with iio-sensor `HID-SENSOR-200073`. - Tested on KDE Plasma Mobile (Fedora 41), details see inxi report. Device Details: - low powered 2in1 convertible with 10.1" screen size, 4core atom cpu and 4gb ram. Usefull as x86 based tablet with stylus for annotation and reading. - [official asus website for the device](https://www.asus.com/us/laptops/for-home/everyday-use/asus-transformer-mini-t103/) #### inxi device report ```sh System: Host: ------ Kernel: 6.12.10-200.fc41.x86_64 arch: x86_64 bits: 64 Console: pty pts/3 Distro: Fedora Linux 41 (KDE Plasma Mobile) Machine: Type: Detachable System: ASUSTeK product: T103HAF v: 1.0 serial: J1N0CX212087050 Mobo: ASUSTeK model: T103HAF v: 1.0 serial: ---------- UEFI: American Megatrends v: T103HAF.306 date: 12/05/2017 CPU: Info: quad core model: Intel Atom x5-Z8350 bits: 64 Info: Memory: total: 4 GiB ``` ### udevadm info output for iio-device ```sh # iio-device / accelerometer P: /devices/pci0000:00/0000:00:0a.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8086:0001.0004/HID-SENSOR-200073.3.auto/iio:device0 M: iio:device0 R: 0 U: iio T: iio_device D: c 234:0 N: iio:device0 L: 0 E: DEVPATH=/devices/pci0000:00/0000:00:0a.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8086:0001.0004/HID-SENSOR-200073.3.auto/iio:device0 E: DEVNAME=/dev/iio:device0 E: DEVTYPE=iio_device E: MAJOR=234 E: MINOR=0 E: SUBSYSTEM=iio E: USEC_INITIALIZED=18119681 E: ACCEL_MOUNT_MATRIX=0, -1, 0; 1, 0, 0; 0, 0, -1 E: IIO_SENSOR_PROXY_TYPE=iio-poll-accel iio-buffer-accel E: SYSTEMD_WANTS=iio-sensor-proxy.service E: TAGS=:systemd: E: CURRENT_TAGS=:systemd: ``` ### Full `udevadm info --export-db` - as requested in [60-sensor.hwdb](https://github.com/systemd/systemd/blob/ba0266b376d7cc5205d8a4a3d999aec13c24fe5d/hwdb.d/60-sensor.hwdb#L35) - [udevadm-info_103HAF.txt](https://github.com/user-attachments/files/18550448/udevadm-info_103HAF.txt)
Files in this directory specify a description of hardware devices, in the form of mappings from modalias-like keys (which identify specific hardware devices) to udev properties. Files in this directory are not read by udev directly. Instead, man:systemd-hwdb(8) compiles them into a binary database. See man:hwdb(7) for an overview of the configuration file format, and man:systemd-udevd.service(8) for a description of the udev daemon. Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.