I have a convertible laptop (HP Envy x360 15-aq015nd) with Gnome.
In the live modus (on a USB, before installing), the automatic rotation worked perfectly. I think it even enabled itself when I folded the keyboard behind the screen, and disabled when folding it back to a 'normal' laptop.
But now that I have installed it to the SSD, the screen isn't rotating anymore, even when manually disabling rotation-lock (from the top-right menu).
I tried monitoring the iio with
Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: undefined) === No ambient light sensor
So the sensor is found, but not read.
I found out that I can manually trigger updating the sensor with
cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw (or y, or z).
Only when using that command while holding the laptop in another orientation, the screen rotates, and
monitor-sensor outputs another line. for example:
Accelerometer orientation changed: right-up
The only way to turn the screen back is rotating the laptop, and
cat the raw output again.
Does anyone know what is wrong with my system, or with Gnome?