.buoyancy
January 7, 2024, 03:19

which architecture am i using? raspberry pi 4 b

Hello, i'm not understanding which architecture i'm using on my raspberry pi 4 b, 'sudo dpkg --print-architecture' throws 'armhf' but 'arch' throws 'aarch64' and neofetch throws 'OS: Raspbian GNU/Linux 11 (bullseye) aarch64' and in the past i have only been able to install armhf .debian files, so i think its using armhf, if it is using armhf, is it possible to start using aarch64 or both architectures on my current system? like upgrading or something?
dubstepmad
January 7, 2024, 03:13

Taskbar/Menu is missing using RDP


gumtreelad
January 7, 2024, 00:20

PI Gif player

Im just trying to play a gif borderless full screen
SomeGreenBoi
January 6, 2024, 20:14

PI 4B refuses to boot with SD card inserted

Just setting up my PI and I used imager to download Raspberry PI 64bit OS. Already updated the EEPROM configuration as well. PI boots to bootloader without SD card. I get the error "Input Signal Out of Range". Can provide video/pictures. My card is a onn SDHC 32GB micro SD.
k9t33n
January 6, 2024, 18:38

BBS client

ok i know its like 3 decades old and useless but i really want to acces some from my pi. can anyone help? all the tutorials online seem outdated and dont work (for good reason) so ig i just need to ask around.
moajouz
January 6, 2024, 17:43

Using Arduino GPIO directly from Raspberry PI (RPI.GPIO)

So I was searching for the fastest method to send a 5v signal from the raspberry pi to other components and I saw the serial communication on arduino, this have a lot of problems from me, I just want to directly send the 5v signal and I came across this image. the website didn't have anymore in depth information, but comparing it to other information I got from chatgpt I think we could directly control the arduino pins by setting the pins ias output in the setpu, and having the same pins number as output in the raspberry. did anyone ever try it? as I think that I might have understood something wrong, I also don't trust chatgpt for codes except for him to find missed semi-colones or other typos
rootd
January 6, 2024, 16:50

Missing component and short circuit(RPI02W)

Hello, i have RPI zero 2W and my hdmi fell out, i soldered it back and its not a real problem, a real problem is that i accidentally soldered two contacts(highlighted on image attached) alltogether, and when i connected it to power supply, my cable literally melt, i removed that component and lost it(yeah, im kinda stupid), and now its booting and working, but hdmi does not work anymore. Please, tell me what was that component i removed(i highlighted it with red thing on photo) and what it does on that SBC 👉👈
oops.se
January 6, 2024, 16:34

pi 5 gpio issue when not running in sudo mode.

Post complete info.
fear0577
January 6, 2024, 16:11

PI wont login after upgrading

I upgraded over 200 packages and now after reboot my RPI asks me to log in, when I do it shows a blank screen, changes cursor to X and then asks for login again
markstillman.
January 6, 2024, 14:29

Rp2040 Win11 USB Serial Device not connecting

HI, trying to find out why i can get onto my RP2040 using thonny or Putty , just tried it on my works win 11 machine and its fine, but when I try using same cable , windows shows it there but with yellow warning sign by the die of it and this error message in it Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39) Any ideas please.
nectar.0108
January 6, 2024, 04:47

test if external usb is bootable

so I got a external USB drive with the intent to boot off of it for my rasberry pi 3 B HA install (HA = Home Assistant, an image the rasberry pi imager supports). I set the usb boot flag using sd card on my pi3, but it wasn't booting off my external usb drive or giving any image on my monitor. The pi3 boots the HA image from microSD no problem, and the external usb drive is recognized by windows 10 no problem (as a data drive anyways). The external USB drive only shows 1 partition in disk management, but who knows. So I want to rule out that the external usb drive is the problem... by booting off it on a regular computer. Any suggestion on what/how I should image it? I tried rufus imaging reactOS onto it but that failed to boot... before I give up on this drive any other suggestion for how to image it or tips to make it work? I suspect it has something to do with its embedded USB to SATA controller.. which I know nothing about. edit1: I was able to boot ubuntu iso off the external usb drive. edit2: booting off the microsd card into pi, I was able to usb mount the external drive, so the drive is mountable in the pi edit3: I double checked the boot flag, it's fine edit4: I saw a video where they booted off a usb key, so I tried that. no go. I think I can eliminate the external drive and say my rasbery pi 3 B isn't botting off USB properly without a sdcard.
trinerk
January 5, 2024, 21:31

Buttons not working on GPIO Hat

Ok, I have solved every problem I have had and this is the last hurdle. I have this HAT and following the documentation: https://www.waveshare.com/wiki/1.44inch_LCD_HAT Except in the demos in C and Python the button presses on the hat do not get detected. I manually wrote a script in python to output ot the console when a button is pressed by following this guide (it uses RPIO): https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/ With the Waveshare Demo and that guide, it does still not detect any button presses. I am a bit lost on how to test it.
ravencode.
January 5, 2024, 12:06

Pihole DHCP problems

I have pihole setup as the DHCP server for my network. I've got a mesh network which unreliably connects to pihole. My problem is that sometimes I get disconnected from my mesh network and onto my ISP router which has poor coverage. I think it's smth about the leases since when I remove my device info from the dhcp.leases file I can reconnect. Any ideas on how make it work properly?
trinerk
January 5, 2024, 10:34

custom gui

I have an application I made using C++ and Python. My question is, can I remove the desktop environment and still run these programs via command line? If I do that, will my programs still display a gui? I have a 128x128 waveshare 1.44inch hat, can I get the program directly displaying on there?
firefox3115
January 5, 2024, 02:53

Flatpak in raspeberry os

I'm trying to install Flatpak and I'm having issues; I'm getting the following error: Err:1 mirrordirector.raspbian.org/raspbian stretch/main armhf bubblewrap armhf 0.1.7-1 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] Err:2 mirrordirector.raspbian.org/raspbian stretch/main armhf libostree-1-1 armhf 2016.15-5 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] Err:3 mirrordirector.raspbian.org/raspbian stretch/main armhf flatpak armhf 0.8.9-0+deb9u1 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] Err:4 mirrordirector.raspbian.org/raspbian stretch/main armhf xdg-desktop-portal armhf 0.5-1 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] Err:5 mirrordirector.raspbian.org/raspbian stretch/main armhf xdg-desktop-portal-gtk armhf 0.5-1 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] E: Failed to fetch mirrordirector.raspbian.org/raspbian/pool/main/b/bubblewrap/bubblewrap_0.1.7-1_armhf.deb 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] E: Failed to fetch mirrordirector.raspbian.org/raspbian/pool/main/o/ostree/libostree-1-1_2016.15-5_armhf.deb 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] E: Failed to fetch mirrordirector.raspbian.org/raspbian/pool/main/f/flatpak/flatpak_0.8.9-0+deb9u1_armhf.deb 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] E: Failed to fetch mirrordirector.raspbian.org/raspbian/pool/main/x/xdg-desktop-portal/xdg-desktop-portal_0.5-1_armhf.deb 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80] E: Failed to fetch mirrordirector.raspbian.org/raspbian/pool/main/x/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk_0.5-1_armhf.deb 404 Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
trinerk
January 5, 2024, 01:47

screen hat

I am currently using a RPi Zero w2 with a waveshare 1.44 inch hat. It displays the desktop perfectly. An issue I have is that FBCP only works in 32bit OS. Are there any alternatives that work with 64bit OS that achieve the same thing? I read FBCP does not support 64 bit. Or maybe a different screen that supports 64 bit OS? Or maybe a solution (wrapper perhaps?). Thanks
realman22
January 5, 2024, 00:50

Raspberry pi official touchscreen issue

I’m using a raspberry pi model 3 and the official 7” touchscreen. After a crapton of messing with the config file I managed to run raspbian on the pi and get to the home screen. Unfortunately, only a small top left portion of the screen works. Of course I have tried calibrating but no luck because I can’t even reach other corners. Mouse and keyboard work fine. I have seen people have this problem before, but there seems to be no solution. Did anyone have a similar experience? They are powered using the official power adapter and I’m running Debian 10 because 11 wouldn’t work at all.
k9t33n
January 4, 2024, 17:38

static public IP address

I need a static public IP address but have no clue where to begin. I need this for a wireguard vpn, it will be set up on a pi 4 along with wireguard and will be used not only to encrypt my data when I'm not at home but also allow me to access my pi and let my pi hole block ads for me even on the go. any help is appreciated so thank you for even reading this. once I have this set up I feel like life's sorted for me lol 😂
tritonal2418
January 4, 2024, 16:55

Unable to boot after cloning SD to SSD

I'm trying to move from an SD to an ssd using rpi-clone. I've gone through the install and am able to get it to do the clone using rpi-clone sda. It does it's transfers and looks like it's successful but it doesn't boot. After powering off and removing the SD card and powering back up It gives an error Gave up waiting for root file system device. Common problems: Boot args (cat /proc/cmdline) Check rootdelay= (did the system wait long enough?) Missing modules (cat /proc/modules; ls /dev) ALERT! PARTUUID= d2a8e92e-02 does not exist. Dropping to shell! I've tried two different usb drives. A Centon and a kingston a400. Both give the same error. I also now can't boot off the original SD card as it gives the same error as well.
.zatara
January 4, 2024, 11:20

pihole, bitwarden,nginx unbound in portainer

Hello, I'm trying to setup bitwarden and nginx in portainer, i was running PiHole without portainer but decide to remove it and use portainer, i tried changing the port to 8080 but it didn't seem to let me open the web interface, when i did that on normal install it worked. Having problems installing nginx because it's mixing ports. I'm also having troubles setting up unbound with my pihole through portainer, anyone have a guide for this?
coshi75
January 4, 2024, 11:06

what can I use Ubuntu or RPI OS?

what is better for a cyberdeck
shortcirkuitz
January 4, 2024, 01:04

Trouble setting up multiple SSIDs on raspberry pi 4b

Ok, so I am having trouble setting up a second SSID for my raspberry pi 4. The first ssid was setup using the raspberry pi imager so I am not sure if that is where the problem lies. I can add things to wpa conf however when I try to save any config changes I recieve a "FAIL" message. I am not sure what's going on but having acces to that second SSID is crucial to the project that I am working on. Any help would be appreciated. Thank you in advance.
lucio0428
January 3, 2024, 21:46

Use GPIOs in multiple Threads

Hey, I wrote a python program that opens multiple threads (less threads than the cor can max handle, so no overload) and I defined some gpios as inputs_pullups and as outputs. The threads should use the gpios and act with them, but I get no reaction. The code works, except for the GPIO interaction. does anyone know what the problem is, had similar problems or knows how to fix it? here is an excerpt of how the gpios are used with the trads:
import RPi.GPIO as GPIO
import threading
 
def led_test():
    while true:
        PIO.output(led_one, GPIO.HIGH)
 
        button_state = GPIO.input(bt_pin)
        if button_state == GPIO.LOW:
            PIO.output(led_one, GPIO.LOW)
 
led_thread = threading.Thread(target=led_test)
 
led_one = 24 
led_two = 18 
bt_pin = 27 
 
GPIO.setmode(GPIO.BCM)
GPIO.setup(bt_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(led_one, GPIO.OUT)
GPIO.setup(led_two, GPIO.OUT)
 
PIO.output(led_two, GPIO.HIGH)
led_thread.start()
mapijs
January 3, 2024, 20:27

CORS Origin issues.

I'm trying to host one of my web applications on my raspberry but I keep running into CORS issues. I can reach the web application just fine from my computer, and I can input the url in the adress bar just fine (http:// ipadress :3000/getCards?cardName=dark%20magician ) and I get back the JSON that I'm expecting. But when using the web application itself which should send the request I keep running into CORS Origin issues. I tried: npm installing cors, requering it in my javascript and using app.use('cors') tried to explicitly declare the cors headers in my app.get route tried app.use(cors({ origin: '' })); tried
const corsOptions = {
  origin: 'http://ipadress:3000',
  methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
  credentials: true,
  optionsSuccessStatus: 204,
};

app.use(cors(corsOptions));
But nothing seems to work. these are the response headers in my browser:
GET /getCards?cardName=d undefined
Host: localhost:3000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Accept: /
Accept-Language: nl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: http://ipadress:3000/
Origin: http://ipadress*:3000
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
I was hoping someone here might be able to help me who perhaps has run into these issues before.
omrs
January 3, 2024, 18:09

pi hotspot

So I’m thinking of making a hotspot that connects to a list of proxies I want to specify more than one proxy if possible Does anyone have an idea on how to do it
beanssi
January 3, 2024, 16:44

RPI5 Power Adapter

Hi all. Prob. a billion topics about this but i wanna know if this power adapter is suitable for the RPI 5? https://www.amazon.de/-/en/Charger-Charging-Mobile-Adapter-Samsung-black/dp/B0BTPLNNP3
itsrocketman.
January 3, 2024, 16:27

Firebase Storage upload from a Raspberry pi 4 with Code::Blocks and C++

I am encountering challenges while attempting to upload a video to Firebase Storage. Specifically, I am using a Raspberry Pi 4, Code::Blocks, and implementing the code in C++. To clarify, I have tried to use the Firebase library but no chance. So i would like NOT to use it when possible. Facing a lot of issues with that and cant find a good doc how to use it on a desktop program instead of an android/ios app... The project involves the creation of a program for motion and object detection. When motion is detected, a video is recorded and saved to local storage. However, I am facing issues when attempting to send this video to Firebase Storage. New Error message:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>404 Page not found</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Page not found</h1>
<h2>The requested URL was not found on this server.</h2>
<h2></h2>
</body></html>
Thank you in advance! Sorry, there is not enough space for all my code. 😦 You can find it on Stackoverflow under the same title or ask and i can send more as comment ^^
void uploadToFirebaseStorage(const std::string&localFilePath,const 
std::string&firebaseStorageUrl,const std::string&firebaseApiKey){
    CURLcurl;
    CURLcode res;

    curl_global_init(CURL_GLOBAL_DEFAULT);
    curl=curl_easy_init();

    if(curl){
    std::ifstream file(localFilePath,std::ios::binary);
//...

int main(int argc,char*argv){
    //..
    std::string localFilePath="/media/raspi/videos/output_2024010315.avi ";
    std::string firebaseStorageUrl=" nameIcopyfromtheStorage.appspot.com/Video ";
    std::string firebaseApiKey="......";
    uploadToFirebaseStorage(localFilePath,firebaseStorageUrl,firebaseApiKey);
    //..
    if(video_writer.isOpened()){
    video_writer.release();
    }

    }
(And sorry for posting this again. Deleted the text and didnt know how can i add it again. Just wanted to fix it xD )
.hqnnah
January 3, 2024, 11:54

Emulate nintendo switch pro controller with pi 4

I am looking to be able to send inputs through my pi through a program or set of code that would be configurable like a macro, but am having trouble understanding projects and instructions. Just got a pi and dont have very much programming knowledge.
sanderzw
January 3, 2024, 10:44

Need Help with Bluetooth Connection Issues on Raspberry Pi

Hi everyone, I'm working on a project with a Raspberry Pi where I'm using Python to connect to cycling speed and cadence sensors via Bluetooth. The program uses asyncio and bleak for handling the Bluetooth connections. My script successfully connects to the sensors and reads data on the first attempt, but I encounter connection problems on subsequent tries. Here's a brief overview of what my code does: Connects to two cycling sensors using their Bluetooth addresses. Reads cycling speed and cadence data for 30 seconds. Disconnects from the sensors. On the first run, everything works as expected. However, when I try to run the program again, it fails to connect to the sensors. The error I receive is not very detailed, making it hard to diagnose the problem. I suspect the issue might be related to how the Bluetooth connection is being handled, or perhaps the sensors are not properly resetting after the first connection. I'm not sure if it's a problem with the Raspberry Pi's Bluetooth interface, an issue with the bleak library, or something else. Has anyone experienced similar issues or have any insights into what might be going wrong? Any help or suggestions would be greatly appreciated!
oops.se
January 2, 2024, 23:11

Firebase Storage on a Raspberry Pi 4 with Code::Blocks and C++

To format code in discord use 3 x backticks before and after the code block, see https://discord.com/channels/818384379197784084/1189386838788542464 for help