New answers tagged

0

This gist contains what you need to build a RPi 4 kernel with KVM for Ubuntu. https://gist.github.com/rhtyd/dbb23adf5239ac098f9a1e7b2824121d


0

Read /boot/overlays/README for the up-to-date documentation, rather than old unreferenced posts. The Pi4 has a totally new peripheral module, and older documentation no longer is relevant. If it was me, I would leave BT alone and use one of the other 4 fully featured UART. See Raspberry Pi4 UART


0

check out https://jamesachambers.com/new-raspberry-pi-4-bootloader-usb-network-boot-guide/ .. i had the same issues but after applying quirks. I copy pasted that part here below. Fix (some) USB Adapter Problems Using Quirks Some of the very common adapters on the naughty list above (such as the Sabrent) can be made to work by using USB quirks to disable UAS ...


1

Generic Archive Installation worked for me in Raspberry Pi 4B 4GB. Actually I wanna install JFrog Artifactory Cpp CE for Conan repository support. It's very straight forward. Where there was the only issue is Java PermGen Memory Space. As Raspberry Pi 4B 4GB runs on lower memory. Where I have to replace the line number 15 of $JFROG_HOME/artifactory/bin/...


0

You doesn't installed the screen. How the display connects to the pi? Official raspberry touchscreen (ribbon cable):https://www.instructables.com/Raspberry-Pi-Touchscreen-Setup Hdmi: http://www.lcdwiki.com/7inch_HDMI_Display-B GPIO: https://www.circuitbasics.com/setup-lcd-touchscreen-raspberry-pi/


0

Is it the official pi touch screen? If yes, it sounds similar to: Raspberry Pi 2 7" touchscreen display white screen error The OP solved it by re-flashing the SD card and re-seating the connections and ribbon. You could check the card by plugging into another display.


1

hci0 refers to the physical Bluetooth adapter/radio in your system. If you connect a Bluetooth USB dongle to your RPi, then you would see hci1. e.g. pi@raspberrypi:~ $ bluetoothctl list Controller 00:02:5B:33:44:07 RPi_UART [default] Controller B8:27:EB:33:57:E0 SeeMe pi@raspberrypi:~ $ busctl tree 'org.bluez' └─/org └─/org/bluez ├─/org/bluez/hci0 ...


0

It is possible that an application is inserting the network block automagically to be sure that it is available. Wpa_supplicant does allow it with option update_config=1 in /etc/wpa_supplicant/wpa_supplicant.conf. Set this to update_config=0 and look if it helps.


1

First of all: if you want to run Python 3 scripts, then you must call python3. On default Raspberry Pi OS, calling python, uses version 2, which isn't able to execute python 3 scripts. Please correct the bash script with the python call. I assume it is running from the command line when logged in as user pi. Try to use a systemd service. Create a Unit file ...


0

I have a 75" LG TV with an Rpi4 box, the tearing was pretty awful (but I never saw this problem with my previous Rpi3 box.) Here is what I did, and followed is my configuration which seems to have done the trick. sudo apt-get install libgles2-mesa libgles2-mesa-dev xorg-dev Here's my config file [pi4] cpu_freq=1800 over_voltage=5 gpu_freq=700 [all] ...


0

I got a similar problem using an SSD M2 disk with an USB3 adapter. Using the original cable I had a lot of error in dmesg and the speed is about 8 MB/s! I tried another cable (heavier than the original, it was for an external 2.5'' disk) and the problem vanished. Last test via hdparm gave me 300 MB/s. If you can, try another cable. I believe, but need ...


0

Install these dependencies to resolve both the issue sudo apt install libindicate-dev libgdk-pixbuf2.0-dev libtag-extras-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libwxsqlite3-3.0-dev libwxbase3.0-dev build-essential git libcurl4-openssl-dev libdbus-glib-1-dev cmake libwxgtk-media3.0-dev gettext libwxgtk3.0 libjsoncpp-dev Build. Takes more ...


0

The suggested power supply voltage for all Pis is 5.1 volts. The recommended PSU current for the Pi4B is 3 amps (although bare-board usage may be as little as 0.6 amps). See Power Supply For the recommended current you will need 5.1 * 3 * 4 or 61.2 watts. Personally I'd just buy a bog standard PC power supply. You can easily find one which supplies more than ...


1

The typical fix for this is to add sleep to your cron item instead of in your script. It may not make any difference, but it's easy enough to try: @reboot sleep 30; /usr/pi_reboot/on_reboot.sh >> /tmp/log 2>&1 The Gtk warning suggests that it simply was not available at the stage in the boot process when cron tried to run your script. EDIT: ...


2

I don't use Ubuntu but as far as I know, resent versions use systemd. goldilocks noted in a comment: Most of the boot time is the userland OS. The kernel only does what it needs to do, which is service that userland. Compiling the kernel won't change any of that or the time it takes. If you want to reduce boot time, you need to consider what services are ...


1

Glad to hear that you were able to solve it with just reconfirming your WPA credentials. Sometimes you can spend hours debugging, only to find the solution was as simple as that!


0

You could simply add the bash command a bash executable and place it in /etc/init.d such as: #!/bin/bash sudo mount foo /dev/foo_bar


0

I have managed to get this partially working with an ultrawide screen (also 480x1920) so I think this may be the same one you are using. For reference I am using a PI3B. I put the following lines in my /boot/config.txt file: hdmi_timings=480 0 30 30 30 1920 0 6 6 6 0 0 0 60 0 55296000 8 hdmi_group=2 hdmi_mode=87 hdmi_drive=2 display_rotate=1 hdmi_force_mode=...


0

I thought, there is an internal pull up resistor that I could use but I read it wrong. Now it works following this sketch from https://www.elektronik-kompendium.de/sites/raspberry-pi/2006051.htm (it's german) Schalter=Button Eingang=Input


1

I ended up creating a docker image for this and the image can be found here https://hub.docker.com/r/spagolu9/artifactory-oss-raspberrypi


0

Your dtoverlay value looks wrong in your /boot/config.txt file. Follow this guide: http://www.epyon.be/2019/01/12/raspberry-pi-3-b-with-kedei-3-5-inch-480x320-tf-lcd-display/#comment-161327 PS: You will have to do this every time you do a kernel version upgrade so that the kernel links are re-established.


0

I experienced a lot of problems starting Ubuntu from SSD. My solution is editing cmdline.txt after using the imager. The SSD is then FAT formatted so that file can be easy edited. Adding usb-storage.quirks=<idVendor>:<idProduct>:u(space) at the beginning of that file solved all my problems. Not all SSD's are recognised. You can find those numbers ...


2

With another setup I have found that the image versions of the Raspberry Pi OS come with an unstable firmware for the built-in WiFi device. I don't know if it is the same issue than with your problem but it's worth a try to downgrade to a more stable firmware. For further information look at my bug report at WiFi firmware brcmfmac crashes when using virtual ...


0

I suggest you try using my pigpio library. It will give far more accurate timings. Sample Python code 433MHz Keyfob RX/TX Classes to send and receive 433MHz wireless keyfob codes. These keyfobs are widely used for remote control of devices. http://abyz.me.uk/rpi/pigpio/examples.html#Python__433_py The class contains a test __main__ program (having a test ...


1

I feel the article you followed is not a particularly good one. The following /etc/fstab entry always works for me: LABEL=PASSPORT2TB /mnt/Passport2TB ext4 rw,user,nofail 0 0 Of course you will need to substitute the LABEL that identifies your USB drive, and create a mount point that suits you better than /mnt/Passport2TB. If your drive is formatted in ...


1

You can typically simply connect the PWM input to a GPIO providing a 25kHz PWM signal. I don't agree with the other answers, which all mention to keep Vcc within the logic level of the Pi, which from my experience is not neccessary! Fan controllers in 4-pin fans have an open collector input for PWM control and thus are made to be controlled by typical logic ...


1

Have you tried the newer tutorial using the official launcher: https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=284448


0

I solved (worked around) this problem by attaching the Samsung T5 drive to one of the USB2 ports. I'm assuming this is a kernel problem and will try the faster USB3 port again on later updates.


3

To add to Shivang's answer: I've used a "spinning disk" USB drive powered from one of the USB3 ports on my RPi 4B for over a year now, and on a 3B for years before that. It runs 24x7, and I've not had any power-related issues. The USB ports with the "blue tongue" are USB3, and you will get a little better data throughput on those. Wrt ...


3

To answer your questions sequentially: If you are using a portable external hard drive from a reputed manufacturer, the enclosure should have vibration pads inside to protect the drive from shocks and vibrations it would incur from regular usage. The Pi board itself doesn't generate any vibrations and a fan attached to it wouldn't be able to generate enough ...


1

Linux is not a real-time operating system. You will not be able to achieve consistent sampling times using the standard Linux environment. I have used DMA bit banging to get accurately timed SPI samples. By using bit-banging it is possible to get 12 bit ADC samples from one or more MCP3202s simultaneously. Rates of 25ksps per ADC can be achieved. ...


0

The industrial solution to this is to use a blade, such as a Bitscope Blade


2

Allocate two framebuffers from config.txt max_framebuffers=2 Tell Xorg to use only one screen: create xorg.conf with sudo xorg -configure and edit it to keep only the first device. If Xorg is not using the second screen anyway, skip this step. Run omxplayer on the second screen with --display 7 as described here.


2

Yes, if you find a fan which supports 3.3V levels on speed control pin, there is no reason it wouldn't work from a GPIO. I'd expect 5V fans also work in this way if you power them with 3.3V, albeit with a reduced max speed. Personally, I invested some time into finding a simple 2-pin fan which is really quiet, and simply keep it running all the time. Pi 4 ...


1

I use a repurposed PSU from a defunct desktop PC, easy to do and with plenty of 'grunt' for your cluster. Loads of guides online on how to do it and best of all very cheap if you dismantle a scrap PC.


2

90W / 9 devices is 10W per device. That's about enough for a Pi 4 alone, but those 18 USB sticks will also need some power, perhaps another 20W-30W. And you'll want to have some extra power reserved for peak consumption, losses in the cables and the hub, etc. Additionally, looking at similar hubs on my local Amazon, I see the following line in the ...


0

Your micro SD card is dead. It could have been killed by over-writing (ie, swap) or heat, or simply by failure. The card should not be used again for data. There is some small chance you can recover data by putting the card into a reader and another device that understands the filesystems, so a linux desktop. For completeness, here are the kernel messages ...


2

Erm,... Yes you can, but you shouldn't. There are a few 3V fans that fit that description, even one by some Chinese firm that could be powered by the GPIO pin. Do not expect it to create a significant airflow though. If you're afraid of soldering, there is a PWM controlled fan hat. Or you can use female jumper wires. ---EDIT--- There are a number of four ...


2

Yes, if you are using the latest Raspberry Pi OS, fully updated. It will work in a Pi4.


3

Because the connection works with your laptop (green ethernet LED is on) then the problem must be the router. Check its setting on the port to the RasPi. The Raspberry Pi 4B supports up to 1 GBit. Maybe that's a problem for your router? Try another port. Check if the port is set to auto-negotiation. Try to set its speed to fix 100 MBit. The RasPi should ...


1

I think I had got the answer. It seems when the RPI4 is working with HDMI monitor plugged in it produces noise. The noise is around 2.4 GHz WiFi's channel 1. The solution is to switch your router to higher channel. I had tested that with my RPI 4, before few minutes and it works. It seems also that it is known issue for which the company is informed. I had ...


0

Have you thought of your bandwith-limitations? 30Mbps = 3.75 MB/s That means your piVPN may only provide that speed as download to your devices. Then add encryption processes, latency and poor mobile connections and you are nearly done. I would recommend to first do some speed-checks e.g. on speedtest.net and check out different conditions on different ...


1

Apart from the possible corruption of the image due to using win32diskimager rather than the recommended tool the problem is probably Ethernet cabling. The Pi4 has a Gigabit interface which requires a properly wired Gigabit 4 pair cable. You have provided insufficient information to give a definitive answer.


0

On your workstation pc you can now run rpi-imager which has 64-bit OS options: sudo snap-install rpi-imager rpi-imager It will provide a graphic environment from which you can select: e.g. Ubuntu Server 20.04.1 LTS (RPi 3/4) [ 64-bit server OS with long-term support for arm64 architectures] option to install 64-bit Ubuntu.


0

Download the arm-architecture (for Raspberry Pi chip) as .deb from here and run the installer (with sudo) cd ~/Downloads wget https://download.mediathekview.de/stabil/MediathekView-latest-linux-armhf.deb dpkg -i MediathekView-latest-linux-armhf.deb Check if the programm was installed with ls /opt/MediathekView. It should print the content of the directory: ...


0

Different possibilities... Pi4J V1 with and upgraded version of WiringPi (v2.52), see my answer on Pi4 GPIO Control with Java Pi4J V2 which uses PiGpio instead of WiringPi, but is still a work-in-progress, see https://v2.pi4j.com/ If you need limited GPIO functionality you can use terminal commands or even a Python script included in your project. All this ...


2

Your code and breadboard wiring looks fine to me. Your Python code works on my Pi. I suspect your ribbon cable is the wrong way round either at the Pi end or the breadboard end. Your T Cobbler board could also be faulty.


0

The only way to "fix" this is to unmount properly, and preferably use a different USB port. This is just the way the automount "feature" works - it has no way of knowing if this is the same drive or another. The best (and traditional) way of automounting is to create a etc/fstab entry, identifying the drive - preferably by UUID. My etc/...


2

I assume you are login to the default Graphical User Interface LXDE of the Raspberry Pi OS. what I'm looking to do is have a normal terminal open once I log in and then enter these commands the bash script ~/.profile is executed on login, so you can append this line at the end: lxterminal --working-directory=/home/pi/Downloads/pi-weather-station --command='...


Top 50 recent answers are included