Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

HATs and other add-ons • Re: Waveshare 3.5 inch capacitive touch display - screen rotation isn't working

$
0
0
viewtopic.php?p=2310966#p2310415
but I'm pretty Sure you knows that Posting as your overlay looks like the one posted there

Rotation is possible from screen configuration editor and or from having a .bin file that is configured for rotation.
Yes, thanks to this post I got the touchscreen working. But I tried rotating from screen configuration editor but as I mentioned earlier I can only get the screen to invert. Left/right rotation is not happening.

I tried to check the mode and got this output :

Code:

admin@raspberrypi:~ $ modetest -M panel-mipi-dbiEncoders:idcrtctypepossible crtcspossible clones3635none0x000000010x00000001Connectors:idencoderstatusnamesize (mm)modesencoders3236connectedSPI-1          49x79136  modes:index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot  #0 320x480 60.00 320 320 320 320 480 480 480 480 9216 flags: ; type: preferred, driver  props:1 EDID:flags: immutable blobblobs:value:2 DPMS:flags: enumenums: On=0 Standby=1 Suspend=2 Off=3value: 05 link-status:flags: enumenums: Good=0 Bad=1value: 06 non-desktop:flags: immutable rangevalues: 0 1value: 04 TILE:flags: immutable blobblobs:value:CRTCs:idfbpossize3539(0,0)(320x480)  #0  60.00 320 320 320 320 480 480 480 480 9216 flags: ; type:   props:24 VRR_ENABLED:flags: rangevalues: 0 1value: 0Planes:idcrtcfbCRTC x,yx,ygamma sizepossible crtcs3335390,00,00       0x00000001  formats: RG16 XR24  props:8 type:flags: immutable enumenums: Overlay=0 Primary=1 Cursor=2value: 130 IN_FORMATS:flags: immutable blobblobs:value:0100000000000000020000001800000001000000200000005247313658523234030000000000000000000000000000000000000000000000in_formats blob decoded: RG16:  LINEAR(0x0) XR24:  LINEAR(0x0)Frame buffers:idsizepitch
My SPI screen is registered as SPI-1 under the DRM driver panel-mipi-dbi. Only one mode exists: 320x480@60 (potrait mode).
I aadded the following overlay for landscape mode :

Code:

/dts-v1/;/plugin/;/ {    compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709", "brcm,bcm2710", "brcm,bcm2711";    fragment@0 {        target = <&spi0>;        __overlay__ {            status = "okay";            st7796s: st7796s@0 {                compatible = "sitronix,st7796s", "panel-mipi-dbi-spi";                reg = <0>;                        // CS0                spi-max-frequency = <48000000>;                dc-gpios = <&gpio 25 0>;          // adjust if needed                reset-gpios = <&gpio 27 0>;                backlight-gpios = <&gpio 18 0>;                rotation = <90>;                  // force landscape                width = <480>;                height = <320>;                width-mm = <79>;                height-mm = <49>;            };        };    };};
And changed my config to this :

Code:

dtparam=spi=ondtoverlay=st7796sdtoverlay=ft5x06
Doing this, my Pi didn't boot completely and got stuck. Figured this didn't work and reversed the changes.

Statistics: Posted by nandita — Wed Sep 17, 2025 4:52 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles