hadess / iio-sensor-proxy

IIO accelerometer sensor to input device proxy
198 stars 64 forks source link

Read mount matrix from sysfs #255

Closed dsd closed 5 years ago

dsd commented 5 years ago

If we don't have a ACCEL_MOUNT_MATRIX property for this device, then check if there is a mount matrix available in sysfs. Some kernel drivers export the mount matrix there, e.g. st_accel.

This fixes an issue where the screen was automatically rotated to an incorrect orientation on Acer Veriton Z4660G/Z6860G/A890.

dsd commented 5 years ago

@hadess: sorry for the delay as I was on holiday. I've now addressed your comments in the updated comment.

dsd commented 5 years ago

@hadess: ready for review again

hadess commented 5 years ago

All good, thanks!