This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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.php?title=Software#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
[-] The following 1 user Likes miki1778's post:
  • leo
Reply
#5
Thanks, cool job. Is it possible to set default rotation value somewhere in config? I want screen to be rotated from the boot beginning.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)