video – HDMI output on TV distorted and slanted

The hdmi on the tv is screen is distorted like in the picture:
a picture of the hdmi output of the rpi on the tv

My tv has the resolution 1366×786 and the doc states

There is only one incompatible mode in the CEA and DMT standards: DMT
mode 81, 1366×768 @ 60Hz. This mode has odd-numbered values for the
horizontal sync and back porch timings and a width that indivisible by
8.

If your monitor has this resolution, 4-series devices automatically
drop down to the next mode advertised by the monitor; typically
1280×720.

But the resolution was apprently automatically dropped. So I tried adding the following to my /boot/firmware/cmdline.txt file:

,video=HDMI-A-2:1280×720@30

Hoping that the lower framerate and lower resolution would correct it.

I also looked into hdmi_modes on the legacy rpi config docs hoping to set it to CEA but apparently the old config isnt functinonal anymore. The newer config doesn’t seem to have the same options.

Legacy config document:
www.raspberrypi.com/documentation/computers/legacy_config_txt.html#legacy-video-options

Current document:www.raspberrypi.com/documentation/computers/config_txt.html#video-options

Read more here: Source link