docs: improve hdmi and rotation
This commit is contained in:
parent
ed017c4b3c
commit
53b9277b6c
@ -21,12 +21,20 @@ more complex example:
|
|||||||
video=HDMI-A-1:1920x1080M@60,rotate=90,reflect_x
|
video=HDMI-A-1:1920x1080M@60,rotate=90,reflect_x
|
||||||
```
|
```
|
||||||
|
|
||||||
| Device | Display |
|
???+ "Find the identifier use xrandr"
|
||||||
|-------------|-------------------------------------------------|
|
on a terminal run:
|
||||||
| HDMI-A-1 | HDMI 1 (sometimes HDMI 0 on PCB) |
|
```sh
|
||||||
| HDMI-A-2 | HDMI 2 (sometimes HDMI 1 on PCB if starts at 0) |
|
DISPLAY=:0 xrandr
|
||||||
| DSI-1 | DSI or DPI |
|
```
|
||||||
| Composite-1 | Composite |
|
|
||||||
|
it will output something like:
|
||||||
|
```
|
||||||
|
Screen 0: minimum 320 x 200, current 1024 x 600, maximum 8192 x 8192
|
||||||
|
HDMI-1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 800mm x 450mm
|
||||||
|
```
|
||||||
|
in this case the identifier is HDMI-1 and a simple cmdline arg would be something like:
|
||||||
|
|
||||||
|
`video=HDMI-1:1024x600@60`
|
||||||
|
|
||||||
|
|
||||||
Valid mode specifiers:
|
Valid mode specifiers:
|
||||||
|
@ -10,17 +10,29 @@ here are some examples:
|
|||||||
|
|
||||||
???+ example "Universal xorg configuration"
|
???+ example "Universal xorg configuration"
|
||||||
|
|
||||||
|
Find the identifier use xrandr
|
||||||
|
|
||||||
|
```sh
|
||||||
|
DISPLAY=:0 xrandr
|
||||||
|
```
|
||||||
|
|
||||||
|
it will output something like:
|
||||||
|
```
|
||||||
|
Screen 0: minimum 320 x 200, current 1024 x 600, maximum 8192 x 8192
|
||||||
|
HDMI-1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 800mm x 450mm
|
||||||
|
```
|
||||||
|
|
||||||
|
Take not that the screen is `HDMI-1` (it could be `HDMI-A-1` or many other names)
|
||||||
|
|
||||||
Create /usr/share/X11/xorg.conf.d/90-monitor.conf
|
Create /usr/share/X11/xorg.conf.d/90-monitor.conf
|
||||||
```bash
|
```bash
|
||||||
sudo nano /usr/share/X11/xorg.conf.d/90-monitor.conf
|
sudo nano /usr/share/X11/xorg.conf.d/90-monitor.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
Paste this section modifying the options to suit your needs:
|
Paste this section modifying the options to suit your needs:
|
||||||
```kconfig
|
```kconfig
|
||||||
Section "Monitor"
|
Section "Monitor"
|
||||||
Identifier "HDMI-A-1"
|
Identifier "HDMI-1"
|
||||||
# This identifier would be the same as the name of the connector printed by xrandr
|
# This identifier would be the same as the name of the connector printed by xrandr
|
||||||
# DISPLAY=:0 xrandr
|
|
||||||
# for example "DVI-I-1 connected primary" means that the identifier is "DVI-I-1"
|
# for example "DVI-I-1 connected primary" means that the identifier is "DVI-I-1"
|
||||||
# another example "Unknown19-1 connected primary" some GPIO screens identify as Unknown19
|
# another example "Unknown19-1 connected primary" some GPIO screens identify as Unknown19
|
||||||
|
|
||||||
@ -37,6 +49,8 @@ here are some examples:
|
|||||||
sudo service KlipperScreen restart
|
sudo service KlipperScreen restart
|
||||||
```
|
```
|
||||||
|
|
||||||
|
you may have to adjust the [touch rotation](../Touch_issues/#touch-rotation-and-matrix)
|
||||||
|
|
||||||
??? example "Using Waveshare screen that is installed with LCD-show"
|
??? example "Using Waveshare screen that is installed with LCD-show"
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user