Last active
August 29, 2015 14:11
-
-
Save sphaero/9d85469ad86048719d4b to your computer and use it in GitHub Desktop.
Start UAE from Kodi on the Raspberry PI (RaspBMC)
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 | |
# | |
# Start this script through the Advanced Launcher Addon | |
# | |
# This script fixes not getting a display after stopping Kodi | |
# After quitting UAE it will return to Kodi | |
# | |
# Expecting UAE4All in /home/pi/amiga/uae4all | |
# | |
# Author: Arnaud Loonstra <arnaud@sphaero.org> | |
# | |
pgrep xbmc && sudo initctl stop xbmc | |
# disable display otherwise we won't see uae | |
tvservice -o | |
# reset usb devices | |
sudo sh -c "echo 0 > /sys/devices/platform/bcm2708_usb/buspower" | |
sleep 1 | |
# enable display | |
tvservice -p | |
# enable usb | |
sudo sh -c "echo 1 > /sys/devices/platform/bcm2708_usb/buspower" | |
# enable alsa audio | |
lsmod | grep snd_bcm2835 || sudo modprobe snd_bcm2835 | |
# jack audio uncomment to leave auto | |
sudo amixer cset numid=3 1 | |
cd /home/pi/amiga/uae4all | |
sudo LD_LIBRARY_PATH="./lib" chrt -f 50 ./uae4all $@ &> /tmp/uae.log | |
cd - | |
pgrep xbmc || sudo initctl start xbmc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment