Power & Source of Big Ideas

Matrix - 2'8 SPI TFT rotation

Moderators: chensy, FATechsupport

How set rotation on Matrix - 2'8 SPI TFT with buildin module. I try change cmdline

[root@localhost ~]# cat /proc/cmdline
console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait fsck.repair=yes panic=10 fbcon=map:0 fbtft_device.rotate=0

No result

Try change [root@localhost ~]# cat /etc/modprobe.d/fbtft.conf
options fbtft_device rotate=0

No result

Try echo 0 > /sys/class/graphics/fb1/rotate

No result

Always [ 2.096137] fbtft_of_value: rotate = 90

In boot console...
Ok i think i found solution. I use Debian image with 4.11 kernel
On boot partion i found sun8i-h3-nanopi-neo-core.dtb and conver it to sun8i-h3-nanopi-neo-core.dts with comand

/usr/src/linux/scripts/dtc/dtc -I dtb -O dts sun8i-h3-nanopi-neo-core.dtb > sun8i-h3-nanopi-neo-core.dts

in sun8i-h3-nanopi-neo-core.dts i found parametr rotation and change it to 0x00

convert dts to dtb with comand

/usr/src/linux/scripts/dtc/dtc -I dts -O dtb sun8i-h3-nanopi-neo-core.dts > sun8i-h3-nanopi-neo-core.dtb

and copy it to /boot partion

Who is online

In total there are 45 users online :: 0 registered, 0 hidden and 45 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 45 guests