Hyperpixel 4

Hello, I’m trying to configure my new Hyperpixel 4 square to my RPi 4, I already managed to get it to work but I can’t get it to rotate automatic in config.txt.
Here is my config.txt

dtoverlay=vc4-fkms-v3d
dtoverlay=hyperpixel4
dtparam=rotate=90,touchscreen-swapped-x-y,touchscreen-inverted-y
enable_dpi_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x7f216
dpi_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6```

If I put 'DISPLAY=:0.0 sudo hyperpixel4-rotate right' on terminal it rotates the display and the touchscreen works great, but I can't change it on the config.txt.

Hope anybody can help me.
Thanks.

Hello,

Do you have the latest OS, Bullseye running on you RPi4?

You say you have the square one, so maybe you need to use

dtoverlay=vc4-kms-dpi-hyperpixel4sq

instead of two dtoverlay’s you use now.

Rotate for the square use, make sure it is right after the dtoverlay line:

dtparam=rotate=90 - Header is on the left (wonky touch, see below)
dtparam=rotate=180 - Header still on the top (doesn't work? Same as default)
dtparam=rotate=270 - Header is on the right (wonky touch, see below)

It is not that I’m a smart boy, I just read this page:

Let us know if it worked for you.