ThinkPad Yoga gen1 - orientation "undefined"
I'm trying to get screen rotation to work on the ThinkPad Yoga on OpenSUSE Tumbleweed, iio-sensor-proxy 3.1 with locales set to pl_PL :) , GNOME 3.40.
With udevadm info --export-db I can see entries for iio_devices, for example:
P: /devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8086:0001.0001/HID-SENSOR-200073.10.auto/iio:device4
N: iio:device4
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8086:0001.0001/HID-SENSOR-200073.10.auto/iio:device4
E: SUBSYSTEM=iio
E: DEVNAME=/dev/iio:device4
E: DEVTYPE=iio_device
E: MAJOR=240
E: MINOR=4
E: USEC_INITIALIZED=7545665
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:
On the other hand in gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy I see the entries but the orientation is undefined and sadly screen rotation does nothing.
interface net.hadess.SensorProxy {
methods:
ClaimAccelerometer();
ReleaseAccelerometer();
ClaimLight();
ReleaseLight();
ClaimProximity();
ReleaseProximity();
signals:
properties:
readonly b HasAccelerometer = true;
readonly s AccelerometerOrientation = 'undefined';
readonly b HasAmbientLight = true;
readonly s LightLevelUnit = 'lux';
readonly d LightLevel = 227970.0;
readonly b HasProximity = false;
readonly b ProximityNear = false;
};
node Compass {
};
};
After running LC_ALL=C /usr/libexec/iio-sensor-proxy -v -r I found entries like:
** (iio-sensor-proxy:3826): DEBUG: 11:55:09.525: Trying to read 'in_accel_x_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8086:0001.0001/HID-SENSOR-200073.10.auto/iio:device4'
** (iio-sensor-proxy:3826): DEBUG: 11:55:09.525: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8086:0001.0001/HID-SENSOR-200073.10.auto/iio:device4/in_accel_x_scale: No such file or directory
Any suggestions whether this issue is fixable and whether I can get auto screen rotation to work are greatly appreciated. It would take my device to another level, much better for taking notes during lectures etc. I've attached more detailed logs.