Convertible 2-in-1 Laptop, Screen rotation, touch screen, KDE Plasma

Hello all!

I have a chromebook that is a convertible, so touchscreen and fully rotatable display.

On other linux distros and in the past, I was able to rotate the screen and the “touch mode” would automatically activate. Elements are enlarged and most importantly, the keyboard input is ignored.

Important differentiation:

  • rotating the screen: works
  • flipping the screen at the hinge: works, but does not activate KDE Touch mode

apparently this changed with Plasma 6, now the qtsensors package is required. on nixos, which one is it?

qt6Packages.qtsensors
qt6.qtsensors
kdePackages.qtsensors

I applied following configuration but no change. Note that there is no environment.plasma6.includePackages so I used system packages

environment.systemPackages = with pkgs; [
    kdePackages.qtsensors
];

hardware.sensor.iio.enable = lib.mkDefault true;

The screen rotates correctly, but the touch mode is not applied it seems. I already checked systemsettings but the “automatically turn on touch mode” does not work.

Debugging

the systemctl log for iio-sensor-proxy showed errors, but that doesnt seem to be the problem

● iio-sensor-proxy.service - IIO Sensor Proxy service
     Loaded: loaded (/etc/systemd/system/iio-sensor-proxy.service; linked; preset: ignored)
     Active: active (running) since Sun 2026-05-03 18:43:33 CEST; 1min 39s ago
 Invocation: 37b774c3b943473c90743752114902a3
   Main PID: 1349 (iio-sensor-prox)
         IP: 0B in, 0B out
         IO: 8.6M read, 0B written
      Tasks: 4 (limit: 9300)
     Memory: 13.3M (peak: 13.9M)
        CPU: 139ms
     CGroup: /system.slice/iio-sensor-proxy.service
             └─1349 /nix/store/12b6gxcs2qri8qgaxg0s7q9kcq9ql80j-iio-sensor-proxy-3.9/libexec/iio-sensor-proxy

May 03 18:43:33 PC systemd[1]: Starting IIO Sensor Proxy service...
May 03 18:43:33 PC systemd[1]: Started IIO Sensor Proxy service.
May 03 18:43:33 PC iio-sensor-proxy[1349]: Could not find trigger name associated with /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.12.auto/iio:device0
May 03 18:43:34 PC iio-sensor-proxy[1349]: Buffer '/dev/iio:device0' did not have data within 0.5s

the tilting sensor is recognized:

monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal, tilt: tilted-down)
=== No ambient light sensor
=== No proximity sensor
=== No compass
    Tilt changed: vertical
    Tilt changed: tilted-down
    Tilt changed: face-down
    Tilt changed: tilted-down
    Tilt changed: face-down
    Tilt changed: tilted-down
    Tilt changed: vertical
    Tilt changed: tilted-down
    Tilt changed: vertical

installing the package only was not enough, I assume the iio hardware configuration is quite complex (and it works). The idea was that it might need to be started by KDE plasma as it needs to interact with it? But that seems unlikely.

There are custom iio packages for some environments but not KDE Plasma, I wonder if this is actually not working.

I also added config.boot.kernelPackages.iio-utils to my system packages and will see, but doubt that it will be needed.