HDMI
<h4>一、设置HDMI分辨率:</h4>
<pre><code class="language-shell">`xrandr --output HDMI-1 --mode 1920x1080 --rate 60`</code></pre>
<h4>二、旋转屏幕:</h4>
<pre><code class="language-shell">xrandr -o left
xrandr -o right
xrandr -o normal
xrandr -o inverted</code></pre>
<h4>三、临时添加自定义的分辨率模式</h4>
<p>①使用cvt命令创建新的分辨率:</p>
<pre><code class="language-shell">root@rk3399: cvt 800 750
# 800x750 59.86 Hz (CVT) hsync; 46.63 MHz pclk: 48.50 MHz Modeline &quot;800x750_60.00&quot; 48.50800 840 920 1040750 753 763 779 -hsync +vsync
</code></pre>
<p>②使用xrandr –newmode modeline信息(CVT命令产生的结果)创建新的mode:</p>
<pre><code class="language-shell">root@rk3399:xrandr --newmode &quot;800X750_60.00&quot; 48.50 800 840 920 1040 750 753 763 779 -hsync +vsync</code></pre>
<p>③使用xrandr –addmode 设备名 mode 来为设备添加新的mode:</p>
<pre><code class="language-shell">root@rk3399: xrandr --addmode HDMI-1 800x750_60.00</code></pre>
<p>④使用xrandr –out 设备名 –mode mode来使用新的分辨率模式:</p>
<pre><code class="language-shell">root@rk3399: xrandr --optput HDMI-1 --mode 800x750_60.00</code></pre>