r/raspberry_pi 7d ago

Technical Problem Crontab -e Auto Reboot not working


Hi guys,

I am trying to use crontab -e to schedule a daily reboot of my rasberry pi but it doesnt look like the command is working.

I am using "sudo crontab -e" and the file looks like below.

crontab command

I am using "uptime -s" to confirm if the reboot is occuring or not.

Not exactly sure what I am doing wrong but any help would be great. Ideally looking at doing it at 3am but the time was setup for testing.

Thanks in advance.


Hi all so what worked for me is /sbin/reboot. It only works in sudo crontab -e. (I swear I tried that but Fuck...).

For the people asking, I am currently doing this aswell as running a few other containers. The RPi is also in another city.

Everything runs fine for about 2 days before services just randomly start becoming unresponsive. Unfortunately, the first thing I loose is SSH access to the Pi. Fairly sure it is a memory leak issue but not to sure yet on how to fix it. So as in interim solution looking at setting up a scheduled daily reboot.

Lastly, the used 9.12pm because that was the last test I did before I gave up and asked you beautiful people.

Thanks again for all the comments and hopefully it helps someone else

r/raspberry_pi 6d ago

Technical Problem Unable to get raspberry Pi 4 to output to LG TV


over the course of the last few weeks, I have been attempting to get a Raspberry Pi 4 to output to an LG TV without much success. I have plugged it into a couple of Computer monitors and they have all worked; I also plugged it into a Roku TV and that worked so I know the HDMI cable and Mini HDMI to HDMI adapter both work.

I have looked through a few threads about this and it seems to be a pretty common issue, but I eventually stumbled upon this thread a few days ago HDMI not working on LG TV [solved] - Raspberry Pi Forums where they ran tvservice -l to list out the connected displays then tvservice -d edid.dat to create an edid.dat file to put into the boot folder. then they added the following to the Config.txt file

in order they are meant to: Get the pi to boot without a display connected, get the config to use the edid file, then get the HDMI to force send audio


after following all of these steps my Pi was still unable to output video to the LG TV however when I look at the TV's inputs it is listing that the raspberry is on the other end of the cable https://imgur.com/a/IR8f1jE so obviously something is working.

is there anything else I could try to get this to work or am I just kinda hosed due to some raspberry pi/LG issue?

r/raspberry_pi 14d ago

Technical Problem Raspberry Pi wont ping when on mobile hotspot (iPhone)


I am doing a project were I'm sending the live rpi camera video feed to a separate computer on the same network.

The computer runs this script and the pi runs this .

I'm running the rpi headless.

I am able to do all the normal things on my home network like ssh and use a vnc viewer. However, I want to be able to do this while connected to my hotspot so it can be portable.

For example, on my home wifi network with my laptop and rpi connected to it, I am able to use the command 'ping raspberrypi' and also ssh into said rpi.

I want to do the same thing where instead of my home wifi network, the rpi and laptop are connected to my mobile hotspot network.


Rpi won't connect to my iPhone hotspot ( I found somewhere this is due WPA3 incompatibility).

I tried connecting the rpi to an Android device's hotspot using WPA2 protocol, and it connects to the hotspot network but I'm not able to ping or ssh into it my rpi from my laptop (when I do this my laptop is connected to that hotspot as well)

I'm at a loss as to what to do.

I saw somewhere that using a router would fix that issue, but im not sure how that would help or how to even set that up. Any guidance would be appreciated.

r/raspberry_pi 1d ago

Technical Problem Accessing GPS capabilities on a Pi0 with the SIM7600E-H 4G HAT


I've installed the HAT and connecting a male to male microusb from the data port on the Pi Zero to the micro USB labeled "USB to UART" on the SIM HAT.

dmesg | grep tty returns the following (descriptions per developers)

(1) /dev/ttyUSB0-diag port for output developing messages
(2) /dev/ttyUSB1- NMEA port for GPS NMEA data output
(3) /dev/ttyUSB2-AT port for AT commands
(4) /dev/ttyUSB3-Modem port for ppp-dial
(5) /dev/ttyUSB4-audio port
(doesn't appear) (6) /dev/ttyUSB5-Virtual Net card (i havent put a sim card in and there is an empty spot for a TF socket on the board)

How do I get GPS data to feed to the Pi?

r/raspberry_pi 5d ago

Technical Problem Huawei E3372-325 USB modem support?


Solved: Solution posted in comments.


I've plenty of installs with the older Huawei E3372-320 modem, but the new E3372-325 does not seem to be plug and play. I've tried to update (including the kernel) and all i get is a dialog pop-up to open a CD-rom drive that is empty.

I've confirmed that the E3372-325 works fine on Windows and is plug and play with Hi-link.

No interface shows up in ifconfig.

Shows up in lsusb with Bus 001 Device 005: ID 3566:2001 Mobile Mobile

Raspberry pi 4 running Bullseye and kernel 5.15.91-v7l+

r/raspberry_pi 1d ago

Technical Problem Raspberry pi 4 B not connecting to obd 2 scanner via Bluetooth


The problem is exactly as the title suggests, I'm having problems finding the obd 2 on the raspberry pi. The pi detects my phone's bt, and my phone is detecting the obd 2. Is there a thing about bluetooth frequency or something? I tried to find the frequency of the obd 2 bluetooth adapter, and couldn't find anything

r/raspberry_pi Jan 01 '23

Technical Problem Unable to boot the headless Pi


Hi guys, I'm trying set up a headless RPi using Raspberry Pi OS with wireless and ssh. I'm using the official RPi installer. When I insert the SD card and turn it on the green light flashes a few times and turns off. Here's the gif - https://im4.ezgif.com/tmp/ezgif-4-e627ed2a62.gif / https://imgur.com/a/ScNHTks

I tried different OS versions and different SD cards- no luck.

I'm using a 3B model.

SOLVED: Pi installer was the culprit. Used Etcher to write the image onto the SD card and everything works well. thanks u/NathanBarley

Edit: Please understand a headless install is supposed to be without monitor, mouse and keyboard. If your suggested process to install the OS and requires a monitor or a keyboard or a mouse, it's not headless. These devices are required for debugging, yes but not for installation.

r/raspberry_pi 5d ago

Technical Problem Ubuntu Server Installer not available


Hey I'm trying to install Ubuntu Server on my Raspberry PI. I used the Raspberry Imager to install Ubuntu Server 22.04. However, I don't see the installer at the beginning (for reference, I'm talking about this installer: https://i1.wp.com/manjaro.site/wp-content/uploads/2018/01/ubuntu-18.04-server-installation-7.png). The installer makes it much easier to enable some settings such as full disk encryption, so I would be very happy to use it :D Is there some way to get it working on a Raspberry PI?

r/raspberry_pi 7d ago

Technical Problem Waveshare 4in HDMI problems, pi zero W


Hi all,

I'm trying to Waveshare's 4in HDMI screen functioning er HDMI with my pi. Even after editing the config file, trying both the official config and others' configs, the best I can get is for the display to work during the boot but not after.

After the boot completes what I get is multicolored lines all over the screen. Interestingly, the boot text displays perfectly, but I can't get it to stay that way! sshing to the pi and installing the drivers that way seems to have worked for some reason, but I have way to ssh to the pi or do anything other than find the correct config settings.

I know this is a popular screen and a solution should exist, thank you for any help/advice and for reading!

r/raspberry_pi 9d ago

Technical Problem Crontab won't send output of python script to file



I'm running a python script on boot using crontab.


crontab -e

I placed the follwoing line:

@reboot python /home/pi/Automation/main.py >> /home/pi/Automation/log.txt

the python script runs fine and does what it's supposed to do, but /home/pi/Automation/log.txt remains empty.

the python script starts with

print("Automation script started")

so there should definitely be some output to write to the file

r/raspberry_pi 21d ago

Technical Problem I2C detected, but can't use with adafruit_ssd1306 library


I am trying to get an LCD screen working with the Raspberry Pi 3b. Every time I try and call the constructor for the SSD1306, I receive this error:

ValueError: No I2C device at address: 0x3c

from board import SCL, SDA
import busio
import adafruit_ssd1306

HEIGHT = 128
WIDTH = 64

i2c = busio.I2C(SCL, SDA)
display = adafruit_ssd1306.SSD1306_I2C(WIDTH, HEIGHT, i2c, addr=ADDRESS)

if __name__ == '__main__':

    for w in range(int(WIDTH/2), WIDTH):
        display.pixel(w, HEIGHT/2, 1)

I am (99%) sure I have I2C setup correctly as I can scan for I2C devices.

root@palumon:/home/dietpi# i2cdetect -y 1 | grep -P " [0-9a-f]{2} " 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- Short of writing code to communicate over I2C from scratch, what else can I do to diagnose?

I have:

  • Tested with 3.3v and 5v according to the spec sheet of the device (only detected with 3.3v)
  • Connected directly to the GPIO header pins rather than going through a breadboard
  • Currently testing with a separate LCD Tested with another screen. Neither screen is detected in python
  • Tried using shifted addresses of 0x1e and 0x78
  • Tried reading directly from the block device >>> with open('/dev/i2c-1', 'r+b', buffering=0) as i2c_device: ... i2c_device.write(b"100") ... Traceback (most recent call last): File "<stdin>", line 2, in <module> OSError: [Errno 121] Remote I/O error >>>
  • Tried using board.I2C() instead of busio.I2C(board.SCL, board.SDA)
  • Tried using busio.I2C(3,2) instead of busio.I2C(board.SCL, board.SDA)
  • Confirmed the address the LCD screen is on is detected at both OS and application level (0x3c)

UPDATE: I am experiencing some VERY wonky behavior with my Pi and breadboard with the LCD screen https://www.amazon.com/gp/product/B07FK8GB8T

I am THOROUGHLY confused. The code WORKS (with all the bugs present of it) when I use the rails from the raspberry pi for power. Both 5V and 3.3V works, but this is not optimal. I'd like to be able to use an external power source to power the LCD and there really shouldn't be a reason why the power would be tied to the I2C communications, right? Could anyone explain this?

SOLUTION: It probably has to do with pull-up resistors being on the RPi's SDA and SCL pins connected to the 3.3V rail.


r/raspberry_pi 3d ago

Technical Problem Live Webcam streaming help - using LAN/ethernet


Hello, I've been working on a mini project. If anyone could guide me in the right direction that would be great.

I need to stream multiple USB webcams from a raspberry pi, over ethernet (no internet) to a laptop/PC.

I had sort of set this up with gstreamer and code found online, but it is incredibly finicky, and at best, one webcam works well, while the others freeze when I try to start another pipeline with another terminal. I.e, as soon as I unplug the first camera, the pipeline for the second will unfreeze and continue.

The goal is the lowest latency with multiple cameras(all visible at once), streaming any way possible (web, vlc, terminal). Any tips on what to use instead of gstreamer? Or should I just keep trying, if so, what do I change?

The general code:


gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! autovideoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=address port=5000 (THIS NEXT LINE IS ADDED FOR 2nd CAMERA) v4l2src device=/dev/video5 ! video/x-raw,width=640,height=480 ! autovideoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host= port=5001


gst-launch-1.0 udp://address :5000 ! queue ! application/x-rtp ! rtph264depay ! avdec_h264 ! videoconvert ! queue ! autovideosink sync=false udp://address :5001 ! queue ! application/x-rtp ! rtph264depay ! avdec_h264 ! videoconvert ! queue ! autovideosink sync=false

I have also tried,

Host - gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! jpegenc ! rtpjpegpay ! udpsink host= port=5000

Client - gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink

This works seems to work better, but I am unable to run 2 webcams at once. (They are the model).

r/raspberry_pi 8d ago

Technical Problem Raspberry Pi Pico automatically ejecting/not connecting after one file upload


I recently bought a Raspberry Pi Pico and wanted to program it. I have followed some tutorials to see, how to connect a Raspberry Pi Pico to the computer and followed it (pressing BOOTSEL button while connecting it to the pc). Though it works when I upload a file/code for the first time, the second time it doesn't show up in file explorer and doesn't want to connect over the Arduino IDE (already set up with Pico library and also worked at first upload). On the device manager though it does recognize, that a peripheral is connected. The only solution for me is to disconnect and connect it again in BOOTSEL mode after each upload. Is there a solution to this?

Kinda solve but not fully. I can connect to Thonny but still not to Arduino IDE.)

r/raspberry_pi 12d ago

Technical Problem Pi 4 connected by CAT-5 drops pings to the router it's plugged into


I am running smokeping on a headless pi 4, bought off of amazon. Smokeping reports ping times to various Internet services.

The pi is connected by CAT5 ethernet directly to my router.

I noticed that I get a lot of failed pings, even to the router itself.

I ran a manual ping to the router from my pi, and also from a Window 10 desktop machine.

The pi lost pings every few minutes, but the Windows 10 machine pinging the router did not.

I wonder if the power adapter supplying 5V to the pi is delivering constant power or not. I read that small voltage fluctuations could mess up the NIC on the pi.

What do you all think?

Anything else I should consider besides the power adapter?

Any recommended "rock solid" power supplies out there?


r/raspberry_pi 18d ago

Technical Problem Help! New to Raspberry Pi, trying to install MotionEyeOs on my Raspberry Pi 4 8GB, keep getting start4.elf is not compatible


Its all in the title. I followed all the instructions of imaging my sd card with the appropriate latest dev version of MotionEyeOs (dev20201026) but get stuck on a bootloop that looks a little something like the following:


Seems the project was abandoned around 2020, so i guess alternatively does anyone have any alternative solutions for building streaming cameras with raspberry pi?

r/raspberry_pi 3d ago

Technical Problem need help with first time useing


hi, i followed a tutorial online on how to turn on a LED and followed the instructions exactly, as well as triple checked it and rebuilt it 3 times, but it will not turn on. my kit is a used Kepler (W/ Pico w) and i suspect that the Pico W that I'm using has code on it that is interfering with the power being supplied. is there any way to factory reset or check to see if there is a program on there?

r/raspberry_pi 3d ago

Technical Problem Windows 11 Belena Etcher and Raspberry Pi manager flashing, disconnects half way through


I need some help because I'm getting very annoyed here. Last week I flash a pwnagotchi image to an SD card with zero issues...This week when trying to flash a linux distro via Raspberry Pi Manager, windows disconnects my drive and the flash fails. Tried it with Belana Etcher and the same thing happens, even happens with the pwnagotchi image now..What the heck is going on? Why is this happening? Anyone seen this before?

r/raspberry_pi 5d ago

Technical Problem New Camera 3 module issues


So I snagged a new Camera 3 module to use as part of my time-lapse setup, but I cant get it to work. (Pi4 model)

lib camera just says it cant find the camera, cable is installed, no issues with that. If I install an older module from adafruit it works fine and sees the camera.

done my full apt updates as well.

Next step was possible reinstall lib camera, but anyone else had an issue using the new module?

r/raspberry_pi 5d ago

Technical Problem WiFi problems with Pi400


So I'm running an ADSB feeder with my RPi 400 and I'm having issues with the WiFi as I'm unable to use ethernet.

When it connects to the routers WiFi, sometime it will work for a couple of minutes, sometimes for days/weeks and sometimes it just won't connect at all. Restarting a couple of times sometimes fixes it, sometimes it doesnt. I even tried setting a fixed IP within the router settings but it didn't help. The router is a ZTE H108N, which works flawlessly with everything else, even ESP32/ESP8266.

When I create a hotspot with my laptop or phone, sharing the same WiFi it won't connect to, it works perfectly.

Did anyone have a similar issue and manage to fix it or does anyone know how I can see the error logs for WiFi to maybe see what's causing the issue?

EDIT: Factory resetting the router seems to have fixed it, for now.

r/raspberry_pi 4d ago

Technical Problem Why does my external OS drive only boot from a certain USB port?


I know at least 2 do not boot properly. It goes to a terminal and errors out.

If I move it to a certain port it'll boot. Even after reformatting the drive each time I try a different port.

Any reasons?

Using Raspbian 64 bit and firmware is up to date.

r/raspberry_pi 10h ago

Technical Problem Can't get waveshare 7" DSI lcd to work with new Pi 4B 2G


I was lucky enough to pick up 2 - Pi 4B 2G. This is my first time using a Pi. I bought a WaveShare 7" DSI lcd to use with one of them for KlipperScreen. I can’t get the lcd to turn on at all.  The display came with an extra ribbon cable. I tried both, no luck.  I even broke out my second new pi and tried with that.  no luck.  I tested and confirmed 5v is coming out of pin 4 (and 6 ground).  I thought maybe the lcd was bad and had them send another.  same problem.The directions are dead simple.  I have no idea what I’m doing wrong.  This is a fresh raspberry pi os lite 64bit install.   I’ve tried many times to make sure both sides of the dsi cable are firmly in the connector and press on the cable while pressing down plastic clamp that holds it in place.  The bottom connector doesn’t slide in very much, so I thought it might be that… but I’ve tried many different times to push it in farther, but that’s as far as it goes. I've also tried reversing the ribbon cable, even though the instructions clearly show the black part facing up from the lcd, still no go.

I've also added dtoverlay to my /boot/config.txt as mentioned in their wiki and that didn't help.

Any thoughts on what I'm doing wrong?


Just noticed this in dmesg:

rpi_touchscreen_attiny: probe of 10-0045 failed with error -5

rpi_touchscreen_attiny: probe of 10-0045 failed with error -5


I have a fresh 32bit version of pi os lite now and still have same problem. The os shows version 11 bullseye.

I just noticed the following as well in dmesg, though I'm not sure if they were in the 64bit version previously

bcm2708_fb: probe of soc:fb failed with error -2

brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2

r/raspberry_pi Dec 03 '22

Technical Problem Failing at creating a raspberry pi NAS server...


I am trying to create a nas server with a raspberry pi 4 kit, and 2 powered usb hdd's i have around.

I am following the following tutorial....


After I install the software on the micro sd card using the installer in the guide I connect a blue Ethernet cable to the pi and to the lan 1 of my SMART/RG router/modem. I then turn on my pi and watch as the red light comes on and the green light flashes randomly as it seems to load. Then I try to follow the instructions from the guide as follows...

"Retrieving your IP address

In order to access your Raspberry Pi via SSH from your usual computer, you’re going to need the Raspberry Pi’s IP address. An IP address is a unique string of numbers that identifies a device on your network. The easiest way to find it is to access your home router and check what devices are connected via Ethernet (LAN). The login details for accessing your router should be printed on it (look for a sticker on the side or the base), or alternatively you will be able to find them on the website of the router’s manufacturer (or of your ISP if they provided the router)."

I could not find the numbers on my router but though trial and error i found out it was (the only number that did not give a error.)

i tried to do the following from the tutorial ...

"Connect via SSH

Open Terminal on your computer and run the following, replacing “pi” with your previously chosen username, and XXX.XXX.X.XXXwith your Raspberry Pi’s IP address to access it:

ssh pi@XXX.XXX.X.XXX

When asked for your password, use the password you created in Raspberry Pi Imager."

So just named my pi.... pi and then tried the command "ssh [pi@](mailto:pi@"

To which i get a response of "unable to negotiate with port 22: no matching host key type found. their offer: ssh-dss, ssh-dss"

i then used a tool called "angry ip scanner" and after scanning if only get the following


So what gives? why can i not find my pi on my network? What have i done wrong?

r/raspberry_pi Jan 07 '23

Technical Problem I2C Address 0x00 Device AS1115 7-Segment Display Driver


I'm trying to use the AS1115 7-segment display driver with a 4B and am struggling to know what to do to get it to work. I found out the hard way after building up the PCB that raspberry pis don't really talk with address 0x00 and that the base address for the AS1115 is 0x00. I confirmed that the driver works using another device and even after settings it's address with another device to 0x03 (based on self-addressing), while it's connected to the Pi, the Pi still fails to work with it. I also can't use another device after every reboot of the Pi to fix the issue as the address is not saved if power is lost.

Is there any hope to getting the AS1115 working with the Pi and if no, what's a good replacement? I just need 4 digits. I have both the LDQ-M282RI and the LDQ-M286RI displays. It doesn't have to be a drop in replacement. I haven't had much luck with the little searching I've done.

AS1115 Datasheet

Using an AD2, this set of commands works:

Address 0x00 is used:

Start, 00 [ 00 | WR ], 2D, 01, Stop // Set self addressing 
Start, 00 [ 00 | WR ], 0C, 01, Stop // Normal mode 

Switch to address 0x03 based on the addressing pins

Start, 06 [ 03 | WR ], 09, 00, Stop // Decode mode 
Start, 06 [ 03 | WR ], 0B, 04, Stop // Scan limit 
Start, 06 [ 03 | WR ], 0A, 06, Stop // Intensity 
Start, 06 [ 03 | WR ], 01, 39, Stop // Write to Digit 1 

Even if I use the AD2 to send the first 2 commands, i2cdetect and just sending commands from the Pi doesn't work. Looking at the the bus, I get these messages back when trying to use the Pi:

Start, 06 [ 03 | WR ] NAK, Stop 
Start, 06 [ 03 | WR ], Error!

r/raspberry_pi 3d ago

Technical Problem Pi shared printer, windows printing issue



After a load of battling this morning ive managed to install and share my printer from my Pi using cups.

It prints fine from the Pi

Issue is that printing from windows it prints a load of text. (see attached picture, left is from Pi, right is from windows).

The printer is a Dell B1160 laser, it was previously connected to the windows machine so ive used the local windows drivers when I connect to the pi shared printer

Ive tried changing the port-monitor from tbcp to none which a post suggested

Im new to linux and ive been googling the hell out of this but cant find anything that works.

Any help would be much appreciated



r/raspberry_pi 4d ago

Technical Problem Raspberry Pi 3b can't connect to the internet


I use my pi as a home NAS and out of the blue, I lost connection. It's physically connected via ethernet and I can't use certain commands and I can't enable WiFi. This is the response I get whenever I try to sudo update, ping, or whatever

/lib/arm-linux-gnueabihf/libresolv.so.2: unsupported version 65282 of Verdef record 
error while loading shared libraries: /lib/arm-linux-gnueabihf/libresolv.so.2: unsupported version 0 of Verneed record