Questions tagged [config.txt]

This file is parsed by the GPU before the initialisation of the ARM core. It can be used to set various parameters to alter the behaviour of the system, such as display resolution or overclocking settings.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Are Waveshare 2-CH_RS232_HAT stackable?

Is it possible to stack the Waveshare 2-CH_RS232_HAT? This is a link to the wiki page: https://www.waveshare.com/wiki/2-CH_RS232_HAT. The hat is driven via SPI, the interrupt pin can be chosen, there ...
user avatar
  • 1
0 votes
1 answer
28 views

Raspberry PI is not booting

I tried to follow this tutorial https://www.laub-home.de/wiki/Raspberry_Pi_multiple_I2C_bus to connect a second i2C device on GPIO-pin 17 and 27. I had to reboot the pi after editing the /boot/config....
user avatar
0 votes
1 answer
41 views

Does Raspberry Pi Camera use specific GPIO pins?

I have a Raspberry Pi 4 Model B. Certain pins are used by some sensors. Once I plug my sensors into my system, the camera cannot be found by the Raspberry, on the other hand, everything works fine ...
user avatar
  • 3
0 votes
0 answers
34 views

How do I rotate LCD touch panel on a Raspberry Pi 3?

I know this question has been asked many times, but I can't find a solution that works anywhere to rotate the official raspberry pi touch screen (not the display part as this is working, just the ...
user avatar
0 votes
0 answers
31 views

Can't modify UART 5 baudrate

I'm trying to communicate a NUCLEO-F746ZG with a RPi-CM4 thru the UART5. I need, at least, a baudrate >= 4000000. Using the stty -F /dev/ttyAMA2 4000000 I get the "unable to perform all ...
user avatar
0 votes
1 answer
152 views

how to edit /boot/config.txt from the .img.xz file?

i have installed ubuntu-21.10-preinstalled-desktop-arm64+raspi.img.xz. is it possible to edit /boot/config.txt from the file itself so that we need not boot into the pi and then edit the config.txt ...
user avatar
1 vote
2 answers
2k views

libcamera stack does not work with Bullseye

On a RasPi4, the HQ-Camera works well with the legacy camera stack, but not with the libcamera stack. I did an update from Buster to Bullseye. $ uname -a Linux raspberrypi 5.10.89-v7l+ #1506 SMP Fri ...
user avatar
  • 351
0 votes
2 answers
106 views

Camera not recognized on raspberry pi 3 b

Ive tried connecting a camera to my raspberry pi and Ive enabled it on raspi-config but vcgencmd get_camera still shows supported=0 detected=0. Also, in my boot/config.txt, start_x=1 is not even ...
user avatar
1 vote
1 answer
117 views

How To make Raspberry Pi Hardware PWM off after startup

I am driving motor using ESC with Hardware PWM signal comes from Raspberry Pi ,I set the GPIO 19 (PIN 35) to be PWM1 , the problem is when the Raspberry Pi startup it gives output value to PWM1 (GPIO ...
user avatar
  • 11
0 votes
0 answers
21 views

Hello World Kernel does not load if I change the defaul load address(kernel_address)

I am trying to learn systems programming. I have create a simple kernel, which prints Hello World to the UART on Raspberry Pi 4 Model B. Source code can be found here. It works perfectly when kernel ...
user avatar
0 votes
0 answers
24 views

How to set SPI0_CE0 to be GPIO8 on CM4

I have a CM4 that has a WS2182b RGB LED on GPIO8 as seen in the diagram below: I think I need to change something in /boot/config.txt to be able to use GPIO8. I still want to use SPI0 if possible, ...
user avatar
2 votes
2 answers
3k views

is dtoverlay a general linux concept or RPi specific?

With all the raspberry pi hats popping on and off, dtoverlay and /boot/config.txt is a very nice method to quickly tell the kernel that you've got new device tree information. But I've never seen this ...
user avatar
0 votes
1 answer
121 views

Pi Zero extra I2C pins

My use-case is to have multiple sensors with the same I2C address attached to the PI and also a LED screen that I want to attach on it's own. I found that there is a software level overlay BUT it is ...
user avatar
0 votes
0 answers
125 views

Is it impossible to boot from SD card once USB/SSD boot is enabled in Raspberry Pi 2?

Based on this documentation: To enable USB host boot mode, the Raspberry Pi needs to be booted from an SD card with a special option to set the USB host boot mode bit in the one-time programmable (...
user avatar
2 votes
1 answer
131 views

Reassign GPIO pins for SPI (swap MOSI with SCK)

I had an adapter board made for a Raspberry Pi 4B and I somehow swapped the SPI clock and data lines on the board. Rather than redrawing and waiting for new adapter boards, is there a way to reassign ...
user avatar
0 votes
2 answers
72 views

How do I regain access to either the filesystem or terminal on a raspberry pi that has all networking services disabled and no terminal?

Due to some unfortunate configuration settings, I kludged my raspberry pi into not having a terminal (it normally boots into an app, which still works fine) nor having network access. I can no longer ...
user avatar
  • 103
0 votes
1 answer
101 views

Setting X to use 800x480

For some reason, despite settings in /boot/config.txt when I start X windows it goes with a resolution of 1024x768. I have a 5 inch screen with that uses 800x480. How can I reconfigure X to use a ...
user avatar
-1 votes
1 answer
78 views

Enable WiFi with SD card after first boot

I want to enable WiFi on Rasberry Pi from SD card. I already installed and used, so it isn't the first boot. I search online and I found no answer to my problem How can I enable on boot the WiFi after ...
user avatar
  • 1
0 votes
2 answers
1k views

How to enable both UART (ttyS0 and ttyAMA0) on Raspberry Pi 3b?

I've already read dozens of manuals and stack topics, but I do not figure out if it even possible run both UARTs on RPi 3B. Some tutorials advice to map uart to other pins in /boot/config.txt I tried ...
user avatar
0 votes
1 answer
171 views

RasPi4 does 2nd init of HDMI, thus ignoring config.txt read done at boot

RasPi 4B When I edit config.txt, trying to force a certain resolution, RasPi always comes up with the monitors preferred resolution. After a lot of trying, including a completely new fresh OS install, ...
user avatar
0 votes
0 answers
467 views

Pi 4B ignores HDMI mode 4 - 640x480, boots instead at 1024x768

I edited /boot/config.txt to use hdmi_group=2 and hdmi_mode=4; one HDMI monitor is connected to the first connector. It starts at 1024x768 instead. Only when I explicitly run xrandr --output HDMI-1 --...
user avatar
  • 502
0 votes
0 answers
17 views

Raspberry Pi 4B with HAT and without HDMI cable

I spend 1 hour figuring out why my Raspberry Pi 4 model B with Sense HAT wouldn't even boot without HDMI monitor connected. I ended up with these in /boot/config.txt which worked: hdmi_force_hotplug=1 ...
user avatar
0 votes
1 answer
399 views

Facing problems with audio output from GPIO pins with RPi 4

I am unable to get audio output from the GPIO pins on my Raspberry Pi 4. I initially added dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4 to the config.txt file in boot directory and used the GPIO ...
user avatar
0 votes
1 answer
36 views

S.O.S Monitor Says No signal and HDMI inactive to Raspberry Pi4B

I connected mi PI4B to the monitor with HDMI-MicroHDMI adapter, and when I power de PI device, the monitor says "HDMI Inactive" and no signal. The screen was in black. The Red led of the PI ...
user avatar
  • 1
0 votes
0 answers
165 views

Is there a command line editor for config.txt

I am looking to make an install script for hifi-berry and a few other pieces of hardware. When config.txt didn't have sections, there was no risk of adding a line in the "wrong place". With ...
user avatar
  • 111
0 votes
1 answer
125 views

Setting interface name in /boo/config.txt

I am trying to setup an interface name can1 (instead of can0) on spi0. Looking at the instructions at https://blog.stabel.family/raspberry-pi-4-device-tree/ I was able to add a new overlay file. Even ...
user avatar
1 vote
0 answers
193 views

hdmi_cvt ignored on my boot/config.txt

I am testing a LCD HAT ( ST7735S ) that I bought and it is working great with fbcp, but I can´t get raspberry pi os to run at native screen resolution ( 128x128 ). I´ve been reading all documentation ...
user avatar
  • 179
0 votes
0 answers
23 views

Config.txt for connecting RPI4 to Light Projector [duplicate]

I am using this code in the config.txt and I am not able to connect properly to the projector. It is possible to decide to display or not an image but it isn't possible to turn On or Off the projector....
user avatar
0 votes
1 answer
634 views

Debian Buster w/ Overclocking

Due to software requirements I'm running Debian Buster and am hoping to be able to give my Pi4 a slight overclock. I've created a confix.txt file in /boot with the following content: over_voltage=2 ...
user avatar
1 vote
1 answer
323 views

Setting precise voltage offsets with over_voltage

On the BCM2711, the base VCore was greatly lowered from previous processors, though the over_voltage setting still uses 0.025V increments. On my Pi 4, vcgencmd measure_volts returns 0.8563V when not ...
user avatar
  • 131
0 votes
1 answer
847 views

How to get full UART safely on Pi4?

I need to use full UART. I was using dtoverlay=pi3-miniuart-bt to achieve this but the name suggests it's for pi3, I have pi4. Should I use miniuart-bt instead, or disable-bt as I would want to turn ...
user avatar
  • 103
0 votes
0 answers
33 views

Pi keeps changing source

I have a problem with my Pi. Every time I turn on the TV it automatically changes the source to my Pi. I tried following this thread : stopping RaspPi / raspbmc from auto changing source on tv ...
user avatar
0 votes
1 answer
502 views

Second Acer monitor X183H native 1366 x 768 HDMI-to-VGA adapters "Input Not Supported" (*First AcerG195W works great)

#Raspberry Pi w/ latest raspbian (RaspberryOS) (which I have connected as a desktop computer) https://www.raspberrypi.org/products/raspberry-pi-4-model-b/specifications/?resellerType=home #Connection ...
user avatar
0 votes
1 answer
2k views

Ultra-wide monitor support - Screen resolution, Video and Audio Raspberry Pi 4 B

Ultra-wide monitor specs: 34 inch WHFD (2560 x 1080) IPS Display (21:9) - HD 10 AMD Free sync OS: Arch linux with Openbox (lightdm) Issues: Managed to get 2560x1080 pixels with "...
user avatar
2 votes
0 answers
434 views

Use both internal and external activity LED?

With something like dtoverlay=act-led,gpio=26 in boot/config.txt I can enable an external activity LED, which is useful if the Pi is in a case and the on-board LED cannot be seen. Unfortunatelly, ...
user avatar
  • 774
1 vote
0 answers
35 views

Monitor settings not persisting across reboot

I have two monitors connected to a RPi 4B rev 1.4 running Raspbian 10. When I boot, both monitors are mirrored, so I go to Preferences > Screen Configuration and set the monitors up how I want (...
user avatar
  • 171
3 votes
2 answers
9k views

Raspberry Pi 4 B GPIO boot and shutdown button(s)

I've been doing some research on power buttons for the Raspberry Pi, but I'm having quite a hard time finding information. Right now, I have button working on GPIO5, and when I connect it to the ...
user avatar
  • 139
1 vote
2 answers
278 views

How to get netboot debug info from start.elf

I am attempting to netboot Ubuntu 20.04.1LTS arm64 on a Raspberry Pi 3B v1.2. To do this, I have replaced the Ubuntu u-boot boot loader with the Pi boot loader, as instructed in the Ubuntu ...
user avatar
  • 111
3 votes
3 answers
8k views

Raspberry Pi 4B screen tearing

I want to build a smooth experience on a Raspberry PI, and screen tearing is destroying transitions and animations on a web application viewed in chromium in full-screen, I'm using a 7" ...
user avatar
1 vote
1 answer
50 views

Force Pi 3B+ Raspian (not NOOBS) to boot in composite mode automatically (using config.txt?)

Please do not echo the noise of similar questions and answers. None seem to meet my need. What is the minimum set of config.txt commands that I need to ensure that my Pi 3B+ outputs to composite when ...
user avatar
0 votes
2 answers
176 views

Best resource for raspi-config equivalents in config.txt

I am trying to figure out how to edit my /boot/config.txt with the same functionality implicit in raspi-config. For example, I'd like to know how to enable/disable for "P6 Serial" in this ...
user avatar
  • 105
0 votes
1 answer
528 views

Can't find ~/.config?

I'm trying to follow this tutorial: at one step I'm supposed to change the autostart file with this command: sudo nano ~/.config/lxsession/LXDE-pi/autostart but when I cd into my /home/pi folder (...
user avatar
  • 103
1 vote
1 answer
1k views

Overscan on Ubuntu 20.4 LTS

I have recently been working on getting a server running on the pi 3. I installed the server but there was a lot of overscan, and at the time I didn't know what that was. I searched on the web for a ...
user avatar
1 vote
0 answers
2k views

Ubuntu GPIO mapping and port configuration

I turned from Raspbian to Ubuntu 19 32bit on my RPI4 because I need this distribution. I downloaded it using the RPI Imager. I had a working pinout on Raspbian, mapped on config.txt for the I2C and ...
user avatar
  • 61
1 vote
0 answers
418 views

Trouble Detecting Devices on Added I2C Buses

I decided to add additional i2c buses to my raspberry pi 4 through the use of gpios and overlays. I first came across this idea from this post by the instructables. Through editing the config.txt file ...
user avatar
0 votes
1 answer
279 views

Outputing DMX using Bitwizard Hat

I have a Raspberry Pi 4B with a Bitwizard DMX Hat which uses the serial port. I try to output DMX from the board to a LED light using QLC+ software, but it's not working. I tried some commands and I ...
user avatar
1 vote
0 answers
582 views

Waveshare RS485 CAN hat over raspberry pi 3A+

So I have been at least trying to connect to the hat from the Pi, the following is my configuration: I follow the manual set in this link: https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-...
user avatar
  • 33
2 votes
2 answers
357 views

SPI Not working when chip select is connected to ground, works fine when connected to CE 0,1 or 2

I am working on MFRC522 sensors. However I need more than 3 SPI Devices. The 3 works fine except when I want to connect chip select to GPIO, It does not work. I tried a single spi device by connecting ...
user avatar
  • 21
0 votes
1 answer
197 views

overscan ignored in raspberry pi

I configured the pi screen to be horizontal (using display_rotate=1) but as you can see in the image the scree is not in full screen: it start from about 1/4 from left of the screen I use a manual ...
user avatar
  • 101
0 votes
0 answers
916 views

Raspberry Pi 4 shutdown with no Power LED (red) and no ACT LED (green)

I've recently modified my boot/config.txt to include the following lines: dtoverlay=gpio-poweroff,gpiopin=9,active_low=n dtoverlay=gpio-poweroff,gpiopin=10,active_low=n This works exactly how I ...
user avatar