This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Logically eject and re-enable driver for Playstation Eye on a Pi running Raspbian Jessie. | |
# This is necessary because on boot, the microphone on the Eye will appear in `lsusb` and | |
# `arecord -l`, but will not function correctly (error "audio open error: Device or | |
# resource busy" or error "read error: Input/output error"). | |
# Can read about others having this problem here https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=14903 | |
# and here https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=15851&p=160394#p160394 | |
# point a cronjob to this file, using the special @reboot nickname to run at startup. |