|
It's a solved problem already, don't worry needlessly about it.
|
# ? Oct 2, 2023 18:38 |
|
|
# ? May 25, 2024 12:46 |
|
Extremely dumb question, so apologies if this has already been asked, but will the Pi 5 be compatible with images created for other Raspberry Pis? Notably the off brand pis (like orange pis) are not, which really limits their usefulness as a plug and play device.
|
# ? Oct 2, 2023 18:43 |
|
Hadlock posted:I dunno how you would design a 3.5mm jack that can smartly switch between line and headphone. I don't think line level has some magic resistor in the plug. USB-C does have a "headphone out" resistor pin drop spec that allows it to function as a headphone out, but I don't think it can magically switch between headphone and line out Talorat posted:Extremely dumb question, so apologies if this has already been asked, but will the Pi 5 be compatible with images created for other Raspberry Pis? Notably the off brand pis (like orange pis) are not, which really limits their usefulness as a plug and play device. If your image of choice is being regularly updated more likely than not the next update will support Pi 5, if it's some abandoned old thing you're probably SOL.
|
# ? Oct 2, 2023 19:23 |
|
KozmoNaut posted:Only quietly. Ok Comboomer posted:What do you mean “drive a speaker?” It’s a headphone-level output that IIRC operates in line-out (ie line level) mode when plugged into the right resistive load. Well the thing was that in my original post I said I was trying to drive a speaker and that driving it with the onboard PWM is very quiet because it's only putting out enough power for headphones: Pham Nuwen posted:Fooling around with a Pi 4 and an 8 ohm speaker hooked up to GPIO pins (dtoverlay=audremap,pins_18_19 in config.txt). It is, of course, very quiet. I ended up buying an Adafruit I2S amplifier hat (https://learn.adafruit.com/adafruit-speaker-bonnet-for-raspberry-pi) because the price was good and the hat seems pretty convenient, and I could get it delivered tonight from Amazon.
|
# ? Oct 2, 2023 19:29 |
|
Oh yeah speakers come in 4 and 8 ohms typically don't they good point USB-C has the ability to measure resistance on at least some of the pins, that's how adapters are passively coded as part of the spec Ok I looked it up, voltage negotiation is done via kiliohm values, like 12k, 36k etc. https://hackaday.com/2023/01/04/all-about-usb-c-resistors-and-emarkers/ I can't link to the PDF source on Mobile but Texas instruments says it's a 1kohm value for audio devices. I don't know if the USB-C connector is smart or sensitive enough to pick up an 8 ohm resistance since the other values are presented as +/- 10% which is like 120+ ohms
|
# ? Oct 2, 2023 20:35 |
|
Stop. Just stop. The speakers or headphones are not connected to the USB-C plug. E: seriously, you're just relaying irrelevant stuff from a datasheet you don't understand. KozmoNaut fucked around with this message at 21:11 on Oct 2, 2023 |
# ? Oct 2, 2023 20:45 |
|
My google skills suck or such a thing doesn't really exist.. anyone know of a pi camera ribbon cable that is less fragile? I'm always worried about creasing the ribbon or it getting otherwise damaged which I wouldn't worry as much if it was in a round flexible sleeve. I do see some DIY and even a couple hdmi cable conversions so I guess other people have tried to solve this.
|
# ? Oct 2, 2023 22:15 |
|
There's an extension kit that converts the data stream and back again: https://magpi.raspberrypi.com/articles/review-thine-cable-extension-kit Once you're at that sort of money though you're into cheap IP CCTV camera territory
|
# ? Oct 2, 2023 22:18 |
|
I'm genuinely curious to see what the Compute Module 5 ends up being. I wonder if there's any more PCIe lanes on the cpu that they could bring out. The CM4 and Pi 5 only expose 1 lane, but the Pi 5 processor has at least 4 more lanes going to the 'southbridge' for lack of a better term. Seems odd if it had exactly 5 lanes, so I'm cautiously hopeful we might see 2 lanes (dare to dream) exposed? That would mean changing the pinout of the CM4 connector though, which I don't think they'll want to do unless perhaps something else was obsoleted anyway.
|
# ? Oct 3, 2023 01:31 |
|
Rescue Toaster posted:That would mean changing the pinout of the CM4 connector though, which I don't think they'll want to do unless perhaps something else was obsoleted anyway. lol
|
# ? Oct 3, 2023 02:00 |
Running a pi zero 2 w, after a couple days it fills up all 32GB of storage, and stops responding. Also very warm. I kill the power, let it cool down, and it'll boot up, but that storage is swamped.code:
code:
code:
- The crash - The heat - The storage Not sure which is causing which. Like, is it maybe overheating, causing some logs to fill up the storage, and eventually going kaput? Or is something filling up storage, causing it to overheat and go kaput? Or is it going kaput, and in the process overheating while loading up storage? Once I settle it down and fire it back up, even though storage is 100% full, I can ssh in and tinker around more. Looking at where the storage has gone, it appears to be logging eating it up. /var/log/syslog.1 is ~14GB of code:
The other half of the storage (another 14GB) goes to kern.log.1, with the same exact message, at the same exact rate: code:
Swear to god, I'm going to add a second cron that just deletes that log file. Bad Munki fucked around with this message at 04:03 on Oct 3, 2023 |
|
# ? Oct 3, 2023 03:38 |
|
Looks like that is an error with the wlan driver. Have you seen this post: https://github.com/raspberrypi/linux/issues/2274 Looks like that person was also running a lite distro and it was missing some files related to that driver. Might be an issue with the lite distro or it has been reintroduced somehow. I doubt it's your program, you aren't using WiFi as far as I can tell.
|
# ? Oct 3, 2023 03:48 |
That aio.send_batch_data() command hits the Adafruit IO servers, as does aio.feeds(). But that all works just great for a while, until the whole thing crashes down. Looking at the data that does get logged to Adafruit IO, it looks like it actually goes down sooner than I thought, like less than 24 hours after startup.
Bad Munki fucked around with this message at 03:58 on Oct 3, 2023 |
|
# ? Oct 3, 2023 03:50 |
|
Ah ok. In any case, unless you configured it to specifically use that driver, it's not your fault, it's a system level problem.
|
# ? Oct 3, 2023 03:53 |
|
Run a crontab to delete the system log Or, set the folder to read-only Hacky solutions are best solutions, minimum effort possible (Also it barely matters, but remove your API key from your post)
|
# ? Oct 3, 2023 03:56 |
Cojawfee posted:Ah ok. In any case, unless you configured it to specifically use that driver, it's not your fault, it's a system level problem. ante posted:Run a crontab to delete the system log quote:(Also it barely matters, but remove your API key from your post)
|
|
# ? Oct 3, 2023 03:59 |
|
Bad Munki posted:From that post you linked, I may not be providing enough power. I'll try a larger supply to see if that's it. Hope so, that'd be an easy fix. I put it on a bigger supply and we'll see how it's doing this time tomorrow. you may want to consider calling journalctl to prune the logs so that you can be sure they get rotated and you actually save space (since deleting an open file will not get rid of it until the file descriptors to it get closed).
|
# ? Oct 3, 2023 04:11 |
Will do, thanks. Anything built in to automate that in an ideal way, or just crontab it up? e: I googled it. Looks like I just edit /etc/system/journald.conf? Currently, it just has code:
Bad Munki fucked around with this message at 04:27 on Oct 3, 2023 |
|
# ? Oct 3, 2023 04:24 |
|
Hadlock posted:USB-C, adapters But the signalling for adapter type uses the CC pins, while the audio itself goes over the data and sideband pins. So it's easy to measure the resistances completely separately.
|
# ? Oct 3, 2023 04:42 |
|
Dylan16807 posted:So this is all irrelevant to Pis because they don't support passive analog audio adapters, and the Apple adapter that was mentioned is not one of those. E: I guess you're talking about the audio signal for passive audio over USB-C, though. Which makes the first part of my rant less relevant. Which still isn't happening, because there's a DAC in-between and no direct connection between any USB-C pins and the 3.5mm output jack. Some audio adapters can sense the impedance of headphones and switch to a higher output setting if necessary. I have one that does that, the Meizu Hifi Pro. It can drive 600 ohm headphones without too much trouble to a good volume level. But the Apple adapter doesn't do that and can't proper drive such headphones. Both the Meizu and the Apple are perfectly fine to connect to an amp to drive speakers. They're just variable level outputs with lower source impedance (that's good) and the ability to deliver more power (also good, and the high input impedance of a line-in means it won't hurt anything). A headphone output is perfectly fine to use as a line-out, as long as you don't use a powerful headphone amp that will exceed normal line level. The Apple adapter only puts out like 1 Vrms maximum, compared to normal line level which is 2 Vrms. So worst case, you'll just have to turn up the volume on your amp a bit more than you would otherwise have to. KozmoNaut fucked around with this message at 07:13 on Oct 3, 2023 |
# ? Oct 3, 2023 07:01 |
Bad Munki posted:Will do, thanks. Anything built in to automate that in an ideal way, or just crontab it up? 15 hours on and the thing is chugging along happily, that's a good sign so far. I think the two-pronged approach of providing it more ample power, as well as curtailing its log behavior, may have done the trick. Thanks, all!
|
|
# ? Oct 3, 2023 18:09 |
|
Bad Munki posted:15 hours on and the thing is chugging along happily, that's a good sign so far. I think the two-pronged approach of providing it more ample power, as well as curtailing its log behavior, may have done the trick. Thanks, all! A thing to consider setting up long term is log2ram, at least once you have everything else working and stable. In-progress writes during a power failure are great for killing sd cards, and logs are writing all the time. Most pre-made special purpose Pi stuff (pihole, retropie, etc) come set up with log2ram. The general-purpose raspian / PiOS doesn't though, because when your logs vanish after a crash it makes debugging v hard.
|
# ? Oct 3, 2023 19:06 |
|
Another valuable SD card saving tip is to set up a shutdown button. By default if you short pins 5 and 6 it'll issue an immediate system shutdown. Or hook up a button if you wanna be fancy. I know we've all rolled the dice, gotta unplug the pi and you don't wanna hunt down a keyboard or ssh in so instead you yank the wire. But if you had a power button it's right there and you got no excuses.
|
# ? Oct 3, 2023 19:15 |
|
Klyith posted:A thing to consider setting up long term is log2ram, at least once you have everything else working and stable. Or modify your syslog config to forward logs elsewhere rather than writing them to disk. There's a whole host of poo poo out there that can do this (I'd, uh, recommend against Splunk following the Cisco acquisition lol) edit: for home use you might just be better off setting up rsyslogd on a Linux box with a real hard disk, and just forwarding everything from the rpi to that. Pham Nuwen fucked around with this message at 20:23 on Oct 3, 2023 |
# ? Oct 3, 2023 19:37 |
|
FWIW, I have a pi running VolumIO upstairs for the bedroom and I hooked up the line-in of an amp using one of those HDMI -> VGA/Composite adaptors that does audio as well. It chugs along and works / sounds great. Does the thread have a recommendation for something to power 4-5 Pi’s in close proximity to each other? I found a pi rack mount thing for cheap and want to put my pi’s in it in an organized way and power them all from the same adapter. I was thinking about it and I guess the theoretical max draw could be something like 10 amps at 5V? lol. So I’m hoping to get something that others have used and not burned their house down.
|
# ? Oct 3, 2023 22:13 |
|
If you're going rack mount there's always PoE, which also gains you the ability to remotely power cycle your Pis individually. Otherwise I'd just look for a multiple USB power supply that fits your needs from a major brand like Anker. I have an Anker 6 port unit that has run a few Pi 3Bs and two streaming sticks at one time with no trouble. My 4 has always been PoE. wolrah fucked around with this message at 22:42 on Oct 3, 2023 |
# ? Oct 3, 2023 22:40 |
|
If I were to consider using a Raspi for a home theatre setup, is that an actual good solution? Some considerations: I have a projector that is only 1080p, and probably won't be upgrading any time soon. HDMI. So this part is no problem. I will need to add a system of speakers. Ideally 5 around my place, along with a subwoofer. I have all the speakers, with the little automotive wire terminals. I also have a beefy amplifier with those terminal outputs, along with a ton of speaker wire. The amplifier can input HDMI, or some other formats I think. The main problem is that I really do not actually want to run wire everywhere. I feel like, given a month or two (and lack of other commitments), I could hack together an RF system with a little amplifier for each speaker, so surely someone has done this already. Anyway, I don't know the best to do this within my constraints (and cheap, ideally), and that might be out of scope for this thread! I also have an old Chromecast, which might be the better option, but I haven't played with it in a few years with which to see what kinds of things I can actually cast to it (random-rear end web video players, ideally). This post is rambling, I apologize.
|
# ? Oct 3, 2023 22:52 |
|
A Pi is fine for a source device, literally any Pi ever made will do 1080p without trouble and the 4 adds 4K. I used a bunch of Pi 3s running OpenELEC for years as as an upgrade from an OG Xbox running Kodi until I migrated to Plex a few years ago and it was great. I could have sworn there was a home theater thread but I can't find one so I guess the home audio thread would probably be a good place for your questions about wireless speakers.
|
# ? Oct 3, 2023 23:12 |
|
wolrah posted:If you're going rack mount there's always PoE, which also gains you the ability to remotely power cycle your Pis individually. I had considered POE, I have some open POE ports on my switch, but it requires buying a hat for each one, right? I'm trying to keep costs down since I don't really have any idea what I'm going to use these Pi's for anyway. I used to use them for a bunch of stuff, but ended up setting up a couple of old laptops as a home lab and everything runs on those in containers now. ante posted:If I were to consider using a Raspi for a home theatre setup, is that an actual good solution? lol, it's all good by me. The make vs buy decision can be tough sometimes. Is the pi4 8gb good enough for surfing around and watching youtube videos at 1080p? I'm currently running an old TV in my "lab" (spare room) using an ancient chromebook (Acer C720 I think? celeron processor) running Lubuntu and I'm curious whether a pi would be better in any way.
|
# ? Oct 3, 2023 23:16 |
|
ante posted:If I were to consider using a Raspi for a home theatre setup, is that an actual good solution? Unless you want to run a full-on computer through your projector (and are OK with getting max 720p on streaming services that use DRM), I'd definitely suggest the Chromecast option. Or get an Onn 4K Streaming Box from Walmart for $20 which does all the modern codecs you would ever want to stream (H.264, H.265, VP9, AV1), doesn't rely on a phone (Google TV is basically a stripped-down version of Android with a TV-focused interface) and should have apps for every major streaming service. It's basically the same as the $50 Chromecast With Google TV 4k except it has a slightly slower CPU and no support for Dolby Vision or Dolby Atmos, neither of which it sounds like apply to you.
|
# ? Oct 3, 2023 23:26 |
|
wolrah posted:I could have sworn there was a home theater thread but I can't find one so I guess the home audio thread would probably be a good place for your questions about wireless speakers. The HTPC Thread - Dont buy an HTPC The subtitle still applies
|
# ? Oct 4, 2023 01:14 |
|
Inept posted:The HTPC Thread - Dont buy an HTPC That subtitle is 100% right though, HTPCs are for people with very niche needs or too much time on their hands these days. wolrah fucked around with this message at 15:47 on Oct 4, 2023 |
# ? Oct 4, 2023 15:44 |
Cojawfee posted:Looks like that is an error with the wlan driver. sb hermit posted:you may want to consider calling journalctl to prune the logs so that you can be sure they get rotated and you actually save space (since deleting an open file will not get rid of it until the file descriptors to it get closed). Just wanted to pop back in to say that my fish temperature monitor has been running for days without issue now, thanks to these two posts. And with that sorted out, Klyith posted:A thing to consider setting up long term is log2ram, at least once you have everything else working and stable. Thanks!
|
|
# ? Oct 6, 2023 17:48 |
|
Maybe the RP5 finally has enough oomph to actually run PCSX2 on RetroPi or Mupen64+ without all the audio glitching.
|
# ? Oct 7, 2023 21:52 |
|
Does anyone know if it’s possible to tether an iPhone to a pi in order to get internet? I know I can use the iPhone as a WiFi hotspot but would prefer a wired connection in this instance
|
# ? Oct 8, 2023 04:04 |
|
It looks like the answer is yes, but you need to install some extra software: https://wiki.archlinux.org/title/IPhone_tethering
|
# ? Oct 8, 2023 04:16 |
|
Bad Munki posted:Just wanted to pop back in to say that my fish temperature monitor has been running for days without issue now, thanks to these two posts.
|
# ? Oct 8, 2023 04:37 |
|
Bad Munki posted:Just wanted to pop back in to say that my fish temperature monitor has been running for days without issue now, thanks to these two posts. If you're logging with systemd-journald only, there's a configuration to have it only log to ram. I set this up on my home box and I/O on the SD card went to almost nothing..
|
# ? Oct 8, 2023 04:47 |
|
Mr.Radar posted:It looks like the answer is yes, but you need to install some extra software: https://wiki.archlinux.org/title/IPhone_tethering Awesome, I’ll give this a try! lol, why is documentation always like this though: ”from the doc above which I’m grateful for” posted:
|
# ? Oct 8, 2023 05:29 |
|
|
# ? May 25, 2024 12:46 |
|
namlosh posted:Awesome, I’ll give this a try! Probably the author was tired of helping people for 6 back-and-forth exchanges, only to discover they hadn't plugged the drat thing in. Speaking from experience maintaining FLOSS.
|
# ? Oct 8, 2023 15:31 |