Autorotate change in 6.6.1, what do I do now?

Hi,

I have a GDP pocket 4 that has a touch screen but the problem is that the way it is mounted, the panel is the “wrong way” by default (its connected horizontally to the bottom of the laptop but reports it is vertical).

Systemd already provides an accel mount matrix for my display:

At first I was playing around with changing the accel mount stuff, but nothing I tried worked until I landed on the following kernel params

boot.kernelParams = ["fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up"];
hardware.sensor.iio.enable = true;

and everything worked great.

after this change in 6.6.1:

my screen now is back to the “wrong” behaviour of being displayed the “wrong” way.

I guess the old way was wrong, but now what do I do to get my screen oriented the right way?

Touch-screen laptops and custom mount orientations, the key is making sure both systemd’s accel mount matrix and kernel parameters are aligned. Even if KDE 6.6.1 changed how panel orientation is applied, the ACCEL_MOUNT_MATRIX in hwdb.d/60-sensor.hwdb still dictates how the sensor reports rotation.

You can try:

  1. Double-checking your ACCEL_MOUNT_MATRIX values for your Pocket 4.

  2. Using xrandr --output eDP-1 --rotate right as a temporary fix in your session.

  3. Ensuring hardware.sensor.iio.enable = true is still active in your NixOS configuration.

This usually restores correct auto-rotation while keeping the panel orientation consistent across reboots.