Most Popular

1500 questions
14
votes
5 answers

Where is the USB2 OTG port on the RPi 4 Model B located?

According to this answer the Raspberry Pi 4 Model B has a total of five USB ports (two USB3 host, two USB2 host, one USB2 OTG). Where is the fifth USB2 OTG port located and how can I use it? Can I use it with OTG Gadget mode?
Ingo
  • 42,107
  • 20
  • 85
  • 197
13
votes
5 answers

Rpi freezes every now and then, how to fix it with a watchdog?

I'm building a system with a raspberry pi located in a very remote area connected to internet with an internet stick. The tests are promising so far but the pi freezes every here and then and I'm not able to connect to the pi anymore. Because I…
Jurudocs
  • 233
  • 1
  • 2
  • 6
13
votes
2 answers

Forgot password for username pi

I need to authenticate so that I can use the VNC Server and Viewer and be able to access the Pi's screen from another computer. When I download the VNC Server I have to authenticate and enter a password for the username "pi" . The password is not…
xoani
  • 305
  • 1
  • 4
  • 8
13
votes
9 answers

Static IP Failing for wlan0

I am currently trying to set up my Raspberry Pi as an Access Point using hostapd using the following directions: RPI Wireless Hotspot Unfortunately, my static IP Address refuses to set at startup. Below is the contents of my…
Justin Niessner
  • 231
  • 1
  • 2
  • 5
13
votes
3 answers

HDD without external power is working. Is this dangerous?

I have connected a 2,5" HDD to my Raspberry Pi directly and it works. The only one question I have - Can my HDD/RPi be damaged? (When I use the HDD without powered usb hub - Are there any risks?)
cupakob
  • 1,027
  • 3
  • 13
  • 17
13
votes
1 answer

File Manager instantly closes when opened

I am running Raspbian on my Pi 2 and am currently remoted in using VNC Viewer - for some reason, whenever I try to use File Manager (through the Taskbar or otherwise) the window will open, then auto close, and the desktop will flicker momentarily.…
secondubly
  • 283
  • 1
  • 3
  • 7
13
votes
1 answer

Commands for using cec-client

I have the cec-client and libcec working on my Raspberry Pi. I would like to use it for more than just turning on and off the television, I would like to be able to query the other devices for their system information. Then maybe control them…
GrandAdmiral
  • 603
  • 3
  • 8
  • 16
13
votes
3 answers

Learning Linux driver development with Raspberry Pi

I'd like to write a Linux device driver for some real hardware device. What Raspberry Pi peripherals are a good fit? Basically I need the following: It must be small enough for a beginner (few month at most, better few weeks). Datasheet must be…
user8976
13
votes
2 answers

Why does python run relatively slowly?

I've been benchmarking the Pi on some of my simulation codes, relative to a couple of laptops I have. My codes tend to be floating point intensive, so I've been using Raspbian (which turns out to be much faster) due to its hard-float support. I have…
Darren Wilkinson
  • 2,912
  • 4
  • 26
  • 27
13
votes
1 answer

NFS vs Samba shares

So I'm setting up a NAS server with my Raspberry-Pi, and I'm trying to figure out what type of file sharing I want to implement. Between NFS and Samba shares, I've read that NFS is faster than Samba, however Samba is easier to set up on Windows. My…
joaocandre
  • 369
  • 2
  • 3
  • 6
13
votes
1 answer

Zero-crossing activated relay

How could I go about programming a switch (based on solid-state relay or a triac) that triggers on zero-crossing power? For these not familiar with the subject: Switch 230V power on, when the sine wave of the power line crosses zero - the result is…
SF.
  • 920
  • 1
  • 8
  • 21
13
votes
2 answers

Where is the rest of my sd card?

I'm using a 4GB SD card, formatted from a Windows PC with the Debian image. Here's the output of df -h: Filesystem Size Used Avail Use% Mounted on tmpfs 94M 0 94M 0% /lib/init/rw udev 10M 156K …
Tom Medley
  • 4,089
  • 8
  • 31
  • 46
13
votes
3 answers

I completely filled up my SD card - have I broken my Raspberry Pi?

I was downloading a file while connecting over ssh using wget. The download failed: Cannot write to `serviio-0.6.2-linux.tar.gz' (No space left on device). pi@raspberrypi:~$ Write failed: Connection reset by peer I can no longer communicate with…
Tom Medley
  • 4,089
  • 8
  • 31
  • 46
13
votes
2 answers

Can you transfer data through the microUSB?

The Raspberry Pi A & B are powered through the microUSB port. If the Raspberry Pi is plugged into a computer instead of a power transformer, could you send data through that connection? I know iPhones and iPods have a similar approach where you can…
cspirou
  • 387
  • 1
  • 5
  • 11
13
votes
4 answers

Meaning of cmd param in write_i2c_block_data

I am testing i2c communication between Pi and Arduino. The doc says: write_i2c_block_data(addr,cmd,vals) Block Write transaction. int addr,char cmd,long[] None I have this test: On Pi: import smbus bus =…
Gus Smith
  • 133
  • 1
  • 1
  • 5