BETA - this is currently in a BETA phase. The Pi is setup is properly configured. Unclear if the 32/64 bit binaries were properly included from the original driver files.
Want to test them out and let us know?
This repo contains all the Sinden Lightgun Linux utilities for setup and configuration. After successfully running the setup scripts it will:
/opt/retropie/emulators/retroarch/overlays/
/home/pi/RetroPie/roms/ports/
/home/pi/SindenLightgunLinux/bin
udev
sinden-lightgun.rules
for auto detection
SindenLightgun-P2Start
utility in PORTS
This will download the latest version of the Sinden Lightgun utilities
cd /home/pi; \
git clone https://github.com/SindenLightgun/SindenLightgunLinux.git; \
cd SindenLightgunLinux; \
echo ""; \
VERSION=$(git symbolic-ref --short -q HEAD); echo "Current Version ${VERSION}"
Update the files of your current version:
cd /home/pi/SindenLightgunLinux
git pull
Re-run setup if there were Sinden utility changes. This should be able to be run anytime without negative affects.
./setup-retropie.sh
If you are a new install, you will be on the default branch of the repo, typically the most current. If you want to change the version of either a new install or an update to a newer version, you can grab all versions, list them, and change via:
cd /home/pi/SindenLightgunLinux
git fetch; git branch
git branch checkout VERSION_NAME
Configure Sinden Lightgun dependencies, utilities, and borders. These scripts will install/update the software as needed, but not touch an existing configuration file(s).
cd /home/pi/SindenLightgunLinux; \
chmod 755 *.sh; \
./setup-lightgun.sh; \
./setup-retropie.sh; \
If the set-up script does not determine your arch
properly (it should indicate this), you will need to manually copy the files over. Determine which architecture you are running on and perform the following command based on your arch.
cp -r arch/Pi-ARM/* bin/
cp -r arch/x86_32/* bin/
cp -r arch/x86_64/* bin/
You should now reboot to have EmulationStation include the Lightgun
Can be found here
LightgunMono.exe.lock
Lockfile ls /tmp/Light*
/home/pi/RetroPie/roms/ports/SindenLightgun-StopAll.sh
/home/pi/RetroPie/roms/ports/SindenLightgun-P1Start.sh
ls /tmp/Light*
With the gun plugged in run
cat /proc/bus/input/devices
This should output a list of devices, including 3 entries for Sinden Gun. One of the entries should be Name="SindenCameraE
and have a line that identifies the vendor/product/version. Those values should be
I: Bus=0003 Vendor=32e4 Product=9210 Version=0100
If they are not, the ID for your gun is different, and why the auto detect may not be working
You will need to change the values in /etc/udev/rules.d/99-sinden-lightgun.rules
to match your gun.
TODO if this is an actual bug, need to add a hook to NOT swap an updated file out.