This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim3:add-ons:ts050-touchscreen [2022/07/13 23:47] frank |
products:sbc:vim3:add-ons:ts050-touchscreen [2023/03/21 03:25] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== VIM3/3L TS050 Touchscreen ====== | ====== VIM3/3L TS050 Touchscreen ====== | ||
| + | ===== Introduction ===== | ||
| + | |||
| + | This document mainly introduces the connection and usage of [[https:// | ||
| + | |||
| + | ===== Hardware Connection ===== | ||
| + | |||
| + | {{products: | ||
| + | {{products: | ||
| + | |||
| + | ===== Ubuntu ===== | ||
| + | |||
| + | ==== Rotate ==== | ||
| + | |||
| + | |||
| + | TS050 is portrait mode by default, here is a guide to rotate the screen to landscape mode. | ||
| + | |||
| + | <tabbox Desktop OS> | ||
| + | |||
| + | <WRAP important > | ||
| + | These configurations will also effect the HDMI display, so if you want to use HDMI display, you need to remove them. | ||
| + | </ | ||
| + | |||
| + | You need to create Xorg configuration file and autostart script for setting the resolution. | ||
| + | |||
| + | 1. Create Xorg configuration file ''/ | ||
| + | |||
| + | ```txt | ||
| + | Section " | ||
| + | Identifier " | ||
| + | # Rotate off | ||
| + | # | ||
| + | # Rotate Right / clockwise, 90 degrees | ||
| + | Option " | ||
| + | # Rotate upside down, 180 degrees | ||
| + | # | ||
| + | # Rotate counter clockwise, 270 degrees | ||
| + | # | ||
| + | |||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier " | ||
| + | MatchIsTouchscreen " | ||
| + | MatchProduct " | ||
| + | MatchDriver " | ||
| + | # Rotate Right / clockwise, 90 degrees | ||
| + | Option " | ||
| + | # Rotate upside down, 180 degrees | ||
| + | # | ||
| + | # otate counter clockwise, 270 degrees | ||
| + | # | ||
| + | EndSection | ||
| + | ``` | ||
| + | |||
| + | 2. Create Resolution setting autostart file ''/ | ||
| + | |||
| + | ```txt | ||
| + | [Desktop Entry] | ||
| + | Version=1.0 | ||
| + | Name=pixel | ||
| + | Exec=xrandr --output " | ||
| + | Terminal=false | ||
| + | Type=Application | ||
| + | Categories= | ||
| + | GenericName= | ||
| + | X-GNOME-Autostart-Phase=Initialization | ||
| + | X-KDE-autostart-phase=1 | ||
| + | NoDisplay=true | ||
| + | ``` | ||
| + | |||
| + | Restart the system and the screen will automatically be configured as a landscape screen. | ||
| + | |||
| + | <WRAP info > | ||
| + | * The configuration above will rotate to landscape mode, you can also rotate to other modes, simply uncomment the mode you want. | ||
| + | * And please note the resolution for landscape mode is '' | ||
| + | </ | ||
| + | |||
| + | <tabbox Server OS> | ||
| + | |||
| + | You can rotate the framebuffer console in two ways. | ||
| + | |||
| + | * System Node | ||
| + | * Configuration File | ||
| + | |||
| + | <WRAP info > | ||
| + | |||
| + | Framebuffer console rotation value: | ||
| + | * 0 - default value (landscape mode) | ||
| + | * 1 - rotate 90 degrees | ||
| + | * 2 - rotate 180 degrees | ||
| + | * 3 - rotate 270 degrees | ||
| + | </ | ||
| + | |||
| + | 1. Rotate via system node. | ||
| + | |||
| + | * Check the current configuration of the node. \\ ```shell | ||
| + | $ cat / | ||
| + | 0 | ||
| + | ``` | ||
| + | |||
| + | * Modify the configuration to rotate the framebuffer(90 degrees). \\ ```sh | ||
| + | $ echo 1 | sudo tee / | ||
| + | $ cat / | ||
| + | 1 | ||
| + | ``` | ||
| + | |||
| + | * Restore framebuffer console to the default setting. \\ ```shell | ||
| + | $ echo 0 | sudo tee / | ||
| + | $ cat / | ||
| + | 0 | ||
| + | ``` | ||
| + | |||
| + | <WRAP info > | ||
| + | The modification will be lost after a power cycle, if you want to save it you can check the other way below. | ||
| + | </ | ||
| + | |||
| + | 2. Rotate via configuration file | ||
| + | |||
| + | * Check related configuration. \\ ```shell | ||
| + | $ cat / | ||
| + | fb_rotate=0 | ||
| + | ``` | ||
| + | |||
| + | * Change setting(rotate 90 degrees): \\ ```shell | ||
| + | $ sudo vim / | ||
| + | fb_rotate=0 change to fb_rotate=1 | ||
| + | ``` | ||
| + | |||
| + | <WRAP info > | ||
| + | You need to save the file and reboot the board. | ||
| + | </ | ||
| + | |||
| + | </ | ||
| - | {{page> | ||