Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotate screen (non X)
#1
How to Rotate the TinkerBoard HDMI Display Output if I have no x-server?
Reply
#2
I tried also, no success.
https://tinkerboarding.co.uk/forum/thread-1035.html
Reply
#3
It is sad.
Only one solution I have found. Rotate console output and UI separetely.
Not as convenient as RaspberryPi and /boot/config.txt.
Reply
#4
Hi guys,

Refer to the kernel document (https://www.kernel.org/doc/Documentation/fb/fbcon.txt)
Quote:Console rotation will only become available if Console Rotation Support is compiled in your kernel.

I think TinkerOS kernel does not enable Console Rotation by default. 
So I rebuild the kernel by myself and finally make it work.

Steps of building kernel can refer to tinker wiki (https://tinkerboarding.co.uk/wiki/index....are#Kernel)
but before doing make, add "CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y" to the config file miniarm-rk3288_defconfig

Code:
diff --git a/arch/arm/configs/miniarm-rk3288_defconfig b/arch/arm/configs/miniarm-rk3288_defconfig
index a1b3ee6..bea5c05 100755
--- a/arch/arm/configs/miniarm-rk3288_defconfig
+++ b/arch/arm/configs/miniarm-rk3288_defconfig
@@ -541,6 +541,7 @@ CONFIG_BACKLIGHT_LCD_SUPPORT=y
 CONFIG_BACKLIGHT_CLASS_DEVICE=y
 CONFIG_BACKLIGHT_PWM=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
 CONFIG_SOUND=y
 CONFIG_SND=y
 CONFIG_SND_SEQUENCER=y


After replacing the kernel, boot in the system and use the command:

Code:
$ sudo -s
$ echo 1 > /sys/devices/virtual/graphics/fbcon/rotate_all
or
 
Code:
$ echo 3 > /sys/devices/virtual/graphics/fbcon/rotate_all
Reply


Forum Jump:


Users browsing this thread: viych, 1 Guest(s)