#Klippy screen upside down

9 messages ยท Page 1 of 1 (latest)

acoustic python
#

im building a LDO rev d voron 2.4 and it uses a BigTreeTech Pi TFT43 v2.1. ive followed the steps in the LDO documentation (https://docs.ldomotors.com/en/guides/btt_43_rotate_guide) to rotate the screen but it hasn't worked. my config file seems different to theirs though.

here is my config.txt file before making any changes


# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[cm5]
dtoverlay=dwc2,dr_mode=host

[all]
frail girder
ancient creekBOT
#

@acoustic python When posting configs or logs, please surround with code fences (```) so that Discord formats them correctly. Example:
```ini
[mcu]
serial: /dev/serial/by-id/usb-klipper-12345-if00
```

[mcu]
serial: /dev/serial/by-id/usb-klipper-12345-if00
frail girder
frail girder
acoustic python
acoustic python
#

For anyone coming across this thread looking for a fix. this is my full guide to steps to fix

Step 1: Edit the cmdline.txt file

Open the Raspberry Pi boot configuration file

sudo nano /boot/firmware/cmdline.txt

This opens the file in the nano editor for editing

Step 2: Add boot text rotation

Added the following parameter to rotate the boot text 180 degrees

fbcon=rotate:2

Saved the file and exited the editor (Ctrl+O, Enter, Ctrl+X)

Step 3: Create X11 monitor configuration

Create the X11 configuration file for your display

sudo nano /usr/share/X11/xorg.conf.d/90-monitor.conf

This opens a new file in nano where you can define the display settings

Step 4: Fill the X11 configuration file

In 90-monitor.conf, pasted the following content to set display rotation and resolution:

Section "Monitor"
    Identifier "DSI-1"
    # This identifier should match the name of the connector printed by xrandr
    # For example: "DVI-I-1 connected primary" โ†’ Identifier "DVI-I-1"
    # Or: "Unknown19-1 connected primary" for some GPIO screens โ†’ Identifier "Unknown19"

    Option "Rotate" "inverted"
    # Valid rotation options are normal, inverted, left, right

    Option "PreferredMode" "800x480"
    # Set the preferred resolution if needed

EndSection

Saved the file and exited the editor (Ctrl+O, Enter, Ctrl+X)

Step 5: Fix touchscreen orientation

Create a udev rules file to correct the touch input orientation

sudo nano /etc/udev/rules.d/51-touchscreen.rules

This opens a new file in nano

In the file, pasted the following content:

ACTION=="add", ATTRS{name}=="10-0038 generic ft5x06 (00)", ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1 0 0 1"

think this had to be on one line. so be careful

Saved the file and exited the editor (Ctrl+O, Enter, Ctrl+X)

strange wadi
#

Just wanted to say thanks @acoustic python came acrross this and it fixed my issue.
Updating the cmdline.txt did fix my boot text, but actually stopped the rest of the system from booting for some reason. But I really dont care if the boot text is upside so I'm leaving it as is, rest of it worked.

Thanks!