#help-with-linux-sbcs

1 messages · Page 5 of 1

lost wolf
#

to have that line in it

#

the manual file and firstrun may have clobbered each other the way I did it

#

I didn't delete it

steady rose
#

not sure if firstrun will trigger on a second boot

lost wolf
#

That's why I'm reimaging again

steady rose
#

ah. then nvm. 🙂

lost wolf
#

Already 80% done

steady rose
#

(just for record - been using 32bit lite, only img handy)

lost wolf
#

Ok I guess I'm doing everything manually.

#

Reimaging again.

#

With no config.

#

So all of this is caused by the new imager options?

#

deep sigh

#

also

#

(╯°□°)╯︵ ┻━┻

#

@steady rose It finally booted.

#

I need to dig up a wired mouse. But it's booted properly.

#

And connected to the WiFi.

steady rose
#

what was fix?

lost wolf
#

Going through set up now.

steady rose
#

yah. it's weird. there is this option, which does add scan_ssid=1 in the firstrun.sh script.

lost wolf
#

🙄

#

Does it boot properly that way?

steady rose
#

but looking at /etc/wpa_supplicant/wpa_supplicant.conf after booting, it's not in there.

lost wolf
#

uff.

torn trench
#

is your ssid hidden?

steady rose
#

yes

lost wolf
#

No.

#

I will want to rename this thing once it's all set up and updated.

steady rose
#

so there's something broken between firstrun.sh and the actual /etc/wpa_supplicant/wpa_supplicant.conf that gets generated

torn trench
#

I'm kinda surprised a bad wpa_supplicant.conf would break the boot

steady rose
#

the older manual approach still works though

lost wolf
#

Yes.

#

Evidently.

torn trench
#

seems like the general location

steady rose
#

it's something after that

hard pike
#

I imagine the breaking change must have happened recently. I upgraded my Pi 3B+ to the latest Raspbian back in September and didn’t have issues.

#

Though… to be fair my Pi are hooked up to Ethernet so maybe it existed then too

lost wolf
#

Now to see if it reboots again.

#

waits patiently... light is on, but nothing on display

#

Unplugged Pi and plugged back in, I am now booted.

hard pike
lost wolf
#

But the thing is too big for the display.

#

At least I'm this far.

#

Food is ready.

hard pike
#

Wooo

#

Yay food and progress

lost wolf
#

Thank you so much for sticking with me through all of this, folks.

ruby night
#

@lost wolf FYI -- I took a new raspberry pi zero 2w an imaged (Raspberry Pi Imager 1.7.3) the default 32bit desktop OS to it with WiFI setup (SSID password and country=US) and ssh enabled -- also set locale -- I left it named raspberrypi.local for this test. It took several minutes to boot but eventually responded to ping raspberrypi.local -- I then used ssh to log in -- ran sudo rasp-config -- set the Headless Screen resolution (under Display ) to 1600x1200 and then enabled VNC (in Interfaces) then rebooted. I was then able to use VNC from my Mac to bring up the full desktop. No monitor, no keyboard, no mouse.

ruby night
#

Trying now with 64bit desktop...

ruby night
#

64bit OS is not working for me - reverting to 32bit OS

steady rose
#

@ruby night hidden ssid on your network?

ruby night
#

no

#

64 bit "should" work.... I will retry after verifying 32 bit again.

steady rose
ruby night
#

I've used it a lot, but maybe not on a 2W yet. Don't recall.

#

I use the above sequence regularly to set up new Pi's.

#

Although, I often just install "lite" without the GUI so only need SSH access but I have done a few with the full Desktop.

ruby night
#

hmmm -- The first time I set up the zero2w I had the hostname as raspberrypi.local. I have tried a few more times with a different hostname and it is not working -- My Mac is unable to ping it I wonder if there is an issue with the network seeing the board after it's name has been changed. Investigating....

#

ah yes -- I can ping it by IP address, but not by its "new name"

#

that appears to be the issue. Now retrying the 64 bit desktop

steady rose
#

i'm seeing same as yesterday. the wpa_sup that shows up in /etc after booting is different than what the firstrun.sh script should have generated

#

(32 bit lite)

ruby night
#

64bit OK too -- as long as don't change the name!

steady rose
#

my ssid is hidden, so the missing line is critical

torn trench
#

But kattni’s ssid wasn’t hidden, was it?

torn trench
ruby night
#

I seem to be OK now -- 64bit OS configured the same way as above. It just got confused when I was changing the hostanme.

#

Fortunately, I was able to get the IP address and use it to connect. Also cleaning up my knownhosts file seemed to help. In any case I now have the desktop on a 64bit desktop on the 2w via VNC.

#

and it now responds to its "proper" hostname....

raw solar
#

I’ve had issues with Pi host and shenanigans — I’ve got one that I can ping by host name from Mac, Windows, RaspPi OS, Ubuntu… but not from Mint

crystal jewel
#

Quick ping (sorry for breaking the flow @ruby night ) - is there anyone experienced in ModemManager/NetworkManager lurking in the channel? Ping me if so! I’ve got a modem that mmcli is fine with but nmcli refuses to setup (tells me the modem doesn’t support IPv4 which is just weird!)
Funny thing is it’s only nmcli on ttyS0 not working; nmcli on usb is ok; ppp on ttyS0 and usb are fine..

lost wolf
ruby night
#

Glad you got it working -- I have not had any issues with the auto-config but it's good that you found a workaround.

lost wolf
#

I'm still salty about losing 4 hours to this wonkiness. But it is what it is, and it seems to be working fine now.

#

Also my plant is still about where it was in terms of blooming, so I think I'm still ok for the project.

#

Hmm. Without a "print screen" key on the RPi keyboard, is there any other shortcut to get a screenshot on Raspbian? Or do I need to go through the menus every time?

ruby night
lost wolf
#

Hmm.

ruby night
#

scrot works!

lost wolf
#

FN+back on the Logitech K400 keyboard is print screen and it works!

#

Whew. I really wasn't sure how to use a command line screenshot creator with how I wanted to get these shots

ruby night
#

Good to know -- I have a few K400s

dense comet
#

Do Raspberry PIs automatically update themselves, or will I need to make a new SD card with a new OS image on it? Reason I ask is that the U.S. senate passed the bill making DST permanent. That'll mean everything in the house will need to learn the new rules, including the RPi I'm using as the brains for our bedside alarm clock.

dusk grotto
#

You have to do the update command

dense comet
#

OK, thanks. That'll be a no-brainer via ssh.

dusk grotto
#

Yeah do you you also need the commands

dense comet
#

Thanks - it would help to know exactly what I need to type

fleet junco
#

You can find more details online with a search, but the command to update the raspberry pi is: sudo apt update

dense comet
fresh patrol
#

Yeah and what's the chances the house passes it into law the same month it's supposed to come into effect leaving everyone scrambling to update systems 🤣

dense comet
zinc jackal
#

Shouldn't NTP just keep the time properly updated anyway?

gentle briar
#

I assume that would keep GMT, but I don't know if it concerns itself with local time, time zones, etc.

raw solar
#

Yeah, I think any timezone/locale stuff is done locally based on the GMT time received via NTP

crystal jewel
#

@gentle briar ta-daaa - after a good rummage in the parts drawers (boy did i find some fun stuff!) but look what showed up

#

(ignore the recently deposited cat hair on my desk mat) - that should be a good selection to test the serial ports

lost wolf
#

Reality check, please. Using the Raspberry Pi HQ Camera on the Pi Zero is evidently (obviously) slower to react than with a full-sized Pi. I'm planning on doing a relatively long term time lapse with probably 6-8 hours minimum between photos. I'm running a Pi Zero 2 W, which isn't what this article used for testing, so it might be a bit faster than they're suggesting. But with my plans for it, I don't think it matters? (I want to make sure there's not some obvious thing I'm missing here.)

gentle briar
#

It seems to me it should Just Work, but we all know how that sometimes goes.

lost wolf
#

By all indications it will work, but I guess I'm asking if I'm right in thinking the slowness won't matter with long-delay timelapse photos.

gentle briar
#

I remember reading along with that and wondering what was going on. I'd had good luck with the imager recently, so I'm glad I wasn't using that version!

#

I'd probably turn the camera off between frames, but I suspect it's not necessary.

lost wolf
#

Ahhh yeah, that's mentioned in the software documentation, that it stays enabled, and draws quite a bit of energy. But, their concern was if you're running off of batteries.

#

There's easy code to make it turn off though.

steady rose
#

i'd think any pi would generally work OK for that

lost wolf
#

No reason not to include it.

lost wolf
steady rose
#

in terms of processing power

#

yep

lost wolf
#

I second guessed it for a second when I thought about it too much.

#

So here I am asking.

steady rose
#

the camera software has also changed fairly recently. if article is more than a year or to old, it may be referencing an older way.

#

how are you planning on taking the photos?

lost wolf
#

April 30, 2020.

#

Um.... what do you mean by "how"?

#

Using the picamera library, with a Pi Zero 2 W, and the HQ camera module with a 6mm wideangle lens on it.

#

Or do you mean something different?

steady rose
#

nope. thats it. meant software.

lost wolf
#

Ah ok

#

Yeah, picamera.

steady rose
#

have you tried a basic photo capture yet?

lost wolf
#

Already has timelapse examples, and apparently is really easy to work with.

#

Using libcamera or whatever it's called?

#

Yes

#

I did their basic command and it came up

#

But not on the Zero

#

I didn't have the cable yet.

#

I have it now, but I haven't transplanted everything yet.

steady rose
#

a basic capture via picamera...not sure that's been updated to work with how latest pi OS's are interfacing with camera

#

one sec...there's a blog post from rpi that has some deets...

lost wolf
#

I haven't used picamera yet, no

#

I used the built-in thing to preview the camera for focusing purposes.

lost wolf
#

I'll get everything moved to the Zero 2 W, get picamera installed, and see what we get.

#

libcamera isn't picamera

#

libcamera is RPi

#

picamera is 3rd party

steady rose
#

right. but picamera doesn't use libcamera.

lost wolf
#

libcamera is all I've used so far

steady rose
#

what picamera was based on has changed

lost wolf
#

Hmm ok

steady rose
#
In due course we expect to provide additional libcamera-based versions of raspistill, raspivid and PiCamera – so stay tuned!
lost wolf
#

I've been reading their current documentation, so all the info I have on it is current. I wasn't thinking about what it was based on though.

#

Ah ok

#

I misread that sentence when I looked at it in Firefox.

steady rose
#

but even that article is from 2020

lost wolf
#

Yeah.

steady rose
#

i'm not sure exact current status of picamera

#

or python access to camera in general

lost wolf
#

libcamera isn't mentioned anywhere in their docs. But I don't see anything about what it is based on anyway, so it might simply not get into it.

#

picamera is apparently on point, according to Liz. She's used it before, evidently.

#

I didn't even know about it until she mentioned it.

steady rose
#

oh yah. it is (was?) great. i used it also in a time lapse project.

lost wolf
#

Oh nice.

steady rose
lost wolf
#

I got all panicked about getting this up and running because it looked like my plant was starting to bloom, but I think it's not actually there yet. So this project guide might be postponed until there are more interesting changes to photograph. Still want to start it soon, because there's no way to know when it will bloom (according to the internet). Which, also, it might have already bloomed, in which case this is less useful. I'm completely new to these plants, so I'm trying to glean what I can.

#

Interesting.

#

Of course the documentation is a PDF, and not ReadTheDocs or something else more dynamic. 🙄

#

Oof. Timelapse is nowhere to be found. I wonder if the same code works with v2beta as v1.13 or whatever picamera is at.

#

Only one way to find out, I guess 😄

steady rose
#

with the interval being on the order of hours, could use other options that just call libcamera-still

lost wolf
#

Might do.

steady rose
#

in terms of general work flow - initially just capture a bunch of still images. then post process for the timelapse.

lost wolf
#

Oh for sure.

#

I'm not planning on doing that as it goes.

#

They'll be put together once I have the photos I want.

#

Also, picamera2 is already installed, evidently. Simply needs updating.

steady rose
#
Given that picamera is built on MMAL, and that MMAL is now considered a "legacy" interface with all exciting future development going into libcamera, I'd say it's wise that people consider picamera "legacy" too. 
lost wolf
#

Duly noted.

#

It's beta time.

steady rose
#

it's def a sad loss. it was extremely well written and documented.

#

very fun to use

hard pike
lost wolf
#

Tillandsia stricta

hard pike
#

Ohhh

gentle briar
#

I guessed wrong (Schlumbergera bridgesii)

lost wolf
#

Sigh. HDMI not showing up now after swapping out the Zero 2 W. At least the power/activity LED is blinky and remaining on. So I assume it's booting. Swapping to the tiny simple display again to see if it works there.

#

I don't even have the energy for a table flip. Splash screen shows on both displays, then no signal. Pi is powered and doing things according to the LED.

#

Did going between two Pis bork it somehow?

#

Worked fine a half hour ago on the other Pi.

hard pike
#

There, I got ya

lost wolf
#

Thank you

hard pike
#

🤓

lost wolf
#

Reimage from scratch worked!

torn trench
#

I wonder if there's some confounding variable here. Like perhaps every time you unseat and reseat the HDMI adapter there's a chance it either works or doesn't?

#

Although the whole not showing up on the router's connected devices list is an interesting data point as well

#

I think you answered this earlier but a quick search didn't turn it up: how are you powering this again?

raw solar
#

In my experience... Sometimes Pi is just weird. I've had issues that occured on a fresh install, but reflash it would work. Sometimes I'd clone a good install, wouldn't work; second clone would work without changes.

crystal jewel
#

i have been testing a lot of things lately (esp with networking and serial) and have found that small changes can make the Pi unstable so it boot loops or kernel panics a few seconds after login... (running headless over ssh)

lost wolf
lost wolf
#

Oops meant to replay to your first message with that one.

lost wolf
#

Eventually HDMI won't matter as much because it won't be connected to a display for the timelapse project itself. But until I have it working, I prefer to work in the GUI.

half nexus
#

How to install java 17?

#

I have troubles with that. Although running installer commands aimlessly, I only get nothing

#

There's only 3 java versions in alternative list and they all not 17

#
pi@raspberry:~ $ echo $JAVA_HOME
/opt/jdk17
pi@raspberry:~ $ java -version
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Debian-1deb10u1)
OpenJDK Server VM (build 11.0.16+8-post-Debian-1deb10u1, mixed mode, sharing)

I might not know what I am doing, but I am sure there's something is wrong in a way that would prevent me from running JRE 17

#

Also... It's more of a multi-board computer running x86 architecture

#

my list of choice looks like this, maybe I am just looking in the wrong direction

pi@raspberry:~/server $ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                        Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-i386/bin/java   1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-i386/bin/java   1111      manual mode
  2            /usr/lib/jvm/jre1.8.0_291/bin/java           1         manual mode

Press <enter> to keep the current choice[*], or type selection number:

#

And also I am running on debian 10

torn trench
#

If you install Java through apt, you can probably use update alternatives. Since you installed to /opt I assume you used an installer. Otherwise I believe you may need to add $JAVA_HOME/bin to the path?

#

Does ls $JAVA_HOME succeed?

#

Debian 10 may be too old to have Java 17 as a package

half nexus
#

Maybe that's the case

severe dome
#

Hello, I'm trying to SSH into my raspberry pi via MacOS and I encountered this issue:

#

Does anyone know how I can resolve this?

severe dome
#

Yes

silver plinth
#

Or is this your first time?

#

Ah

severe dome
#

I reimaged the SD card and that was the resulting issue

silver plinth
#

That would make sense why the key has changed

#

Do as the instructions say and add the new key to the file

severe dome
#

Everything after the colon?

silver plinth
#

What does the file look like? It should show how the key is formatted

#

I'm kinda making educated guesses here because I'm not too familiar with how to configure ssh

humble nova
#

and if you logged using a key instead of user/password, you'd need to configure that again

severe dome
#

I did set use password authentication

humble nova
#

you maybe need to remove the old key too, i dont remember

severe dome
#

Okay, it just looks like gibberish to me haha

#

Not sure what to delete and what to keep

humble nova
#

nano /Users/blakeshaekos/.ssh/known_hosts (or open that file with your favorite editor)

#

on line 2, there should be the old key (as :2 in the warning message indicates)

#

so, you get that line, remove the old key and replace it with the new one (SHA256:... on the photo you posted)

humble nova
humble nova
severe dome
#

Thank you! I successfully SSH'd into the raspberry pi

#

I appreciate the suggestion on sending the text instead of an image

#

I'll make note for the future

safe pebble
#

Hello,
I have a PI zero connected to a 7” HDMI LCD screen (https://www.uctronics.com/display/uctro ... river.html).

I have the terminal only OS and updated/upgraded it.

I have managed to adjust resolution and rotation (portrait mode 3) in terminal but when I launch Pygame, the screen is not rotated and display.list_modes() return only landscape resolutions….

I have tried many things in config.txt, in fb.modes and also tried to add the following environment variable SDL_VIDEO_FBCON_ROTATION=CCW as I have read it may be linked to SDL wrapper.

But nothing works…
Thanks!

woeful wigeon
#

i want to ask about a python module that i am trying to install on my raspberry pi buster OS, i've tried to install 2 modules, sftp and paramiko, both of them are giving the same error of
error: can't find Rust compiler
i've installed the rust compiler already
Cargo is also working

humble nova
severe dome
#

Hello, What is the best approach for multi-video playback on Raspberry Pi? I have found options for both Pygame and VLC. I need to be able to crossfade several videos based on button inputs from a user . I did find a blend of both approaches here: https://gist.github.com/smathot/1521059

Gist

Use VLC to play videos on a PyGame surface. GitHub Gist: instantly share code, notes, and snippets.

torn trench
static nacelle
#

Hey all, has anyone had any success serving the CP web workflow through a reverse proxy?
I have 2 pico w that I want to be able to access from outside LAN, I have a raspberry pi that I can ssh from outside, but I can't make nginx serve the web workflow assets

#

Admittedly, this is more of an nginx problem, but someone might have already experienced it here 😅

wraith grove
#

I've been meaning to get into nginx reverse proxying for a few years</story>

gentle briar
static nacelle
#

Hey, I actually had success with serving the home page of the web workflow, but then it can't find the js and css files 😅

#

I think it's an nginx config error on my part. but I can't seem to figure it out

humble nova
#

when setting up NGINX i had some problems with relative/global paths on my files cuz i was mapping to my_ip/server1 and my_ip/server2 URLs, hope that makes any sense 🙃

#

not that i can say much without seeing your hrefs in the HTML and/or NGINX's conf
and i have 0 idea about the web workflow

static nacelle
humble nova
#

I dont have any Internet + CircuitPython device to test, but i would expect the workflow to be somewhat easy to change (even if it requires custom compiling and not just an attribute on some func)

tired marsh
#

that would require a custom build indeed

humble nova
#

I will send you my NGINX config file (and Flask config related to proxy) once I get home, i have a NGINX container and <elpekenin.dev/40dex> maps to a Flask-based container while any other route gets mapped to some static files

static nacelle
#

This might be a good improvement on the web workflow, imo. I might give a shot on submitting a PR for this 😀

static nacelle
#

I'm thinking adding a settings.toml key?

#

Would that be a good approach?

#

Like CIRCUITPY_WEB_API_PATH_PREFIX

tired marsh
#

adding code to handle a very unique edge case ? Can't you redirect IPs or subdomains instead, so that you are on the root path ?

#

or ports actually, that's quite common

static nacelle
#

And looking into it, circuitpython is written in C so I'm not the best guy to do this 😅

tired marsh
#

also the web workflow serves static html files, so changing paths inside of it, even if only a <base ...> tag would be much more work than is worth

#

but a NAS or proxy should be able to redirect an outside port to a local IP, and there is a config to change the web workflow port, so you could map to the same port

static nacelle
#

Copy, thanks @tired marsh !

humble nova
#

the web workflow probably has nothing similar, tho 🙃

traffic splitting is made with ```
location /40dex/ {
if ( $remote_addr = <MY_IP>) { # disable logging so i dont spam logs when testing stuff
access_log off;
}

        proxy_pass         http://40dex-web:5000/40dex/; # container with Flask
        proxy_redirect     off;

        proxy_set_header   Host                 $host;
        proxy_set_header   X-Real-IP            $remote_addr;
        proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto    $scheme;
    }

    location / {

        if ( $remote_addr = <MY_IP>) {
            access_log off;
        }

        proxy_pass         http://main-web:5000; # another container with Flask, serving static files 
        proxy_redirect     off;

        proxy_set_header   Host                 $host;
        proxy_set_header   X-Real-IP            $remote_addr;
        proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto    $scheme;
    }
lost wolf
#

What browser(s) are folks using on RPi, specifically RPi Zero 2 W. Because the built in one is crashing this Pi every time, with nothing else going on. Installed Midori, but the search took 3 minutes to come up, or longer.

#

It's using WiFi also.

#

So maybe this isn't a bug.

raw solar
#

I don’t have a Zero 2 W, but I usually use the default browser (Chromium?)

lost wolf
#

Yeah it's Chromium. And it's crashing my whole Pi every time I open it.

#

Everything is up to date.

#

Midori is at least doing things. Chromium never fully loads.

raw solar
#

Strange… I did have an issue with a Pi once crashing when opening anything, reflashed and all was well

lost wolf
#

I'm not reflashing this, lol. It took me about 20 times to get it to work in the first place 😄

raw solar
#

Oof…

lost wolf
#

I'm going to go at this a different way, and download the PDF on my Mac, and drop it on the Pi.

#

Stupid workaround, but uff.

raw solar
#

Sounds like the best option for your current situation

lost wolf
#

Indeed.

raw solar
#

Pi life is hard…

lost wolf
#

At least it isn't only me.

raw solar
#

Yeah, they’re just finnicky

humble nova
lost wolf
#

I used netatalk, and it is super simple. 🙂

gentle briar
#

I had quite a time installing the Python cryptography library on a Pi Zero, even with the help of piwheel. I was going to ask here, but first tried the scattershot approach of several of the suggestions on the web. Individually, they didn't work, but collectively, they finally did.

ruby night
lost wolf
#

Hmm fair enough.

safe pebble
lost wolf
#

@steady rose I ended up going with the picamera2 beta, and it's working great. Was having a weird issue with displaying the image preview, but found a completely unrelated issue filed on the repo, that mentioned enabling "Glamor" video in raspi-config. Though they said it was only necessary on Pi 3 and older or something, but I tried it since I'm running Pi Zero 2 W, and that resolved the issue. Will document that, obvs.

edgy oar
#

Today I discovered zram and my mind is blown.

hard pike
#

Lol

edgy oar
#

Who knew you could download ram. Lol.

wraith grove
#

I'm still pondering the uses of zram

edgy oar
#

It’s kinda magical in situations where ram is limited and non upgradable. Certainly faster than swapping to disk.

#

But you’re right. It still does not make dinner or put the kids to bed, but it’s a start.

civic rune
#

No but you can use it to help model a world where the kids are put to bed and you have a baked potato.

edgy oar
#

Now I really want a baked potato.

civic rune
#

Same. I miss the loaded baked potatoes my HS had.

gentle briar
edgy oar
# gentle briar Reminds me of RAM Doubler.

Hah. Me too! With some sysctl tweaks it works remarkably well. I couldn’t get the pi to OOM doing any of the things that would normally make it swap and oom and slow to a crawl.

mint field
#

I once built a 128k bubble memory expansion board for a CoCo following instructions in a magazine and modified to work on my Dragon 64. Bubble memory - much vaunted, died a death.

#

The best thing I remember for pretending there was more "computer" was Desqview for DOS. Still needed more real RAM though

#

Zram is interesting though (used in MacOS?)

gentle briar
#

I once built a 4B core memory expansion board for an Arduino. Core memory – much vaunted, died a death.

faint sparrow
#

When the phone rang (with modem ready to answer) I'd hotkey out of Desqview session to the session on the same machine running the BBS. Didn't always transfer nicely, but it was a way to work on the BBS while having it on tap for callers. ;)

#

Once Linux became a thing for me (1994) that all changed (of course) but by then BBS's were in the decline.

dense comet
#

Fond memories of Desqview. Given what it was running on, it did a remarkably good job. IIRC there was a companion XMS/EMS memory manager that came with it. Mind you, I started on a 386 in 1991 with 4mb of memory, so DV was really able to strut its stuff.

#

And @faint sparrow, I have just one thing to say to you: 1:125/28

faint sparrow
#

;)

#

It kinda looks like I stepped up for Echomail coordinator by the evidence, but I have no memory of that. Maybe there was a status for 'no public BBS (anymore)' I would have used by then. ;) EDIT Yup, there was Private and Unpublished.

#

I do remember sussing out a modem getty in Linux but I don't remember when that was.

faint sparrow
#

Since I didn't have Linux before 1994 that means I ran that same machine for a few years, anyway.

gentle briar
#

I was running RTU on a Masscomp 5400, later moved to SunOS on a SparcStation 1+

junior saddle
#

I have the bonnet for rgb matrix and I have performed the PWM solder mod to reduce flickering. Worked great, then after a reboot it no longer worked. The screen didn't turn on. After testing with some of the sample images I found that leaving the pwm parameter off the --led-gpio-mapping-adafruithat worked. Rechecked and touched up my solders but still joy. Any ideas?

wind jackal
#

so about clustering a bunch of different sbcs...

#

I have a few different nanopi models, and a few different raspi models all hooked up to the same dumb switch.
desired endstate is a computing cluster running stablediffusion, all controlled by a pi4 running raspbian bullseye

#

the head node should still connect to my home wifi, but i want it serving DHCP addresses over eth0, which is connected to the dumb switch. but no matter what guide i follow or what service i try to use, nothing works. The pis that get plugged always have the link local 169.* ip address

crystal jewel
#

quick shout out - has anyone used the PiTFT (specifically PiTFT 2.8" - Capacitive Touch https://www.adafruit.com/product/2423) with a Pi 400?

i have had this screen for years and used it with a Pi 3 and don't remember having any issues. I've dusted it off to use with a Cyberdeck HAT for Pi 400 (https://www.adafruit.com/product/4863) but can not get it to work with FBCP (haven't tried anything else yet); Have used the Pi OS image from May 28 2021 as advised here : https://learn.adafruit.com/adafruit-2-8-pitft-capacitive-touch/easy-install-2 - followed all the instructions, but it just won't come up; it's just a white screen...

I will pull the Pi 3 back out and see how it goes, but if anyone can short cut my troubleshooting that would be great!

Adafruit Learning System

A little screen, with a fancy captouch

crystal jewel
#

ok, i didn't get the PiTFT to work (a project for another day) .. but I did get my Hyperpixel working (since I didn't get a Spotify CarThing, I am building my own)... and ... wow! that is a really nice screen!

#

I am using the Pi 400 for now as I have in front of me most of the time; I am working on the 3D printed case and it will pair with a Pi Zero2 W in the end

crystal jewel
#

adding a rotary encoder... just need to get the code to work!

hard axle
#

does the raspberry pi zero 2 w have a power input pins

crystal jewel
# hard axle does the raspberry pi zero 2 w have a power input pins

short answer, yes! long answer though is the pinouts are here: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html as well as the general documentation on voltages and powering by the header; you can also refer to the schematics here https://datasheets.raspberrypi.com/rpizero2/raspberry-pi-zero-2-w-reduced-schematics.pdf - note the 5V header is on one side of the regulator, the 3V3 pin is on the other. So it's easier to power by 5V

The official documentation for Raspberry Pi computers and microcontrollers

edgy oar
#

Anyone know why on RPi, setting hdmi_enable_4kp60=1 would cause gpu_freq=750 overclock to be ignored and set to 550mhz instead (which is what hdmi_enable_4kp60 does)? I'm pretty sure this used to work as expected -- did something change in firmware maybe?

edgy oar
#

Individually setting each of the values gpu_freq sets resolves the issue, I guess. 🤷‍♀️

faint sparrow
#

It's System On Chip (SoC) so if they control the design of both they don't have to be externally consistent with pretty much any idea at all. ;)

edgy oar
#

seems that way. 🤷‍♀️

faint sparrow
#

The video support section, in the RPi3 (and RPi4) kernel variants, is highly unusual for people (like me) used to amd64 implementations.

#

I do use, iirc, Ctrl+Alt+F1 (or F2, F3 .. iirc) to get to the text based Linux Virtual Console there.

#

For within the GUI I use Ctrl+Alt+<arrow> there, with left or right being the two relevant arrow (cursor movement) keys. With fluxbox (or its equivalent; there are a few of them now, I believe) as the Window Manager. idk what the default one is called there.

#

That's how I switch (left or right) to the adjacent 'Workspace' .. which is probably present (if not supported) in all of them (in any Window Manager at all).

#

The majority of my workspaces all have an identical font and size xterm (terminal) and I have a script that places them exactly the same place, so that task switching in this way causes no slight shift in the windows' frames locations.

#
#!/bin/sh

sleep 3; xdotool getactivewindow windowmove 8 74
#

('xdotool' itself is not present without asking for it; idr if Raspbian (or the latest) offers it.)

#

/var/lib/dpkg/info/xdotool.list

mortal hare
# crystal jewel quick shout out - has anyone used the PiTFT (specifically PiTFT 2.8" - Capacitiv...

Not for use with a Pi 400, but I just setup my PiTFT 2.8" Capacitive Touch yesterday after quite a delay and my old process for doing so wouldn't work anymore (deprecated on github) but I followed the below link:
https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2

I effectively loaded a fresh Raspberry Pi Lite OS install, then did the following:
'cd ~
sudo apt-get update
sudo apt-get install -y git python3-pip
sudo pip3 install --upgrade adafruit-python-shell click
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts'

Followed by:
'sudo python3 adafruit-pitft.py --display=28c --rotation=90 --install-type=console'

Adafruit Learning System

A perfectly-sized little display that plugs into your Pi

GitHub

Contribute to adafruit/Raspberry-Pi-Installer-Scripts development by creating an account on GitHub.

crystal jewel
#

Sadly i did that (on a pi 3 and pi 400) with no improvement 😦

mortal hare
#

oh dear, I'm sorry, was really hoping it would be helpful

#

just showing a white screen?

crystal jewel
crystal jewel
#

“You may be seeing a Pin 18 conflict. Try this fix: <url that a discord bot is getting grumpy about!>

mortal hare
#

lol, some interesting automods on here

#

the first link helps though

crystal jewel
#

Oh… options 1: cut a trace … option 2 remove the diode … not what I had in mind … funny that post talks about hyperpixel displays and I have one of those as well and it works perfectly!

#

(Posted about this earlier - such a gorgeous screen) and is it just me, but does Adam Jones look like chewbacca?

mortal hare
#

Yeah, removing diodes or cutting a trace don't sound appealing at all, but if the issue persists on a Pi3 and a Pi400 it may necessary, though I'd try and retry configs quite a few times before going that route

#

I was going to note the fantastic choice in music, love how Maynard always hides in promos

crystal jewel
#

Yes. Spotify was in an excellent mood when I was building that! Yes, my thoughts exactly - I didn’t use the cyberdeck on my Pi 3… but some new things to test

edgy oar
#

heh. cute.

crystal jewel
#

firing up a Pi 3 - using my Lego NES case for food luck...

charred yacht
#

is there any way to create image of current os and the things installed on it? (OFC yes) I search online and found this can I trust the guy answered, or is there a better way?
https://raspberrypi.stackexchange.com/a/116816

#

Context: I have mainsail os (rasbian based 3d printing os) and instaled a wifi driver and do some stuff with it to work with wpa_supplicant. I want to back it up just incase I forgot how to do them later.

gentle briar
#

It's just making a compressed filesystem image, not too much special about that. I'd use a bigger block size for more speed, but it would work the way it is.

charred yacht
#

And thank you

gentle briar
#

I'll normally use 32k, 64k, or even 1M blocks, depending on what the system will support.

edgy oar
edgy oar
#

ssh pi@np "sudo dd if=/dev/mmcblk0 bs=4M | gzip -1 -" | dd of=image.gz bs=4M status=progress is probably better though. That has a progress indicator and your block size. I haven't had issues with 4M.

#

and I use RPi Imager to write the img.gz, but I haven't yet tested if it boots, but I'm told it will (but both root and boot partitions mount fine and are browsable).

edgy oar
#

but I think ApplePie-Baker is more flexible compared to RPi Imager.

velvet rampart
#

I hooked up usb speakers to Raspberry Pi and they were crackly, I think the best audio comes from 3.5 or hdmi with pi

#

Does anyone know hot to setup hot swap from hdmi audio to 3.5mm when 3.5mm inserted and back to hdmi when removed ? I know this can be done via the os as it happens but it's an extra step

midnight flume
#

I got a Pi. 🙂

fickle rose
#

from where?

wraith grove
#

"We don't talk about Bruno"

wraith grove
#

I think the head of the rpi foundation said something about second half of the year it should unclog?

fickle rose
#

I’ve been checking rpilocator every day for the past forever and I haven’t been able to grab a pi

hard pike
fickle rose
#

That’s the model i want

hard pike
#

I grabbed one last week that’ll be in by Wednesday

fickle rose
#

I just need wifi and a usb port for my 3d printer

hard pike
#

I’ve seen the 3A+ stock last over an hour

dusk grotto
#

Alright y'all maybe a dumb question Maybe not so I have a SD card with to partitions on it and I want to install a new pi image on it but it only is selecting the larger one btw I'm on pi os doing this

edgy oar
#

why not just use RPi Imager on anything else?

dusk grotto
#

It only allows me to do one partition

edgy oar
#

well, I meant on anything other than linux. Never used RPi Imager on linux, but have you tried unmounting the partitions and then looking again with RPi Imager?

turbid rivet
dusk grotto
#

No I want everything on the sd card gone so that's good thanks

turbid rivet
#

A successful raspberry pi OS will have two partitions. If you have more than that, you should also be able to manually format the card before reimaging.

hard pike
fickle rose
#

OOOO

#

i can't get it

raw solar
#

Why not?

fickle rose
#

"i haven't gone over the budget yet" -dad

raw solar
#

Oof...

fickle rose
#

i can see the stock disappear in real time but can't get it

lucid nebula
#

What program for the Pi is recommend to have like a clipboard manager (basically where I can copy and paste multiple things at the same time)?

slender rune
#

Need help on raspberry pi 400. I can ssh on it before and when i reboot the pi. I cant access it now via ssh. Reinstalled OS and still no luck. I can ssh on my other computers but just not on my raspberry pi 400. Any thoughts? Enabled ssh, installed it again and again. Nothing

slender rune
#

I can ssh on other computer and my orange pi.

slender rune
gentle briar
#

What kind of "can't connect"? Is the host found? Is there a route to the host? Is the port open? What specifically happens?

slender rune
#

Host is open and port 22 is open. When i try to ssh via my computer using putty. Cant access it. Tried other computer to ssh via putty and its working.

steady rose
#

how are you seeing ssh as being active? do you have a monitor connected to the pi 400?

slender rune
steady rose
#

what does ifconfig show for the wlan0 interface?

slender rune
#

It shows my ip address on wlan0

steady rose
#

can you ping something on the internet from the pi?

ping www.google.com
slender rune
steady rose
#

can you ping the pi's ip address from the other PC's?

#
ping 192.168.0.123
#

(but with whatever your ip address is)
what was shown in ifconfig

slender rune
#

I used cmd on my other computer and show’s request timed out

steady rose
#

sounds like the pi is unreachable then. so some kind of local network configuration issue.

#

or ssh, etc. aren't actually running (so nothing running to handle ping request)

slender rune
#

I tried to ping my computer using the pi 400 and i cant reach it also

#

I can ping my laptop that i use for my 3d printer for now.

#

The only thing i cant ping on my computer is the pi 400 and the only thing that pi 400 cant ping is my computer. This is weird

gentle briar
#

I had a problem like that a while back, it turned out I had a brief power failure and some of my computers jumped to the other network so they could no longer see the ones that had stayed on the original network.

fresh patrol
# slender rune

It's also used ipv6 to ping there worth trying ping -4 google.com to confirm ipv4 is working too

steady rose
#

^^ good catch. could be related

dusk grotto
#

Odd question with pi os it says I have four desktops how would I make it only one

#

It's super annoying when I'm trying to do anything and I accidentally scroll

pure flame
#

If I distribute a systemd service file with some code i want to run on startup, should I instruct users to just sudo cp myserver.service /etc/systemd/ or is there a better way using systemctl? Ideally systemctl install myserver.service

tawdry aspen
pure flame
#

Cool, thats what i'll do then

edgy oar
tawdry aspen
#

I think the bigger question may have been: do some systems keep service files somewhere other than /etc/systemd/system

pure flame
#

@edgy oar thats a good idea. just want to make sure the install.sh is doing the right-est thing it can.

#

@tawdry aspen luckily I am only targeted a very specific system (Raspberry Pi 1). Maybe later models too. But they all go in either /etc/systemd/system or /lib/systemd/system

#

Its to revive a dead IoT device that is still pretty and useful

tawdry aspen
torn trench
#

something users could install with apt

#

(even if it's not hosted in the package repos)

torn trench
dusk grotto
#

Could anyone help when I try to run this file it says it doesn’t exist

lucid nebula
gentle briar
#

Try ls -b to show hidden/control characters in filenames

dusk grotto
lucid nebula
#

You can also try selecting that green text, right click, select copy, then paste it in

dusk grotto
hard pike
#

Grrr autocorrect

gentle briar
#

No, I was wondering if there was maybe an invisible control character in the name so it looks like minecraft-pi but is really min^Cecrz^Haft.pi or somesuch

hard pike
#

Oh fascinating

#

Guess I didn’t have any control characters

dusk grotto
#

No it didn’t

#

Here’s the perms

#

If y’all need that

hard pike
#

maybe minecraft.pi doesn't have proper permissions

gentle briar
#

That leaves more obscure errors such as current directory issues (try pwd to see), missing dynamic libraries (I'm unsure if Raspbian has ldd), hard vs soft floating point support, weird bash path issues, or something else

hard pike
#

chmod +x minecraft.pi just to be sure

gentle briar
#

Maybe try file minecraft.pi to see what it thinks it is.

#

It could be a weird "magic number" problem

hard pike
#

ye ole magic number problems

dusk grotto
#

wait

#

Hold up

gentle briar
#

I had one of those just the other day with a bungled shebang

dusk grotto
#

It’s talking about it being for 32bit I’m on 64 I’m wondering if that’s why crap

hard pike
#

might be able to run in 32bit mode... I remember reading something about this before

dusk grotto
#

How would I run it in that mode

hard pike
#

well, it's more about adding other architecture's execution capabilities to your pi

gentle briar
#

Ah, it is dynamically linked. Maybe try ldd minecraft.pi to see what dynamic libraries it's trying to find (may not work if ldd isn't the right command for that particular operating system)

dusk grotto
#

It says it’s not dynamic

hard pike
#

try this: dpkg --add-architecture armhf

#

it technically already should be buttt

gentle briar
#

Ah, so file says "dynamically linked", but ldd says it isn't. That seems bogus. Which might be the same 32-bit support issue skerr is describing

dusk grotto
hard pike
#

add armhf architecture

#

which is what it's referencing

dusk grotto
#

Which is? Sorry I’m trying to learn I’m kinda knew to all of this

hard pike
#

in this case it would be an additional arm architecture on top of the Raspbian 64-bit image.

#

basically allows it to interpret other architectures

#

and run those programs on those architectures.

gentle briar
#

I ran into a somewhat similar issue trying to run fancy packages on a Pi Zero, which is an ARMv6 architecture, while the packages were for the more common ARMv7 used on most of the other Pi boards.

hard pike
#

very... high level of what's happening but maybe madbodger can explain it better.

#

operating systems are hard

hard pike
gentle briar
#

No kidding. Reminds me of the early days of Unix when you had weird commands like v6run to run Version 6 executables on Version 7.

dusk grotto
#

Can’t tell if it worked

hard pike
#

like when I was building these verilog examples yesterday and today. the export PATH="yadayada/oss-cad-suite/bin" bit wasn't linking those to PATH but using the source yadayada/oss-cad-suite/ worked like a charm.

dusk grotto
#

Bro still not finding it

hard pike
#

try and run your minecraft.pi file

#

hmm

edgy oar
#

Does pi have strace?

gentle briar
#

You can try stuff like truss minecraft-pi

edgy oar
#

Or truss. Lol.

gentle briar
#

Good point, I don't know if the Pi has truss, strace, or something else

hard pike
#

what are the permissions on the file?

gentle briar
#

Note, it produces lots of output, showing every single thing the executable tries to do

hard pike
#

is it like 644?

dusk grotto
#

Truss doesn’t work and strake gives me the same errors

gentle briar
#

-rwxrwxrwx

hard pike
#

hmmm

dusk grotto
hard pike
#

so it should be able to execute

dusk grotto
#

Yup

hard pike
#

I found this on the raspberry pi forum

#

sudo dpkg -i Minecraft.deb

#

I also wonder if it should be minecraft-pi instead of mincraft.pi

dusk grotto
#

That’s what I have been doing I just wasn’t gonna correct y’all because there’s was no need really

#

Ok this is kinda weird

#

This for Java anyway

#

I’m using Minecraft pi edition

hard pike
#

yeah, i'm a bit confused

dusk grotto
#

May I ask what your confused about

hard pike
#

it not working

dusk grotto
#

Same

#

Ima use one of my other pi’s and see if thst works

#

Running 32bit

dusk grotto
dusk grotto
#

And what I found i need to add Librarys for the architecture

#

And what I also found online is that to add those people were suggesting that repo

fickle rose
#

i'm pretty sure you need to sudo apt-get update after adding an arch for it to have an effect

fickle rose
fickle rose
#

I’m out of ideas then

#

Maybe a corrupted .deb?

dusk grotto
#

It’s not a deb file

#

And I tried redownloading and it still didn’t work

fickle rose
#

Is it an executable?

dusk grotto
#

Yup

#

And I’m 90% sure it’s because it’s a 32bit file

fickle rose
#

Do “chmod +x minecraft-pi” (idk where backtick is on iPad)

#

Then try and run it

dusk grotto
#

Hold on my pi is booting

dusk grotto
fickle rose
#

Did chmod say anything?

dusk grotto
#

No

fickle rose
#

Try it with sudo

dusk grotto
#

Still didn’t do anything

gentle briar
#

When you say "didn't do anything", did nothing happen? No error message, just a fresh shell prompt?

dusk grotto
#

Nope noting just went to the next line to

gentle briar
#

echo $?

dusk grotto
#

That outputted 127

#

Sorry no that outputted 0

twin helm
#

if you ran any successful commands in between, including the echo command, then $? might have been reset

dusk grotto
#

Yeah that’s why I retired

twin helm
#

you can also run ls -l on the file to make sure it changed the execute bits

dusk grotto
#

Idk what I’m reading

twin helm
#

that should be a lowercase l (lowercase of "L"), not i. and you should see stuff like rwx or r-x in one of the left columns next to the filename if it worked

dusk grotto
#

I feel like we’re going in circles

twin helm
#

that looks right to me. what problems are you having?

dusk grotto
#

Just scroll up it’s takes a while to explain

#

TLDR i am trying to run Minecraft pi edition and it’s 64bit I’m running 32bit

#

Sorry it’s 32 bit

#

I’m running 64 big lmao

twin helm
#

where did you get it from? and were there installation instructions for it?

dusk grotto
#

Minecraft’s website and kinda it only told me to open the zip and I did that and then it told me to run ./minecraft-pi

#

Which I did all of that

twin helm
#

and running that command still fails? what's the error?

dusk grotto
#

It tells me it can’t find the file

#

Once again please read our previous conversation

twin helm
#

i don't see a screenshot of what happened when you tried to run it after dpkg --add-architecture, but i might have missed it in all the scrollback

dusk grotto
#

Nothing happed

#

No output no nothing

gentle briar
#

Just another prompt? What does echo $? do immediately afterward?

#

In any case, it's probably time to start using power tools, like Rachel's suggestion of strace

dusk grotto
#

Im at school rn but I'll try it when I get home

dusk flower
#

question: were I to use a Pi4, would it be possibile to have two windows on separate screens without the desktop running?

#

'cause I found this nice toy, and would like to show a music player interface on one monitor, and either the playlist, or ffmpeg's spectrogram on the other screen

gentle briar
turbid rivet
#

Software like omxplayer can take over entire displays without a desktop environment, so I was assuming that’s what they’re looking for. Unfortunately, I have no idea how to develop applications to display like that.

dusk flower
# gentle briar As I understand it, you need a window manager to have windows, is that what you ...
Medium

Just because your Raspberry Pi has a screen doesn’t mean you have to run a full desktop environment just to create a lightweight GUI.

#

does each hdmi have its own fb device, or is it shared?

dusk flower
#

alternative: get a wiiiiiiiide screen, and position the two windows within its area with a given size and position

dusk flower
#

well, I'll be...
I did manage to create the command for having ffplay in a window of my linking and so on, but... there's no way to funnel an audio stream into ffplay, so I'm apparently wasting time 😑

fickle rose
#

i wonder if some ffmpeg trickery funneling into ffplay would work

dusk flower
#

Maybe I could have it resampled, so to be at least consistent in the FIFO

fickle rose
#

Maybe it could work

#

I have no idea how to implement that tho

dusk flower
#

Good news, I can set a format for the FIFO! That's a step forward

fickle rose
#

Any progress?

dusk flower
#

Not for today, it's late

velvet rampart
#

Not really SBC but more file system and data.

I have switched back to windows and have two ext4 drives which windows can't see.

I'm installing a large drive (2tb) which is enough to backup both drives and I'll set it as NTFS.

What's the best way to transport these files from ext4 drives to this large NTFS?

Should I do format the 2tb drive in windows then do a live usb of Ubuntu and copy there or should I use a ext4 reader for windows application

fickle rose
#

I wouldn’t recommend ext4 readers for windows if you have access to a live usb and you can format it to ntfs using gparted no windows required

#

If you aren’t dual-booting i find live media to be the best option for stuff like that

velvet rampart
#

I think so too crudefern, I've decided against using windows at my workstation so this is no longer a problem

fickle rose
#

Even though i prefer linux i dual-boot windows because 1: games 2: convenience (mostly) 3: it came with the darn thing and I don’t want to trash a perfectly good windows license

zinc jackal
fickle rose
#

Wym?

dusk grotto
#

Does anyone have a cluster hat this thing and if so is it good in anyway

edgy oar
#

that looks neat, but what would I need it for?

dusk grotto
#

I would probably use it for pi hole kind still figuring out the rest

edgy oar
#

still seems like overkill. Still neat though.

analog agate
#

Hey, anybody got experience with HDMI displays on Pi? Mine seems stuck showing vertical columns, very bright and blinking rapidly - almost looks like all the rows are getting added together… I’ve posted a video and more info: https://youtube.com/shorts/RcNiEmfxfEc?feature=share

Trying to get this display to work: https://www.adafruit.com/product/2395
I used the config.txt at: https://learn.adafruit.com/hdmi-uberguide/2395-7-display-w-touchscreen-1024x600

The screen is showing all vertical lines, nearly white, and blinking rapidly. What it suggests to me is that it's adding together every value in each column, almost...

▶ Play video
#

I’ve gone through the directions and troubleshooting, tried a different Pi (4 and 3 Model B), re-flashed the MicroSD card multiple times… still stuck 😭

#

Checked for shorts, too!

#

I want to use it for my Polly Pocket-themed cyberdeck for Pi Day 😄 ...but may have to go with a clunkier display if I can't get this one working

dusk grotto
#

Have you reseated the screen ribbon cable

analog agate
#

Hmmm, just re-seated it and same thing :/ Been assuming a driver issue

#

But I'm down to try whatever!

#

Def hope it isn't the screen, but if it is, at least I've got a backup

analog agate
#

Danke 🙂

edgy oar
#

@analog agate am curious when you figure out the problem though!

analog agate
#

If I do, I'll update the google doc and drop a note here 🙂 I futzed with it some more and couldn't get it working, so tomorrow I'll be trying my luck with other options

velvet rampart
#

I'm back with Ubuntu.

#

And the gang 🤪

dusk grotto
#

I wonder if something wrong with the screen it's self

#

actually Maybe I'm forgetting but I think my friend had a similar problem and it was a issue with the refresh rate if I remember correctly

analog agate
#

Oooo, I’ll have a look into that later! Got my hands on a 10” display in the end - less “cyberdeck” size, but working with what I can for the prototype…

midnight flume
#

check the frequency too. had something similar happen on a feather TFT while attempting to overclock it from 30Hz to 70Hz. set the refresh rate and frequency back to stock and was right as rain. it started glitching and then banding very similar to what yours looks like.

hard pike
#

If so, I love your content

#

I think I also follow you on mastodon

#

As for displays, look for HDMI or MIPI compatible displays. Much better and faster than SPI/Parallel TFTs

#

You can get some nice color OLEDs

#

It’s a flexible color oled

dusk flower
# fickle rose Any progress?

ffmpeg -nostdin -loglevel quiet -f pulse -i alsa_output.pci-0000_00_1f.3.analog-stereo.monitor -f nut pipe: | ffplay -x 960 -y 480 -noborder -left 960 -fflags nobuffer -f lavfi -i 'amovie=pipe\\:,showspectrum=color=intensity:orientation=vertical:overlap=0:s=960x480:slide=scroll:mode=separate:fscale=log:scale=cbrt:legend=1[out0]'

fickle rose
#

Oooo

#

Nice

dusk flower
#

edited to take my windows parameters into account

#

tested by running VLC while the line was executed, it doesn't close with null output

fickle rose
#

Nice

dusk flower
#

when there's no sound, it just keeps on scrolling blank

fickle rose
#

You could add hw acceleration by adding -hwaccel auto at the beginning

dusk flower
#

on ffplay side?

fickle rose
#

Ffmpeg

dusk flower
#

oki

fickle rose
#

I haven’t tested it in ffplay

#

The option doesn’t exist in ffplay

#

I just tested it

#

I do know it uses the gpu for rendering the spectrogram

dusk flower
#

ok, it works 👌

fickle rose
#

Noice

#

It brought my transcode speed up from less than 1x to 7x (transcoding 1080p video) and remained there

dusk flower
#

also removed the legend segment, it's just for eyecandy anyway, and it'd be awkward to have an infinite counter at the bottom, not considering the burnin the legend would cause

fickle rose
#

Good idea

dusk flower
#

now, let's hope it'll run on a Pi as well 😄

fickle rose
#

ffmpeg supports hw acceleration on the pi

dusk flower
#

nice, nice

fickle rose
#

On the pi there’s a player that uses hw acceleration

#

omxplayer

#

It might work

#

But for a 960x480 video it probably won’t matter

dusk flower
#

I'll have to do some trial and error as I add pieces.
a next step will be if it can capture audio going to spdif, once I'll have the necessary card, and then I'll try again once I'll have the final USB DAC

fickle rose
#

spdif?

dusk flower
#

sorry, toslink, and yes, it'll work as a temporary output, connecting to a soundbar

fickle rose
#

no i was wondering what spdif was

#

After a bit of wikipediaing i got the answer

dusk flower
#

toslink, but on an RCA connector XD

fickle rose
#

S/PDIF can be carried over coaxial/bnc connectors

dusk flower
#

(I'll probably get some boot yeeted at me for this sentence)

fickle rose
#

S/PDIF is used on both toslink and coaxial cabling (color coded orange)

dusk flower
#

the audio scene is... picky when it comes to definitions

fickle rose
#

Yes

dusk flower
#

to use a gentle term

fickle rose
#

Picky at best defenestrate anyone who doesn’t 100% agree with them at (semi)worst

#

Defenestrate essentially means “yeet out a window”

dusk flower
#

aye

fickle rose
#

About a third of memes on the internet were/are the emperor’s new groove memes

zinc jackal
dusk flower
dusk flower
zinc jackal
#

Not sure that one is in any proper dictionary. Lol

dusk flower
#

jokes aside, another test I might run is wether the pipe made by mpd works as well

#

in due time

analog agate
edgy oar
#

👋 @hard pike @analog agate 🙂

analog agate
#

billie

edgy oar
#

that's an adorable LED!

#

@analog agate did you ever figure out your issue?

charred yacht
#

Can I connect any mipi camera (raspi cam) to mipi camera interface (matching pins), or it has to be exact model intended?

warm wasp
#

I have a issue with RPi 4, I have installed Blinka and hooked up a LED strip of Neo-pixels with a level shifter and that is all working. I made sure I was not on any of the GPIO pins that are use by the analog audio jack. When I hook up a speaker to the audio jack and play a wav file the LED strip stops working. After doing anything with the strip I cannot play audio from the jack. I tied the speaker via bluetooth and I can play both sound and use the LED strip. Just the audio jack is causing me problems.

gentle briar
#

I wonder if there's a conflict for a timer/interrupt

edgy oar
#

👋 @gentle briar

muted ether
gentle briar
#

Not that specific problem, but I did have to do some installation and tweaking to run an OPCUA library on my Pi.

muted ether
#

found out I had to do a "git checkout v6.1" and reinstall

analog agate
# edgy oar <@302145244479094784> did you ever figure out your issue?

Slow again lol! I decided to make TWO – a small extra-portable with an official 7" display, and a big one with the 10.1" screen (for home use). Kinda gave up on the one I was asking about here – for now – but if I do eventually get it working, I'll definitely post the outcome!

velvet rampart
#

if i bought any SBC such as orange pi or rock .... could someone give me a quick run down how to make it battery powered. i'm aware i'd maybe need a buck converter but is it just a case of finding the right regulator board, connecting the battery and the buck to the sbc?

wraith grove
#

I think adafruit has a pi battery supply, I don't recall it charges, but maybe it'd at least work with a pin compatible board? a point of research

velvet rampart
#

Thanks I'll take a look

umbral sable
velvet rampart
#

I would but it all depends on the SBC it gets paired with

woeful wigeon
#

i need help with raspberry pi

#

whenever i try to import requests module of python3
i get the following error
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

#
Openssl version = 19.0.0
urllib3 version = 1.24.1-1```
#

unable to use pip aswell

#

tried re installing all the modules, Didn't helped

gentle briar
woeful wigeon
lucid nebula
#

Getting this error while trying to install updates on my Pi Zero

gentle briar
lucid nebula
#

But it does have problems booting sometimes

warm wasp
#

could be the storage card is failing

lucid nebula
#

It is a few years old, but I haven't used it since I switched from Windows to Android in 2016/2017

lucid nebula
torn trench
#

I think the easiest way would be to get a new SD card and see if the problem still happens

lucid nebula
#

It would, if I had the funds for it

velvet rampart
#

You can try formatting the SD card and giving it a clean install

lucid nebula
#

I did that already

fickle rose
#

Try h2testw (f3 for linux) on the card

shrewd flume
#

Can anyone shed light on this error message? complete newb

/home/user/.local/lib/python3.10/site-packages/board/.py", line 169, in <module>
elif board_id in (ap_board.JETSON_ORIN_NX, ap_board.JETSON_ORIN_NANO:
AttributeError: module 'adafruit_platformdetect.constnts.boards' has no attribute
'JETSON_ORIN_NX'. Did you mean: 'JETSON_TX2_NX'?

comes up when I try to import board

first happened after i installed a new library for a bme 280 sensor

gentle briar
#

It seems like the module is asking the board package if it's one of a few particular Jetson boards, but the board package doesn't have definitions for all those specific boards. The easiest fix is probably to just remove that board reference (since presumably that is not the board you have).

steady rose
midnight flume
#

@shrewd flume I've confirmed the best place for Jetson questions is here in #help-with-linux-sbcs because it's considered an SBC and runs Blinka on Linux.

shrewd flume
#

what's strange is that i'm not using a Jetson board at all, its an FT232H. I think I must have downloaded a wrong library when adding my BME280 now nothing is working

#

i've tried uninstalling the new downloads as I imagine there were conflicting dependencies, but my original correct modules still aren't working

#

I'm considering a fresh re-install of the linux OS and re download the appropriate libs

tired marsh
shrewd flume
#

running pip install -U adafruit-blinka Adafruit-PlatformDetect resolved the error message, but now when I use the module board non of my pins are detected

#

when I run dir(board) it doesn't show my pin names

#

i get, [Blinka', builtins', cashed' etc...

tired marsh
#

or run python like this:

BLINKA_FT232H=1 python myscript.py
shrewd flume
#

yeah environment variable is set

tired marsh
#

in the same environment ? like you are not calling python with sudo ?

shrewd flume
#

nope

tired marsh
#

what do you get printing board.board_id ?

shrewd flume
#

name board is not defined

tired marsh
#

maybe import board first

shrewd flume
#

now i get GENERIC LINUX PC

tired marsh
#

what about:

import os
print(os.getenv("BLINKA_FT232H"))
shrewd flume
#

i get back > none

tired marsh
#

so somehow it doesn't see the environment variable, can you check that it's set ? How do you run python ? Do you run it inside an app like Thonny ?

shrewd flume
#

just inside the terminal atm, just use thonny to write programs

#

so the environment variable isn't set even when I run export BLINKA_FT232H=1?

tired marsh
#

it should be if you do something like that in the same terminal:

export BLINKA_FT232H=1
python

or a single line like that:

BLINKA_FT232H=1 python
#

at least in bash I guess

#

unless somehow python is run in its own thing, but I don't know how that would make sense, this is beyond my linux knowledge 🤷

shrewd flume
#

well thanks for the help anyway, we've at least narrowed down the issue a bit

dusk grotto
#

What going on?

tired marsh
shrewd flume
#

k will try that just need to reboot everything keeps freezing 🫠

#

Hey its working now!

#

I just don't understand exactly why but hey

#

atleast I can continue my relay project

#

I ran into this issue after running pip3 install adafruit-circuitpython-bme280

edgy oar
terse canyon
#

I have a fresh install of OrangePi's Debian image running on an OrangePi5 and having a hard time getting eth0 to actually do anything.
Running ip a I can see that the os has eth0, but the device is down. Running sudo ip link set dev eth0 up to try to bring it up, I get RTNETLINK answers: No such device.

#

Plugging the cable into my laptop can confirm the cable is just fine and can access my router and beyond. However, plugging the cable into the OrangePi, I get no status indicator lights.

#

I'm not entirely sure where to go to interrogate Linux kernel modules or log files to examine this issue further. It might be an issue with that port being DOA. Not entirely sure. Might just be that there is a special kernel module I need to install specifically for this device.

tawdry aspen
#

You can start by checking dmesg to see what's detected by the kernel. Also sometimes modern Linux will create Ethernet adapters using different names, like enp0s24 or weird stuff like that. You can also use tools like lspci and lsusb to see what's on those busses to try and find the controller.

zenith crystal
#

there's no green indicator light on the Orange next to the cable? (also, make sure the network connector is seated solidly in the socket on the Pi - an extra push never hurts)

terse canyon
tawdry aspen
#

If there's no driver running, you may not get link lights

terse canyon
#

and no phy at addr -1

tawdry aspen
#

That's pretty old though, hmm

#

It certainly sounds like a driver/module issue. Are there any other Linux flavors that support the OrangePi 5 that you could try?

terse canyon
#

Sorry, had to step away for a bit. Ummm. Not that I know of. The bug report you linked seems to be from 2016. I am running 1.1.4 Bullseye with Linux 5.10.110-rockchip-rk3500.

#

If there is a patch I need or a drive update. Potentially I can download it and transfer it to the device using a flashdrive?

tawdry aspen
#

Should be able to, but it seems odd that a newer kernel would have the same issues. I saw there were other weird interoperability issues between that Ethernet controller and various PHYs, so it might be worth searching for the controller and the PHY to see if you can find anything

terse canyon
#

Scrolling up further, I can see: IRQ eth_lpi not found, Looking up phy-supply from device tree, Looking up shy-supply property in node /ethernet@fe1c0000 failed

#

Checking the status on the firmware via cat /sys/firmware/devicetree/base/ethernet@fe1c0000/status returns Okay. So I guess the firmware is good? But the driver needs to be updated?

tawdry aspen
#

Possibly? It might be worth trying another distro to see if you have the same issue. Compiling kernel modules is always a bit of a pain

vestal spindle
#

Hi! I am tryong to make a Jetson Nano send motor speeds to an Arduino over serial using Pyserial, and I am getting a several minute delay between the data being "sent" and the arduino receiving it. Has anyone else had this issue, or know why this is happening?

gentle briar
nocturne tapir
#

does anyone know if tinyusb works on a pi 4?

umbral sable
nocturne tapir
umbral sable
#

Since the Pi has built-in USB ports, it would be a little bit more of an unusual use case versus the CM4 that might not have them broken out.

nocturne tapir
#

getting this when trying to compile a tinyusb example on a pi4

AS boot8_asm.o
make: aarch64-none-elf-gcc: No such file or directory
make: *** [../../rules.mk:139: _build/raspberrypi_cm4/obj/hw/mcu/broadcom/broadcom/boot8_asm.o] Error 127
nocturne tapir
#

managed to fix that by symlinking aarch64-none-elf-gcc to gcc, now i'm getting

CC board.o
CC main.o
CC msc_disk.o
CC usb_descriptors.o
CC tusb.o
CC tusb_fifo.o
CC usbd.o
CC usbd_control.o
CC audio_device.o
CC cdc_device.o
CC dfu_device.o
CC dfu_rt_device.o
CC hid_device.o
CC midi_device.o
CC msc_device.o
CC ecm_rndis_device.o
CC ncm_device.o
CC usbtmc_device.o
CC video_device.o
CC vendor_device.o
LINK _build/raspberrypi_cm4/cdc_msc.elf
/usr/bin/ld: cannot find -lnosys
collect2: error: ld returned 1 exit status
make: *** [../../rules.mk:172: _build/raspberrypi_cm4/cdc_msc.elf] Error 1
gentle briar
#

The /usr/bin/ld: cannot find -lnosys line looks like the linker has been told to include a library (-l) named "nosys" but that library is not present in any of the locations it looked.

nocturne tapir
#

any idea how to get that installed on an PI? my google seems to be failing me

umbral sable
#

It looks like it would be part of the libnewlib package. However, I'm somewhat suspecting you could be going down a bad path, as this might be compiling an example to run bare-metal on the Pi's CPU rather than running inside a Linux environment.

velvet rampart
#

there was a little bit of metal on one of the chips, i gave the pi a gentle clean.... maybe this solved it

#

it's also running super hot. i think a bad over clock killed that pi

nocturne tapir
umbral sable
tired marsh
#

same question, tinyUSB is for bare metal coding, as far as I know it's not gonna run on linux

#

so, what are you trying to do ?

nocturne tapir
#

there is a project that emulates a portal of power for skylanders

#

it uses an LCD screen and buttons

#

i've got a 5 year old and about 80 skylanders around my livingroom. i was hoping to port his code for a pico to a pi4 and use a touch screen.

tawdry aspen
#

You might be able to do that on a Pi Zero but I don't think the Pi can normally act as a USB device

tired marsh
#

The Pi 4 can act as a USB gadget on its USB-C port, like the Pi Zero does on its USB (non power) port

nocturne tapir
#

yes

nocturne tapir
tired marsh
#

I don't know, this is out of my wheelhouse. Does it use HID ? If so you might look into hidapi

agile depot
#

Is there a Linux command to change a hex value at an offset in a file?

gentle briar
#

If it's a hex file, you can do that with a text editor.

agile depot
#

Apparently hexedit but I'm unsure if that's bundled with Linux or if it has to be installed

gentle briar
#

But I'm guessing you want to edit a binary file with the values represented in hex.

agile depot
#

Apparently most GIFs are LZW compressed, but you can also make them uncompressed which would probably work better.

sharp oxide
#

/ imagine

solemn finch
nocturne tapir
#

has anyone gotten GadgetFS to work on a raspberry pi 4? I've got dwc2 mod loaded, create the directory and mount the gadget, but it doesn't create the in an out only fe980000.usb

peak bluff
#

Hi! I am new to RaspberryPi and I am doing a 64x64 led matrix project using the resources below:

The demo (demo1-snow) works well, but I want to change the led rgb value, so I adjusted the code and saved it as a new file named “demo1-snow-modified” which is a cpp file

My questions:

  1. How to make cpp file executable and run the code like demo (sudo ./demo1-snow) in terminal.
    Photos are the errors and I tried to use “g++ demo1-snow-modified.cpp -o demo1-snow-modified “ to create an executable file, but it failed. How to include the led-matrix library when I compile it?

  2. Does anyone know how to create our own image with Adafruit_PixelDust Library? I saw there is a application like this: https://github.com/porrey/ledmatrixide ,but I have no idea how to run the application?

Thank you!!

Adafruit Learning System

3D PixelDust, Globe, and other fun designs

GitHub

Library-ified version of "LED sand" code. Contribute to adafruit/Adafruit_PixelDust development by creating an account on GitHub.

GitHub

LED Matrix IDE Solution - create images for the Adafruit 64 x 64 LED matrix and the LED Matrix Sand Toy. - GitHub - porrey/ledmatrixide: LED Matrix IDE Solution - create images for the Adafruit 64 ...

gentle briar
peak bluff
#

@gentle briar Here is the error!

#

Is that because it can’t find the library I used?

#

This is the ‘demo1-snow-modified.cpp’ that includes some libraries. But I do see the libraries in my folder…

humble marsh
#

Describe exactly what you did.

peak bluff
torn trench
nocturne tapir
#

anyone have experience with emulating a usb device with a pi4?

faint sparrow
peak bluff
lucid nebula
#

Google gives conflicting answers, but generally seems to confirm I have a boot problem

torn trench
#

Did you try another SD card?

lucid nebula
#

I don't have another one, nor do I have the funds

gentle briar
#

SD cards can be found in many devices (cameras, phones, GPS units, some toys, etc.). Depending on where you're located, some retailers (such as MicroCenter) offer free ones from time to time with coupons as loss leaders to get you into their stores.

torn trench
lucid nebula
#

Complete opposite side of the country

torn trench
#

darn, not even anywhere in the midwest?

#

I'm driving to michigan tomorrow so if you were along 80, 90, or 94 it might have worked out 😂

lucid nebula
#

I'm literally surrounded by water, lol

gentle briar
#

Is there any chance you live in the Baltimore/Washington area?

lucid nebula
#

Nope

heady sand
#

Hello, have a coding question that I think fits this channel (please let me know if not). I have been working on my LED matrix for a while but have hit a roadblock with it updating. I have a timer as a variable that is supposed to run from 2 minutes to 0. I have tried to incorporate the matrix into an already existing/working code I have. Problem is I cannot get the matrix to wipe the old value that was on the LED matrix and place the new one. I have tried running a clear on the canvas and matrix along with a fill of 0,0,0. I have also tried moving the updating command which I think is canvas = matrix.SwapOnVSync(canvas), to be after I run the clear, then after setting the text. I am wanting to avoid it blinking from a reset/clear every second it is updated as it is going to be a scoreboard for a public event and a smooth transition is something that I would prefer.

text = "{:02d}:{:02d}".format(minutes, seconds)
        if text != previousText:
            #canvas.SetImage(black_image)            
            text_width, text_height = draw.textsize(text, font=font)
            x = (64 - text_width) // 2
            y = (32 - text_height) // 2
            draw.text((x, y), text, font=font, fill=color)
            canvas.Clear()
            canvas = matrix.SwapOnVSync(canvas)
            canvas.SetImage(img)
            canvas = matrix.SwapOnVSync(canvas)

            previousText = text

Also attached is the example of what happens when it counts down from 2 minutes.

Thank you

gentle briar
#

I'm guessing you're double buffering, so you'd draw on one canvas, then swap canvases to update?

earnest roost
heady sand
#

I tried updating and it partialy works.....but yes i will

#

Code is at the bottom

#

There is still very much a trace left by them

earnest roost
#

@heady sand Try adding draw.rectangle([(0, 0), (64, 32)], fill=(255, 255, 255), outline=None, width=1) before the draw text (line 300). That should draw a filled rectangle over the image

#

Personally I would create a new image each time.

heady sand
#

How would I do that?

#

I am not very skilled in python so I am using mostly what I can find on the internet and trying to understand it

earnest roost
#

Well, try the fix I mentioned first.

heady sand
#

I am right now.

#

Also, I just re-installed the library to be using quality, yet it still flickers, how would I fix this? I saw there was an option you need to set?

earnest roost
#

What do you mean by "using quality"?

heady sand
#

When installing using this guide, there is a quality and convenience settings

#

I just soldered GPIO 18 and 4 together and re-installed with the quality setting yet it doesnt seem to have gotten rid of the flickering

#

I think its the PWM stuff

heady sand
#

--led-gpio-mapping=adafruit-hat-pwm

earnest roost
#

Do the examples flicker?

heady sand
#

I have not tried them yet

#

ok...that just broke it

earnest roost
#

I suggest doing that to make sure your setup is good and not a code issue

heady sand
#

Yes the examples do as well

earnest roost
#

Sorry. I have to go.

#

But I can check back tomorrow.

crystal jewel
#

a wonderful Friday morning from Sweden to all who dwell in this channel! I could really do with some help from anyone who knows Linux Audio well

I am trying to route the audio (mono audio and micriphone) to and from a USB Audio device plugged into a Pi, running headless on latest Bullseye lite (so no desktop environment and access over ssh) to a Bluetooth headset

I have a Telit LE910C4 mini PCIe module which supports Audio over USB (mono audio + microphone). I have the module plugged into a Pi 3B+ via USB and everything looks great; the module works as expected, and I can see the USB audio device. I am just missing the last link to be able to use my bluetooth headset - essentially I am missing the "?" in the attached diagram

#

On the Linux side I see this:

[14447.968572] usb 1-1.2: New USB device found, idVendor=1bc7, idProduct=1230, bcdDevice= 3.18
[14447.968606] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14447.968624] usb 1-1.2: Product: LE910C4-EU
[14447.968637] usb 1-1.2: Manufacturer: Android
[14447.968651] usb 1-1.2: SerialNumber: 0123456789ABCDEF
[14447.970257] option 1-1.2:1.0: GSM modem (1-port) converter detected
[14447.970698] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[14447.975116] qmi_wwan 1-1.2:1.2: cdc-wdm0: USB WDM device
[14447.987227] qmi_wwan 1-1.2:1.2 wwan0: register 'qmi_wwan' at usb-3f980000.usb-1.2, WWAN/QMI device, 8a:e4:11:3c:a1:8a
[14447.990048] option 1-1.2:1.6: GSM modem (1-port) converter detected
[14447.990595] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[14447.991285] option 1-1.2:1.7: GSM modem (1-port) converter detected
[14447.992215] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[14447.992964] option 1-1.2:1.8: GSM modem (1-port) converter detected
[14447.993488] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[14447.994166] option 1-1.2:1.9: GSM modem (1-port) converter detected
[14447.994546] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
[14448.349932] usbcore: registered new interface driver snd-usb-audio```
#

I have enabled USB audio in raspi-config and I see this

**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: LE910C4EU [LE910C4-EU], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0```
#

$ aplay -L

    LE910C4-EU, USB Audio
    Direct hardware device without any conversions
plughw:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    Hardware device with all software conversions
sysdefault:CARD=LE910C4EU
    LE910C4-EU, USB Audio
    Default Audio Device
front:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    Front output / input
surround21:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=LE910C4EU,DEV=0
    LE910C4-EU, USB Audio
    Direct sample mixing device
usbstream:CARD=LE910C4EU
    LE910C4-EU
    USB Stream Output```
#

speaker-test 1.2.4

Playback device is usbstream:LE910C4EU
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_usb_stream.c:508:(_snd_pcm_usb_stream_open) Unknown field hint
Playback open error: -22,Invalid argument```
#

this is not my area of expertise by any stretch of the imagination, but very eager to learn if anyone can point me in the right direction 🙂

crystal jewel
#

11th hour update: reading up on amixer no idea if that’s right or not 🙃

crystal jewel
#

Seems this is leading to alsaloop </rubber duckying>

crystal jewel
#

some progress but also questions

  1. why does aplay -L have so many options for the LE910? I know from the docs that the Audio over USB for LE910 is mono only; I guess it shows the upmix / downmix options though
  2. looking at the alsaloop docs (https://linux.die.net/man/1/alsaloop) it seems that you specify the capture device and then the playback device; so then my interpretation is that audio generated by the capture device is looped to the playback device; so if I use the LE910 as the capture device, and the default sound card as the playback; in theory if i have a call going to the LE910, then the phone audio would be looped to my headphones - which would be great; however from what I can see in the output above, how do you know which device is a microphone? I am assuming I need to create two loop devices for the full bi-directional communication - so I need to create a loop with the capture device as the Raspberry Pi's microphone (which is coming from a USB-sound card now) and playback as the LE910 - but again no idea which device on the LE910 is the microphone

back to the docs! but if anyone knows directly, ping!

tender nexus
thin pelican
#

Anyone familiar with pi400 wifi nonsense?

I regularly switch SD cards either various OS builds. About a week ago, my pi400 just decided not to connect to wifi, across all of them.

I can run any kind of wifi tools, like the aircrack suite etc. Using my alfa adapters. However, the alfa adapters and the native wifi card, are having no response trying to connect to a wifi. Enter password, connect, nothing. No error. Doesnt return "incorrect password" or "connected without internet" nothing. Just doesn't work.

Ifdown and ifup both return "unknown interface" for both cards. Iwconfig returns both with no issues.

#

With various*

#

I'm baffled because

  1. It's across OS's
  2. Effecting the external alfa cards as well
  3. Happening across multiple wifi networks
visual magnet
#

sudo apt install firmware-brcm80211

#

If it still dosent work,use journalctl and post your issue on github either at the broadwell drivers page or the bootloader project

#

Just so you know,this is a chipset issue as i have seen it in both pi4,pi400 and a cm4 pcie card

velvet rampart
fickle rose
#

Nice

#

(Pro tip) if you want to try different desktop environments you can install multiple and switch on the login screen

fickle rose
#

There’s a command you can use but i forgot the name edit: it’s tasksel

#

Idk if it’s on ubuntu but timeshift is a great backup program that backs up your whole system (minus the home dirs by default)

edgy oar
#

The SD clone app Raspian has is easy too.

fair ravine
#

A programming question not sbc or circuitpython but... Is there a good book that teaches python to a new user of linux? I got into linux from the Raspberry pi and into Python with circuit python. Now I have a linux workstation with Python 3.11 and am trying to do more. Thanks for any information given.

vocal lava
fair ravine
#

@vocal lava Thanks Paul, I am looking into them. And buying to support the knowledge.

weak hound
#

@fair ravine I'll second the Al Sweigart books, and if you're interested I can provide some other tools / puzzles / games I've used to teach Python over the years as well.

shut quiver
#

I can't get pillow to install on my raspberry pi with python3.10
Here is the errors:

#

Discord is making me paste in a txt file

tired marsh
#

so I see:

  The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     <https://pillow.readthedocs.io/en/latest/installation.html>

and in that URL I see things like:

Prerequisites for Ubuntu 16.04 LTS - 22.04 LTS are installed with:

sudo apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
  libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
  libharfbuzz-dev libfribidi-dev libxcb1-dev
shut quiver
#

I'm on Debian 11 but I'll try that.

shut quiver
#

Well, I had to install a different installation manager. I then got pillow to correctly install.

outer niche
#

So I'm having an interesting problem which... I think I know the answer too but don't know enough of.

I'm using the Sparkfun Qwiic Twist encoder (https://github.com/sparkfun/Qwiic_Twist_Py) with a Pi 4. I'm using the interrupt pin. I'm setting the interrupt pin to an internal pull-up on GPIO setup.

And here's where things go wrong.

Initial state of the pullup is high (As it should be). I fiddle with the Qwiic and it drops low (Again, as it should). And then it never goes back up to high again.

GitHub

Python driver for the Qwiic Twist breakout board. Contribute to sparkfun/Qwiic_Twist_Py development by creating an account on GitHub.

#

I'm thinking the internal pullup resistor is just a little bit not enough, and I'm going to need to add a separate one.

#

ooorrrrr

#

there's a clear_interrupts() call that I just missed

tired marsh
#

I would think it resets only when read, or on some other condition ?

#

or like that

outer niche
#

So here's the thing. The python package is a port of the arduino code - except they didn't port over all of the examples. So there's no interrupt example. I read a bit and thought I understood how it was working and turns out I only understood 95% of it.

#

Soon as I looked at the arduino interrupt example I was like "Oh. Yeah. OK.")

hard axle
#

is this sense HAT compatible with a Raspberry Pi Zero 2 W

gentle briar
wraith grove
#

I see one chart saying the B+, 2, 3 and Zero have identical pinouts

#

product brief for 2023 on the pi sense hat 1.0 does not note incompatibilities, or compatibilities

#

I ponder lighting up 64 neopixels (?which those may not be) through a pi zero though...

fair ravine
weak hound
weak hound
fair ravine
umbral sable
olive saffron
#

heya! I'm not sure if this is the right place to ask (I'll remove my question if it isn't :') ) but I was wondering if anyone had any experience working with SPI. I'm trying to talk to an rm3100 magnetometer chip from a raspberry pi using SPI and I'm having some trouble. I've read through the datasheet and I'm using python and spidev to control the SPI stuff but I seem to just be getting the same reading over and over again for the magnetometer readings. I can send my code if needed and I really appreciate any help!

weak hound
weak hound
#

That said, go ahead and post your code snippets anyway 😁

tawdry sparrow
#

Don't know if this is the right channel, but hoping someone here can help or point me to folks who might. I'm trying to connect Reef-pi on a Rpi3 via Node_Exporter to a remote Prometheus db and then scrape that with Grafana. I have Reef-pi installed and logging. I have Node_Exporter installed and running (I can browse to http://<ip>/metrics and see data. I have Prometheus running, and it sees the reef-pi target and reports it up. And I have Grafana up, with the Prometheus db source added, and it reports the data source is working. But I can't get the Node Exporter dashboard to report anything...

zenith crystal
outer niche
#

Howdy folks.

I've recently been running into issues in my Pi project. (Pi4, 4gb). I'm getting i2c issues, and on doing i2c detection I'll get transient random things showing up (using https://learn.adafruit.com/scanning-i2c-addresses/raspberry-pi). I've stripped it down to just the Pi and I'm still getting them.

I'm presuming this means something on the Pi has been damaged somehow?

broken shuttle
#

Do you have a scope screenshot of the transients?

outer niche
#

Just the i2cdetect address reports.

#

(I also don't own a scope)

outer niche
#

So I swapped Pis. Wasn't getting things when it wasn't connected to anything. But now I've reconnected everything and... weird bad data is back. Hm.

broken shuttle
#

What are your pullups?

outer niche
#

Whatever's built in on the devices.

#

Interestingly, everything was working fine a few days ago and now it just. Doesn't work.

#

I've tried dropping the baud rate down to 10k (From the default 100k) but I don't think that helped.

broken shuttle
#

Ok so your total pullup resistance is 1.8k. That's a little low, but I don't think it's low enough to cause issues.

#

I assume you've tried communicating with each board individually (disconnecting the others)?

outer niche
broken shuttle
#

The reason I'm asking is because I'm suspicious of signal integrity issues. Despite the common usage, I2C was not designed to go through cables. Qwiic/StemmaQT wires are usually pretty short though.

outer niche
#

I mean. Neither of them are particularly long cables, but they aren't the nicest cables either.

#

I'm not using the Qwiic cables because that device was a late addition/swap, so it's just soldered wires

broken shuttle
#

What happens if you connect only the RTC?

outer niche
#

That's also connected via the adapter board but since that's a quick connect I added, I might be able to manage that. Through some additional jumper wires.

broken shuttle
#

The key here is to disconnect the custom board. I'm wanting to determine if that's the issue.

outer niche
#

I've been using this board (And setup) for about a week now, no issues. Then friday night it just started acting up.

broken shuttle
#

Ah I see

#

Well my only theory at this point is that the pullups are too strong and damaging the GPIO pins. I'm not convinced that's the actual issue though.

outer niche
#

Do you think disconnecting the Qwiic's 2.2k ones and letting it ride on the 10ks of the RTC would work?

#

Well. Not necessarily fix the issue, but.

broken shuttle
#

Shouldn't hurt.

outer niche
#

with i2cdetect I'm still occasionally getting random addresses popping up but not sure how common in general that is

broken shuttle
#

It isn't.

outer niche
#

So I went ahead and ordered some parts - The Sparkfun Qwiic hat, the Adafruit PCF8591 ADC (To replace the ADC I had on my custom board), and some cables to connect them. Preliminary tests show everything seems to be working.

#

So something changed on my custom board, which. Isn't a huge surprise since it was a little outside of it's original design at this point and there were a few extra wires attached.

placid whale
#

Hi, any Linux gurus here?
What is needed to run Pygame program from command line without startx on Raspbian?

#

I get pygame.error: No available video device

zenith crystal
carmine blade
#

pi zero 2 isnt in stock anywhere unless you wanna buy it for 90 dollars
should i just buy a pi zero or a radxa zero or banana pi m2 which one is faster
im trying to re encode mjpeg video to h264 so i can stream it via rtmp

meager girder
#

could X11 port forward it over SSH but that might be too slow for most games. Usually youd hook it on a TV if it's a linux device without a screen

zenith crystal
#

you still have to have X running on the Pi to have something to forward (X is a client/server protocol, so the server has to run in order to display anything anywhere)

meager girder
#

yeah but normally the server doesn't require a display and is happy if it can forward the client port somewhere else

#

the problem happens if I cant do either of these things

#

right?

zenith crystal
#

correct - X does not require a physical monitor to be connected, but it does have to have some kind of "display" driver to initialize - iirc there used to be a "headless X" server option

meager girder
#

I have some difficulty understanding why that is a problem anyway since I just run pygame off my rpi and the TV

zenith crystal
#

the OP was trying to run PyGame without any kind of X server

meager girder
#

ah I think I get it - like they didn't install the required packages for X and like the runlevel with X or startX before the display manager wouldnt work at all either since they dont have the barebones X packages installed ?

placid whale
#

I'm just trying to start PyGame program quickly as possible from boot.

zenith crystal
#

startx, pygame - done

#

there's ways of running just a barebones X server (no display manager) and then PyGame, but i don't know how well that would actually work

placid whale
#

I should have said my goal on first post...

zenith crystal
#

i would recommend starting with reading man startx

placid whale
#

Ok, thanks!

carmine blade
#

i have atricky question

#

would i get better performance if i was live streaming with ffmpeg on a rpi zero with gpu codec (hardware accel)

#

or if i was live streaming with ffmpeg on a sbc thats 6 times better than the rpi zero (radxa zero) but im using software codec

meager girder
#

so before I do a deadly mistake again