8,367
edits
Changes
→Method of rotating display and touch direction of desktop version image
# First open '''Display''' Settings in Linux
::[[File:cm4-img375.png]]
<ol start="2" style="list-style-type: decimal;">
<li><p>'''Left''': rotate left 90 degrees</p></li>
<li><p>'''Inverted''': Flip up and down, which is equivalent to rotating 180 degrees</p></li>
<li><p>'''Right''': rotate right 90 degrees</p></li></ol></li></ol>
[[File:cm4-img376.png]]
</ol></li></ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then click '''Apply'''</li></ol>
[[File:cm4-img377.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then select '''Keep this configuration'''</li></ol>
[[File:cm4-img378.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>At this point, the screen display has been rotated, and then close the '''Display''' program</p></li>
<li><p>The above steps will only select the display direction, and will not rotate the direction of the touch. Use the '''set_lcd_rotate.sh''' script to rotate the direction of the touch. After the script is set, it will automatically restart, and then you can test whether the touch has been used normally.</p>
<ol style="list-style-type: lower-alpha;">
<li>'''None''': no rotation</li></ol></li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''set_lcd_rotate.sh none'''
|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''Left''': rotate left 90 degrees</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''set_lcd_rotate.sh left'''
|}</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>'''Inverted''': Flip up and down, which is equivalent to rotating 180 degrees</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''set_lcd_rotate.sh inverted'''
|}</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>'''Right''': rotate right 90 degrees</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''set_lcd_rotate.sh right'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''The set_lcd_rotate.sh script mainly does four things:'''
'''1. Rotate the direction displayed by the framebuffer'''
'''4. Restart the system'''
'''Rotating the touch direction is achieved by adding the line Option "TransformationMatrix" "x x x x x x x x x" to /usr/share/X11/xorg.conf.d/40-libinput.conf Where "x x x x x x x x x" is configured differently for different directions.'''</big>
|}
</ol>
</li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>Touch rotation reference</li></ol>
https://wiki.ubuntu.com/X/InputCoordinateTransformation
</ol>
<span id="how-to-use-the-edp-screen"></span>
== How to use the eDP screen ==