Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:add-ons:ts050-touchscreen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim3:add-ons:ts050-touchscreen [2022/11/08 20:22]
nick
products:sbc:vim3:add-ons:ts050-touchscreen [2023/03/21 03:25] (current)
nick
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces the connection and usage of TS050.+This document mainly introduces the connection and usage of [[https://www.khadas.com/product-page/ts050-touchscreen | TS050]].
  
 ===== Hardware Connection ===== ===== Hardware Connection =====
  
- +{{products:sbc:vim3:add-ons:vim3-ts050-front.webp?500|vim3-ts050-front}} 
- +{{products:sbc:vim3:add-ons:vim3-ts050-back.webp?500|vim3-ts050}}
- +
-{{/products/sbc/common/accessories/vim3-ts050-front.png?500|vim3-ts050-front}} +
-{{products:sbc:vim3:add-ons:vim3-ts050-back.png?500|vim3-ts050}}+
  
 ===== Ubuntu ===== ===== Ubuntu =====
Line 99: Line 96:
 1. Rotate via system node. 1. Rotate via system node.
  
-  * Check the current configuration of the node. \\ ```sh +  * Check the current configuration of the node. \\ ```shell 
-khadas@Khadas:~$ cat /sys/class/graphics/fbcon/rotate+$ cat /sys/class/graphics/fbcon/rotate
 0 0
 ``` ```
  
   * Modify the configuration to rotate the framebuffer(90 degrees). \\ ```sh   * Modify the configuration to rotate the framebuffer(90 degrees). \\ ```sh
-khadas@Khadas:$ echo 1 | sudo tee /sys/class/graphics/fbcon/rotate +$ echo 1 | sudo tee /sys/class/graphics/fbcon/rotate 
-khadas@Khadas:$ cat /sys/class/graphics/fbcon/rotate+$ cat /sys/class/graphics/fbcon/rotate
 1 1
 ``` ```
  
-  * Restore framebuffer console to the default setting. \\ ```sh +  * Restore framebuffer console to the default setting. \\ ```shell 
-khadas@Khadas:$ echo 0 | sudo tee /sys/class/graphics/fbcon/rotate +$ echo 0 | sudo tee /sys/class/graphics/fbcon/rotate 
-khadas@Khadas:$ cat /sys/class/graphics/fbcon/rotate     +$ cat /sys/class/graphics/fbcon/rotate     
 0 0
 ``` ```
Line 122: Line 119:
 2. Rotate via configuration file 2. Rotate via configuration file
  
-  * Check related configuration. \\ ```sh +  * Check related configuration. \\ ```shell 
-khadas@Khadas:~$ cat /boot/env.txt | grep "fb_rotate"+$ cat /boot/env.txt | grep "fb_rotate"
 fb_rotate=0 fb_rotate=0
 ``` ```
  
-  * Change setting(rotate 90 degrees): \\ ```sh +  * Change setting(rotate 90 degrees): \\ ```shell 
-khadas@Khadas:~$ sudo vim /boot/env.txt+$ sudo vim /boot/env.txt
 fb_rotate=0 change to fb_rotate=1 fb_rotate=0 change to fb_rotate=1
 ``` ```
Last modified: 2022/11/08 20:22 by nick