Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Troubleshooting • kms video settings only apply during boot

$
0
0
Here is my setup:

Raspberry Pi zero 2w
Raspberry Pi OS lite 64bit, boots to CLI
PAL composite display

I have the display configured correctly, it displays the boot process and CLI fine. I have an issue though. I try to modify the video= line in cmdline.txt to add margins and it works while its booting, but once the CLI shows, the setting gets dropped. Its like it forgets the KMS settings and uses a default or something. What causes this and how do I fix it?

Also, I need the display rotated 270 degrees, and flipped horizontally so it can be viewed using a mirror. I have added rotate and reflect_x to the video= line, but they have no effect. I can get the CLI rotated by adding fbcon=rotate:3, but I'm not sure if that is the best way to do it, since my understanding is it only rotates the text and not the framebuffer(I assume if I needed any kind of graphics to display they would be unaffected by fbcon=rotate:3). I have tried adding display_hdmi_rotate and display_rotate and display_lcd_rotate along with their appropriate values to config.txt, but they have no effect. So what is the best way to rotate and flip the screen?

Here is my cmdline.txt:

Code:

video=COMPOSITE-1:720x576@50ie,tv_mode=PAL,rotate=270,reflect_x console=serial0,115200 console=tty1 root=PARTUUID=aed828a8-02 rootfstype=ext4 fsck.repair=yes rootwait vc4.tv_norm=PAL cfg80211.ieee80211_regdom=US
Here is my config.txt:

Code:

# 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 camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3d,composite=1max_framebuffers=2#enable compositesdtv_mode=2enable_tvout=1#rotate display#display_lcd_rotate=3# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.#disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscan#disable_overscan=1#overscan_left=16#overscan_right=16#overscan_top=16#overscan_bottom=16# Run as fast as firmware / board allowsarm_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]

Statistics: Posted by thealeks — Wed Sep 10, 2025 10:19 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles