Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

1

I have solved the issue described. The /media/pi folder was owned by root, so presumably subfolders could not be created. I did: sudo chown -R pi:pi /media/pi and all works correctly.


2

I solved it by switching off my VPN and using a different USB cable; either one of these could have fixed it. I hope this solves any issues others may have.


0

The error message says it all: Volume was not properly unmounted. Some data may be corrupt. Please run fsck. Go ahead and run sudo fsck -a /dev/sdb1. Another option is to plug the thumb drive in a Windows PC and go to Drive context menu -> Properties -> Tools -> Check.


0

I was able to get it working adding some lines to the modprobe: sudo modprobe g_mass_storage file=/piusb.bin stall=0 ro=0 removable=1\ idVendor=0x0781 idProduct=0x5572 bcdDevice=0x0126 iManufacturer="SanDisk"\ iProduct="Cruzer Switch" iSerialNumber="4C597515973308202393" I am able to mount it and share it via SAMBA, But there are conflicts between the ...


2

6 feet should be doable for I2C with decent cable, serial over USB (you can use a hub on RPI end for more ports) should also work. However, I recommend looking into network-enabled (MQTT and alike) communication; you could replace your arduino with things like ESP8266: it may take little learning to get going but they are cheap and the benefits of getting ...


0

Assume you are using the latest Raspbian. The answer of your first question is yes. And it is the red one. Your second question is not clear. But you can safe remove your device with the safe remove icon in the tray.A GUI can not corrupt your stick , but a power issue can.


2

Unless you have changed your router's IP address, neither of these look like a normal router address. 192.168.0.1 or 192.168.1.1 are more common: Google your router's name and "default IP address" to find out what it should be, then browse to that IP it to check it hasn't changed. If it really is 192.168.88.44 then your RPi static address will need to be ...


2

If it works when you mount it manually you are probably missing the auto flag in the fstab configuration. You should also use UUID instead of the device name (eg. /dev/sdb1). This way you won't have problems when using more than one USB drive. (comment - Can't check any of this because you didn't include the line you've entered in fstab)


3

Try the usbmount package. sudo apt-get install usbmount Read about it at: https://www.raspberrypi.org/forums/viewtopic.php?t=205016 Worked for me. Regards, Jon G


1

From Pi Zero as HID: How to control PC Mouse from Pi Zero through USB? and Zero GadgetFS?, it looks like you must add dtoverlay=dwc2 into /boot/config.txt and then restart. Edit: @The Great Rambler below suggets that the libcomposite kernel module shouldn't be loaded. Based on searching for libcomposite, it also looks like these posts on Composite Gadgets ...


2

Looks like you need to send a '?A [cc]' command then read the response. Try the following: import time import serial ser = serial.Serial( port = '/dev/ttyACM0', baudrate = 9600, parity = serial.PARITY_NONE, stopbits = serial.STOPBITS_ONE, bytesize = serial.EIGHTBITS, timeout = 1 ) motorChannel = 1 command = '?A '+str(motorChannel)...


0

you can also use ASIX chips, such as AX88178 / AX88772B


2

I can't help with Pandora or Retropie, but I do believe I have a workable solution for your heat issues. I too have an RPi 4 and I immediately noticed that it ran warm. Actually, it idled warm and ran hot. I waited for firmware updates to appear and I installed heat sinks. The heat sinks lowered the idle temp, but had little effect on run temps. The ...


1

For anybody interested in the solution to this problem when two devices have the same snd_ identifier: In alsa-base.conf, use the vid and pid attributes on options (they both accept comma-delimited array items, generally 0x1234 format) You can get the vendor ID and Product ID of your device using lsusb, then set the device order normally in alsa-base.conf


Top 50 recent answers are included