IIO Sensors not working on ThinkPad X1 2-in-1 Gen 10

I have to say that, since I posted this message, the autorotation started working for me. Granted I’m on nixos-unstable and on latest kernel and KDE versions. Not sure exactly when it became available, but at some point the automatic orientation option appeared for me on system settings page:

The tablet mode indeed does not activate automatically when flipping the screen, but I keep my toggle tablet mode script on the taskbar and that is not too bad for me.

Now the camera is a problem for me too. I even had a go at adapting the ipu6 scripts to ipu7, but no luck, just way beyond my knowledge. I have described what I’ve done and shared my code here: IPU7 webcam support