Automatic screen rotation is 90 degrees wrong

Hey, same for me, I also have the Lenovo D330-10IGM. Unfortunately I have no solution, but I tried some things that could help finding one: It worked correctly with the gnome desktop, because there is a hwdb-entry:

sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:*
 ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1

But that seems to have no effect in plasma 6, as well as in plasma mobile 6. When trying it with X11, screen rotation is 90 degrees wrong in the opposite direction and auto rotation does not work at all.

For the time being, I disabled auto rotation and set it manually to 90 degrees rotated. That locks the screen rotation, but at least it is correct.