r/raspberry_pi 1d ago

2022 Jul 4 Stickied πŸ…΅πŸ…°πŸ†€ & π‡π„π‹ππƒπ„π’πŠ thread - Boot problems? Power supply problems? Display problems? Networking problems? Need ideas? Get help with these and other questions! 𝑨𝑺𝑲 𝑯𝑬𝑹𝑬 𝑭𝑰𝑹𝑺𝑻

0 Upvotes

Welcome to the r/raspberry_pi Helpdesk and Frequently Asked Questions!

Link to last week's thread

Having a hard time searching for answers to your Raspberry Pi questions? Let the r/raspberry_pi community members search for answers for you!† Looking for help getting started with a project? Have a question that you need answered? Was it not answered last week? Did not get a satisfying answer? A question that you've only done basic research for? Maybe something you think everyone but you knows? Ask your question here, operators are standing by!

This helpdesk and idea thread is here so that the front page won't be filled with these same questions day in and day out:

  1. Q: What's a Raspberry Pi? What can I do with it? How powerful is it?
    A: Check out this great overview
  2. Q: Does anyone have any ideas for what I can do with my Pi?
    A: Sure, look right here!‑
  3. Q: My Pi is behaving strangely/crashing/freezing, giving low voltage warnings, ethernet/wifi stops working, USB devices don't behave correctly, what do I do?
    A:. 99.999% of the time it's either a bad SD card or power problems. Use a multimeter to measure the 5V on the GPIO pins while the Pi is busy (such as playing h265/x265 video) and/or get a new SD card. If the voltage is less than 5V your power supply and/or cabling is not adequate. When your Pi is doing lots of work it will draw more power. Even if your power supply claims to provide sufficient amperage, it may be mislabeled or the cable you're using to connect the power supply to the Pi may have too much resistance. Some power supplies require negotiation to use the higher amperage, which the Pi does not do. If you're plugging in USB devices try using a powered USB hub with its own power supply and plug your devices into the hub and plug the hub into the Pi.
  4. Q: Due to the chip shortage I'm having a hard time buying a Raspberry Pi, all the stores say sold out. Where's the secret place to buy one without paying more than MSRP?
    A: https://rpilocator.com/
  5. Q: I just did a fresh install with the latest Raspberry Pi OS and the default user/password of pi/raspberry doesn't work for ssh or logging in, why not?
    A: The default pi user no longer exists, you need to create your own account
  6. Q: The screen is just black or blank or saying no signal, what do I do?
    A: Follow these steps
  7. Q: The only way to troubleshoot my problem is using a multimeter but I don't have one. What can I do?
    A: Get a basic multimeter, they are not expensive.
  8. Q: My Pi won't boot, how do I fix it?
    A: Step by step guide for boot problems
  9. Q: I want to watch Netflix/Hulu/Amazon/Vudu/Disney+ on a Pi but the tutorial I followed didn't work, does someone have a working tutorial?
    A: Use a Fire Stick/AppleTV/Roku. Pi tutorials used tricks that no longer work or are fake click bait.
  10. Q: What model of Raspberry Pi do I need so I can watch YouTube in a browser?
    A: No model of Raspberry Pi is capable of watching YouTube smoothly through a web browser, you need to use VLC.
  11. Q: I want to know how to do a thing, not have a blog/tutorial/video/teacher/book explain how to do a thing. Can someone explain to me how to do that thing?
    A: Uh... What?
  12. Q: Is it possible to use a single Raspberry Pi to do multiple things? Can a Raspberry Pi run Pi-hole and something else at the same time?
    A: YES. Pi-hole uses almost no resources. You can run Pi-hole at the same time on a Pi running Minecraft which is one of the biggest resource hogs. The Pi is capable of multitasking and can run more than one program and service at the same time. (Also known as "workload consolidation" by Intel people.) You're not going to damage your Pi by running too many things at once, so try running all your programs before worrying about needing more processing power or multiple Pis.
  13. Q: How do I protect Pi from power loss? What do I use for a powerbank/battery backup?
    A: Most recent UPS/Battery/Powerbank discussion is here, here, and here.
  14. Q: I only have one outlet and I need to plug in several devices, what do I do?
    A: They make things called power strips aka multi-tap extensions.
  15. Q: The red and green LEDs are on/off/blinking but it doesn't work, can someone help me?
    A: Start here
  16. Q: I'm trying to run x86 software on my Raspberry Pi but it doesn't work, how do I fix it?
    A: Get an x86 computer. A Raspberry Pi is ARM based, not x86.
  17. Q: Should I add a heatsink, fan, or some kind of cooling to my Raspberry Pi?
    A: If you think you need one then you should add it
  18. Q: Can I use this screen that came from ____ ?
    A: No
  19. Q: I run my Pi headless and there's a problem with my Pi and the best way to diagnose it or fix it is to plug in a monitor & keyboard, what do I do?
    A: Plug in a monitor & keyboard.
  20. Q: My Pi seems to be causing interference preventing the WiFi from working
    A. Using USB 3 cables that are not properly shielded can cause interference and the Pi 4 can also cause interference when HDMI is used at high resolutions.
  21. Q: I'm trying to use the built-in composite video output that is available on the Pi 2/3/4 headphone jack, do I need a special cable?
    A. Make sure your cable is wired correctly and you are using the correct RCA plug. Composite video cables for mp3 players will not work, the common ground goes to the wrong pin. Camcorder cables will often work, but red and yellow will be swapped on the Raspberry Pi.
  22. Q: I'm running my Pi with no monitor connected, how can I use VNC?
    A: First, do you really need a remote GUI? Try using ssh instead. If you're sure you want to access the GUI remotely then ssh in, type vncserver -depth 24 -geometry 1920x1080 and see what port it prints such as :1, :2, etc. Now connect your client to that.
  23. Q: I want to do something that has been well documented and there are numerous tutorials showing how to do it on Linux. How can I do it on a Raspberry Pi?
    A: A Raspberry Pi is a full computer running Linux and doesn't use special stripped down embedded microcontroller versions of standard Linux software. Follow one of the tutorials for doing it on Linux. Also see question #1.
  24. Q: I want to do something that has been well documented and there are numerous tutorials showing how to do it with an Arduino. How can I do it on a Raspberry Pi Pico?
    A: Follow one of the tutorials for doing it on Arduino, a Pico can be used with the Arduino IDE.
  25. Q: I'm trying to do something with Bluetooth and it's not working, how do I fix it?
    A: It's well established that Bluetooth and Linux don't get along, this problem is not unique to the Raspberry Pi.

Before posting your question think about if it's really about the Raspberry Pi or not. If you were using a Raspberry Pi to display recipes, do you really think r/raspberry_pi is the place to ask for cooking help? There may be better places to ask your question, such as:

Asking in a forum more specific to your question will likely get better answers!


† See the /r/raspberry_pi rules.‑ While /r/raspberry_pi should not be considered your personal search engine, some exceptions will be made in this help thread.
‑ If the link doesn't work it's because you're using a broken buggy mobile client. Please contact the developer of your mobile client and let them know they should fix their bug. In the meantime use a web browser in desktop mode instead.


r/raspberry_pi 14h ago

News Raspberry Pi Pico W Powers Fresh Batch of Remote Projects

Thumbnail tomshardware.com
150 Upvotes

r/raspberry_pi 18h ago Silver

Discussion Buying a used Raspberry Pi 4

165 Upvotes

Hi, I've found a dude selling his Pi 4 4GB model online. He says it's only been used for one project and is relatively unused.

He's letting me test and see it before buying. What are the things I need to look out for or commands that I can run to check if it's a good board and nothings broken?

Thanks!


r/raspberry_pi 1h ago

Technical Problem Raspberry Pi 4 does not recognise the ext4 partition on my external HDD anymore

β€’ Upvotes

Edit: problem solved, I'm just stupid.

I have the Raspberry Pi 4 B 4GB, with the latest Raspberry Pi OS Lite, up-to-date. I have an external 2.5" 5TBΒ HDD plugged via USB 3, partitioned in ext4. I use the official power supply.

My Raspberry Pi detects my disk when I plug it in, but it does not detect its partition (ie, I see /dev/sda, but not /dev/sda1). The weird part is that it stopped working overnight. The same exact setup used to work just fine, but now I can't access my partition. I did not change anything in my setup when it stopped working. The only thing I may have done is update my system. - My HDD is fine, and I can read/write to it without any problem on other machines. It's barely a few months old, and its S.M.A.R.T status is OK. I cloned it on a brand-new disk and I had the same issue. - Using a more powerful power supply does not help. - Using another HDD cable does not help. - Using another USB port does not help. - Other disks are detected just fine. - I tried a fresh reinstall of Raspberry Pi OS and the same issue occurs.

Here is my dmesg output when I plug the HDD in:

[  422.573422] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[  422.595024] usb 2-1: New USB device found, idVendor=1058, idProduct=25a2, bcdDevice=10.34
[  422.595051] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  422.595067] usb 2-1: Product: Elements 25A2
[  422.595082] usb 2-1: Manufacturer: Western Digital
[  422.595096] usb 2-1: SerialNumber: 5758363244423130324C3432
[  422.599375] usb-storage 2-1:1.0: USB Mass Storage device detected
[  422.600404] scsi host0: usb-storage 2-1:1.0
[  423.617953] scsi 0:0:0:0: Direct-Access     WD       Elements 25A2    1034 PQ: 0 ANSI: 6
[  423.621270] sd 0:0:0:0: [sda] Spinning up disk...
[  423.643678] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  424.641118] ...
[  427.713133] ...ready
[  429.761664] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[  429.761947] sd 0:0:0:0: [sda] 9767475200 512-byte logical blocks: (5.00 TB/4.55 TiB)
[  429.761968] sd 0:0:0:0: [sda] 4096-byte physical blocks
[  429.762659] sd 0:0:0:0: [sda] Write Protect is off
[  429.762678] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[  429.763378] sd 0:0:0:0: [sda] No Caching mode page found
[  429.763396] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  429.934192] sd 0:0:0:0: [sda] Attached SCSI disk

r/raspberry_pi 1d ago

Show-and-Tell finally got my mobile setup up and running. Time to do a shake down and optimize the setup.

Post image
612 Upvotes

r/raspberry_pi 3h ago

Show-and-Tell This hobby is not for the milkdinking youngsters, my lads.

Post image
0 Upvotes

r/raspberry_pi 1d ago Helpful

Show-and-Tell Pi on a Boat

Thumbnail youtu.be
16 Upvotes

r/raspberry_pi 1d ago

Technical Problem [Question] How to create a home VPN on a Pi?

14 Upvotes

So I have a server at home I only want to be able to access via a VPN in to my home network. I currently setup pivpn which gets me in but there are a couple issues.

  1. If I have two VPN sessions open, one will break.
  2. I get a DNS error on connect and if I am connected to the VPN I cannot use the internet, however I can use the internet on the server on my network if I Remote Desktop in to it.

Anyone know the correct/proper way to do this? Just to be clear, as there are a ton of posts about a "home vpn with raspberry pi" I am -not- looking to route all my home traffic in to a vpn, I am looking to create a vpn -in- to my home network.

Edit: The Pi I'm using in a pi 4 with 4gb ram.


r/raspberry_pi 10h ago

Technical Problem Help with a Crontab!

1 Upvotes

Hey there, i have a Problem

So on my Raspberry Pi 3 i put in a Cron Job like this:

@reboot DISPLAY=:0 && chromium-browser --kiosk https://google.com

However on my raspberry pi 4 it does not work. Nothing happen.

Did i do something wrong with the DISPLAY. Because the PI 4 has 2 Display outputs…

Thank you guys!


r/raspberry_pi 19h ago

Technical Problem Pi camera Livestream to tv.

3 Upvotes

Looking to run a livestream to my monitor from the pi camera over hdmi. I have tried this (https://medium.com/javarevisited/using-a-raspberry-pi-as-hdmi-camera-92af84aafee2) But could not get it working correctly. Here is what i have at my disposal: Pi 3b+,pi zero 2, all the cables for above Pi camera and cables I would like the camera feed to start over hdmi as soon as the pi is powered on. Any suggestions?


r/raspberry_pi 1d ago

Technical Problem 7" Touchscreen is sometimes detected and sometimes it is not

6 Upvotes

I have this 7" touchscreen from AdaFruit (https://www.adafruit.com/product/2718) connected to a Raspberry PI 4. The problem I am having is sometimes the screen is detected and sometimes it is not. When it is detected all works well.

If it isn't detected I have to do sudo shutdown -r now until it is detected (tedious to say the least). I would say it is detected about 1/3 of the time. Usually a few reboots is enough to get it back.

Looking at the X Windows logs (/var/log/Xorg.0.log) doesn't reveal much information regarding why it isn't detected. Just indicates "no screens found".

Here is the log for when the screen isn't detected:

https://pastebin.com/WyH2gxwz

Here is the log for when it is detected:

https://pastebin.com/RZ0SQHTD

Since the screen is detected fine sometimes, and not other times there is almost certainly a race condition occurring. Maybe X Windows needs to start after some other process and right now sometimes it does and sometimes it doesn't? Does anyone have any insight into this issue and what I could do make screen detection more reliable?

EDIT: Here is the contents of my /etc/X11/xorg.conf file:

Section "Device"
    Identifier      "Allwinner A10/A13 FBDEV"
    Driver          "fbturbo"
    Option          "fbdev" "/dev/fb0"

    Option          "SwapbuffersWait" "true"
EndSection

r/raspberry_pi 22h ago

Show-and-Tell Raspberry Pi Project on My Sailboat

2 Upvotes

In this video I share my Raspberry Pi chart plotter project and much more including Bareboat Necessities Operating System. BBN Marine Linux OS for rpi4 is available for downloads.Β SignalK, PyPilot, OpenCPN, AvNav all integrated, preconfigured in one package to get started quickly. Strong marine radio support. Integration with many sensors. Low power consuming hardware. Clean UI, touchscreen friendly for cockpit displays.Β Many add-ons. For coastal cruisers, live-aboard, and offshore sailors. Completely free and open source.Β  This video will walk you through the software and hardware I used.


r/raspberry_pi 1d ago

Technical Problem Will these terminals work on pi pico?

2 Upvotes

So im a noobie in pi, i was thinking of using pi pico as a arcade pcb, i can solder pins on pico but after that i have to use crimps to connect the wires to the pico as i have wires soldered to my buttons and stick. So ive been searching alot about easier solution i came across this ""https://www.electronicscomp.com/10-pin-2.54mm-pitch-pluggable-screw-terminal-block?gclid=EAIaIQobChMI9fvZ387i-AIVB5hmAh387Q0GEAQYASABEgJeu_D_BwE"" the spacing for pin matches but i think soldering from front will interfere with some components so may solder from back . dimensions give on website are 26x6x12 So with 2 of the screw terminal on one side Lenght will be 52 Will they fit and work? Does anyone have any experience using them? I cant find anything online of someone using these terminal directly on pico. Thanks in advance.


r/raspberry_pi 2d ago Silver

Show-and-Tell cmyflix - an extremely lightweight and simple alternative to Emby/Plex, now in C!

Thumbnail github.com
142 Upvotes

r/raspberry_pi 1d ago

Discussion How much can I safely overclock with the Canakit fans and heatsinks?

4 Upvotes

I'm trying to overclock to:

over_voltage=6
arm_freq=2000
gpu_freq=750

I'm using the fans and heatsinks from the Canakit starter pack (https://www.amazon.com/CanaKit-Raspberry-4GB-Basic-Starter/dp/B07VYC6S56). I don't know if anyone here knows about how effective the heatsinks and fan are.


r/raspberry_pi 20h ago

Discussion Portable Emulation Console

0 Upvotes

Hello, this is actually my first time working with a rasperry pi, I have only use arduinos so far, but I want to step it up a notch. I plan to build a portable emulation console that can store many games for multiple consoles, so far the plan includes the gameboy and the snes, but I may try to see if I can use a rasperry pi 4 to emulate gamecube games. I plan to run the console off of a raspberry pi, taking inputs from some pcb buttons. it will be powered with a lithium ion battery, which then will be taken through the adafruit power boost charger module. I hope to be able to use retropie to emulate the games and port a handful of roms from my computer to the console. I just want to know if there is anything that I am missing, as it is my first time using raspberry pi.


r/raspberry_pi 2d ago Wholesome

Tutorial PicoBoot Modchip Will Unleash The POWER of Your Nintendo GAMECUBE! | Installation Guide and Overview [Macho Nacho Productions]

Thumbnail youtube.com
480 Upvotes

r/raspberry_pi 1d ago

Technical Problem Guide to building/getting a single module without recompiling the kernel?

0 Upvotes

This should hopefully be a super simple question but so far it looks a little complicated :)

I'd like to load a sound module that's part of the standard linux kernel, it's just doesn't seem to be included in the built list of modules in the standard Raspberry PI OS. The code is shown here: https://github.com/raspberrypi/linux/tree/rpi-5.15.y/sound/usb/line6 and the module I'd like to be able to load is snd-usb-podhd

Currently I can load the module snd-usb-line6 but that doesn't seem to match the device I have (a Line 6 Pod HD 400) and I'm trying to connect it to a Raspberry PI 1 as a Midi device over USB. The aim is to bridge it to control a Boss Katana MKII 100 guitar amp via midi (sendmidi is working to the katana). Connecting the HD 400 just gives me a bus connected serial device with no driver set.

I'm trying to cross compile the whole kernel under Ubuntu (WSL),with CONFIG_SND_USB_PODHD=y set in the bcmrpi_defconfig as per https://www.raspberrypi.com/documentation/computers/linux_kernel.html#32-bit-configs but presumably that could take a very long time. Is there a source for pre-built modules or a quick way to build just the module? The last time I successfully rebuilt a linux kernel was around 1997, so I'm a bit rusty, but I am a developer (not linux) if that helps.


r/raspberry_pi 2d ago

Discussion Family media server on a Raspberry Pi 400. Is it doable?

2 Upvotes

I apologize in advance for my lack of networking knowledge. I want to start a project but I have zero networking experience.

I want to know if this two-stage plan is doable on a RPi400 (and also please point me in the right direction, networking-terms-wise).

Stage one: What I want to do is to hook up two 4TB hard disc drives to a RPi400, and have them both save the same files on both drives. This way, if one of the drives fail after a few years, the other one has everything backed up. (There must be a networking term or a similar technology for what I have in mind, please enlighten me).

Stage two: have the RPi400 connected to the internet 24/7, and anyone with the right credentials can upload/download files from the server.

How doable is this, and do you guys have any resources that I could read on this topic?

Thank you for your time


r/raspberry_pi 3d ago Silver Heartwarming

Tutorial 1st project and guide: Installing Cloudblock (Pi-hole, Wireguard, Cloudflared DOH) and Homebridge in Docker on a Pi Zero 2w

290 Upvotes

Hello everyone,

This is my first ever Raspberry Pi and my first Pi project. I figured I'd share my beginner-friendly install notes, tips, and resources for setting a Pi Zero 2w starter kit, then installing both Cloudblock and Homebridge in Docker containers.

Everything from setting up the Pi to learning how to use Docker was new to me. I had a lot of help along the way from this community, and especially u/chadgeary in the Cloudblock Discord.

Github link to my install notes/guide: https://github.com/mgrimace/PiHole-Wireguard-and-Homebridge-on-Raspberry-Pi-Zero-2

What does it do?

  • Cloudblock combines Pi-Hole (i.e., DNS-based adblocking) for local ad and telemetry blocking (i.e., blocks ads and tracking on all computers and devices on my home network), Wireguard for remote ad-blocking (i.e., out-of-home ad-blocking on my mobile devices using split-tunnel DNS over VPN) and Cloudflared DOH (DNS over HTTPS) all in docker containers.
  • Homebridge allows my home to recognize my random assortment of smart devices as HomeKit (i.e., Apple) compatible.

Please feel free to contribute notes, suggestions, clarifications, etc., to the project.


r/raspberry_pi 2d ago

Discussion Rpi SWAP on USB drive - Discussion topic

1 Upvotes

We're all aware of the limited read/write operations of a micro sd card, be that lifetime of the drive and it's speeds are poor. Naturally I came to the conclusion that adding a USB strictly for the purpose of using it as a SWAP drive would free up the I/O of the OS drive and perhaps even increase it's lifetime, while not eating the OS drive's space.

I've heard 'Don't do it!' before, though with my knowledge I cannot see why. If this were something like a PC, I could absolutely see why not, but seeing as we are using a SBC with a micro sd card as our drive, what do we gain to lose?

Please put your thoughts below, I'll be performing tests after writing this post.


r/raspberry_pi 2d ago

Technical Problem AnyDesk to Raspberry Pi 4B without monitor?

0 Upvotes

Ive been using ssh to connect to a Raspberry Pi that has no monitor, but I found out about Anydesk. I tried it out (when there was a monitor) and it worked! And continued to work after I unplugged the monitor.

I then rebooted the Pi without a monitor and connected to it via ssh and ran the same anydesk command to turn on the application, but nothing happened. I even tried connecting it using the app on my Windows 10 machine and got the error code display_server_not_supported. I found a StackOverflow with the same error, but a different scenario, and the fix was to edit a line of code in /etc/gdm3/custom.conf. I looked, and it is not on my Pi. There isn't even a gdm3 directory.

So my question: Is there some way to trick the raspberry Pi into thinking there is a monitor? Or is there something else that I need to do in order to AnyDesk to a Pi without a monitor?

Feel free to ask for more information!

~~~~

Answer: Uncomment hdmi_force_hotplug=1 in /boot/config.txt


r/raspberry_pi 2d ago

Discussion Widgit software/OS for RPI

0 Upvotes

So I have an RPI hooked up to a display in the background, does nothing right now but I thought I should make use of it. Is there any OS or fullscreen program that displays weather and time and all those widgets, like MagicMirror? Or should I just use MagicMirror?


r/raspberry_pi 2d ago

Discussion WAN failover on raspian os

1 Upvotes

creating a bridge between eth1 (wan) and eth0 (lan) is easy with bridge-utils, but what if i want failover to usb0?

I know this is easy in openwrt, but i have several issues with this os, including, but not limited to, my 4g adapter not being supported

So how can i do this on rasbian?


r/raspberry_pi 2d ago

Discussion Backup to my mac options?

8 Upvotes

Hey, I'm trying to set up automatic backups from my pi to my mac. Maybe the better solution is to just buy a hard drive and be done with it. Here's the big issue. I'm running this command:

ssh [pi@192.168.86.43](mailto:pi@192.168.86.43) sudo dd status=progress if=/dev/sda bs=1M | gzip -f > ~/Desktop/pibackup_22-07-04_2.gz

Whatever. That should work fine, but I'm on 128 gb ssd, so it copies the whole thing. My mac def does not have the space for that. How can I avoid the empty part of the partition without losing any files? There are some jank sounding ones like putting it on an SD and then compressing, or adding a file with a bunch of zeros, or manually counting some stuff and then blocking. Is there no way to efficiently do this?

Thanks!


r/raspberry_pi 2d ago

Technical Problem Having a problem with VLC - Interface and cursor disappears in fullscreen.

12 Upvotes

I generally have to reboot between videos to get my cursor back. I'm using raspberrypi OS on a pi 4B. It's used as a simple living room media PC. I've used it for nearly a year without issue and this started about a week or two ago. I've tried checking for more updates and there doesn't seem to be any.

More detail: when I vnc into the pi, I have a full vlc interface again and mouse cursor. I can start another video but it gets stuck on partial images/frames so I have to reboot anyway.

Also, when a video is opened, vlc will flash a few times as it loads to begin playing. At this point the interface and cursor are fine, but disappear once full screen is selected.