docs: explain some methods a little bit more

move lcd-show to the bottom since they are almost deprecated at this point
This commit is contained in:
alfrix 2024-04-05 09:43:49 -03:00
parent 76b6c06f88
commit eda255c52e

View File

@ -29,7 +29,7 @@ here are some examples:
sudo nano /usr/share/X11/xorg.conf.d/90-monitor.conf
```
Paste this section modifying the options to suit your needs:
```kconfig
```kconfig title="90-monitor.conf"
Section "Monitor"
Identifier "HDMI-1"
# This identifier would be the same as the name of the connector printed by xrandr
@ -49,39 +49,50 @@ here are some examples:
sudo service KlipperScreen restart
```
if KlipperScreen doesn't restart:
```bash
sudo reboot
```
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 "Raspberry Pi using kernel cmdline"
To set screen orientation when in console mode, you will need to edit the kernel command-line
to pass the required orientation to the system.
```bash
cd LCD-show/
sudo ./LCD43-show 270 lite
sudo nano /boot/firmware/cmdline.txt
```
??? example "Using a screen installed with goodtft-LCD-show"
```bash
cd LCD-show/
sudo ./rotate.sh 90
```
??? example "Raspberry Pi"
To set screen orientation when in console mode, you will need to edit the kernel command line to pass the required orientation to the system.
```bash
sudo nano /boot/cmdline.txt
```
To rotate by 90 degrees clockwise, add the following to the cmdline, making sure everything is on the same line, do not add any carriage returns. Possible rotation values are 0, 90, 180 and 270.
To rotate by 90 degrees clockwise, add the following to the cmdline, making sure everything is on the same line,
do not add any carriage returns. Possible rotation values are 0, 90, 180 and 270.
For example a DSI screen:
```bash
video=DSI-1:800x480@60,rotate=90
```
Other values can be "HDMI-0" "HDMI-1, "DPI-0" etc
To find the identifier on a terminal run:
```bash
DISPLAY=:0 xrandr
```
it will output something like:
```bash
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:
```bash
video=HDMI-1:1024x600@60
```
To apply changes do a reboot:
```bash
sudo reboot
```
[Read the official docs for more info](https://www.raspberrypi.com/documentation/computers/config_txt.html)
[Raspberry Display docs](https://www.raspberrypi.com/documentation/accessories/display.html)
@ -92,12 +103,14 @@ here are some examples:
```bash
display_lcd_rotate=2
```
Reboot
To apply changes do a reboot:
```bash
sudo reboot
```
!!! warning
Pi4 doesn't support 90 and 270 degrees with this method, [see the official docs](https://www.raspberrypi.com/documentation/computers/config_txt.html#display_hdmi_rotate)
At the moment of writing Pi4 didn't support 90 and 270 degrees with this method, [see the official docs](https://www.raspberrypi.com/documentation/computers/config_txt.html#display_hdmi_rotate)
| Value | result |
| ---------- | ---------- |
@ -110,6 +123,21 @@ here are some examples:
[Read the official docs for more info](https://www.raspberrypi.com/documentation/computers/config_txt.html)
??? example "Using a screen installed with goodtft-LCD-show"
```bash
cd LCD-show/
sudo ./rotate.sh 90
```
??? example "Using Waveshare screen that is installed with LCD-show"
```bash
cd LCD-show/
sudo ./LCD43-show 270 lite
```
## Touchscreen touch rotation
[See touch rotation](../Touch_issues/#touch-rotation-and-matrix)