First off, you shouldn't have to do it manually. If you delete it (remember, you have to "sudo rm" to do so), then when you restart emulationstation, it will not have anything to reference and will make you setup a new configuration.Cia91 wrote:Hi, i'm having some problem while configuring emulationstation.
Basically i want to configure the keybord with some different input, for example i want to use A instead of ENTER.
I've tried to remove es_input.cfg, but it doesn't ask for a configuration.
How can i change it manually?
Code: Select all
<keyboard>
Stuff here
</keyboard>
Code: Select all
<?xml version="1.0"?>
<inputList>
<inputConfig type="keyboard">
<input name="a" type="key" id="13" value="1" />
<input name="b" type="key" id="27" value="1" />
<input name="down" type="key" id="274" value="1" />
<input name="left" type="key" id="276" value="1" />
<input name="menu" type="key" id="282" value="1" />
<input name="pagedown" type="key" id="281" value="1" />
<input name="pageup" type="key" id="280" value="1" />
<input name="right" type="key" id="275" value="1" />
<input name="select" type="key" id="283" value="1" />
<input name="up" type="key" id="273" value="1" />
</inputConfig>
</inputList>
Code: Select all
CC gfx/context/vc_egl_ctx.c
gfx/context/vc_egl_ctx.c: In function ‘gfx_ctx_destroy’:
gfx/context/vc_egl_ctx.c:287:10: error: too few arguments to function ‘gfx_ctx_bind_api’
gfx/context/vc_egl_ctx.c:246:13: note: declared here
gfx/context/vc_egl_ctx.c:301:10: error: too few arguments to function ‘gfx_ctx_bind_api’
gfx/context/vc_egl_ctx.c:246:13: note: declared here
gfx/context/vc_egl_ctx.c:313:7: error: too few arguments to function ‘gfx_ctx_bind_api’
gfx/context/vc_egl_ctx.c:246:13: note: declared here
gfx/context/vc_egl_ctx.c: In function ‘gfx_ctx_init_egl_image_buffer’:
gfx/context/vc_egl_ctx.c:408:4: error: too few arguments to function ‘gfx_ctx_bind_api’
gfx/context/vc_egl_ctx.c:246:13: note: declared here
gfx/context/vc_egl_ctx.c:427:4: error: too few arguments to function ‘gfx_ctx_bind_api’
gfx/context/vc_egl_ctx.c:246:13: note: declared here
gfx/context/vc_egl_ctx.c: In function ‘gfx_ctx_write_egl_image’:
gfx/context/vc_egl_ctx.c:456:4: error: too few arguments to function ‘gfx_ctx_bind_api’
gfx/context/vc_egl_ctx.c:246:13: note: declared here
gfx/context/vc_egl_ctx.c: At top level:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined [enabled by default]
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined [enabled by default]
make: *** [gfx/context/vc_egl_ctx.o] Error 1
I am not 100% sure about the cause of this compilation error. However, if I use the new official RetroArch repository at git://github.com/libretro/RetroArch.git it compiles without errors.petrockblog wrote:The recent version of RetroArch leads to this error during compilation:Does someone have an idea how to solve this issue?Code: Select all
CC gfx/context/vc_egl_ctx.c gfx/context/vc_egl_ctx.c: In function ‘gfx_ctx_destroy’: gfx/context/vc_egl_ctx.c:287:10: error: too few arguments to function ‘gfx_ctx_bind_api’ gfx/context/vc_egl_ctx.c:246:13: note: declared here gfx/context/vc_egl_ctx.c:301:10: error: too few arguments to function ‘gfx_ctx_bind_api’ gfx/context/vc_egl_ctx.c:246:13: note: declared here gfx/context/vc_egl_ctx.c:313:7: error: too few arguments to function ‘gfx_ctx_bind_api’ gfx/context/vc_egl_ctx.c:246:13: note: declared here gfx/context/vc_egl_ctx.c: In function ‘gfx_ctx_init_egl_image_buffer’: gfx/context/vc_egl_ctx.c:408:4: error: too few arguments to function ‘gfx_ctx_bind_api’ gfx/context/vc_egl_ctx.c:246:13: note: declared here gfx/context/vc_egl_ctx.c:427:4: error: too few arguments to function ‘gfx_ctx_bind_api’ gfx/context/vc_egl_ctx.c:246:13: note: declared here gfx/context/vc_egl_ctx.c: In function ‘gfx_ctx_write_egl_image’: gfx/context/vc_egl_ctx.c:456:4: error: too few arguments to function ‘gfx_ctx_bind_api’ gfx/context/vc_egl_ctx.c:246:13: note: declared here gfx/context/vc_egl_ctx.c: At top level: /opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined [enabled by default] /opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined [enabled by default] make: *** [gfx/context/vc_egl_ctx.o] Error 1
I'm adding %ROM% to the end of the command in es_systems.cfgAloshi wrote:What is your launch command? If I recall correctly MAME usually uses "rom names" instead of the path to a ROM (I added a tag that does this a while back, "%BASENAME%", for someone who wanted to use it with AdvanceMAME).
Code: Select all
arm_freq=900
core_freq=420
gpu_freq=280
sdram_freq=480
force_turbo=0
gpu_mem=128
Code: Select all
hdmi_group=1
hdmi_mode=4
overscan_scale=1
overscan_left=-20
overscan_right=-22
overscan_top=-30
overscan_bottom=-30
Code: Select all
# Change the governor to ondemand and set scaling parameters
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo -n 75 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo -n 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
Code: Select all
DESCNAME=Sega Mega Drive / Genesis
NAME=megadrive
PATH=/home/pi/RetroPie/roms/megadrive
EXTENSION=.smd .SMD .bin .BIN
COMMAND=/home/pi/RetroPie/supplementary/runcommand/runcommand.sh 2 "/home/pi/RetroPie/emulators/RetroArch/installdir/bin/retroarch -L /home/pi/RetroPie/emulatorcores/picodrive/picodrive_libretro.so --config /home/pi/RetroPie/configs/all/retroarch.cfg --appendconfig /home/pi/RetroPie/configs/megadrive/retroarch.cfg %ROM%"
PLATFORMID=18
Code: Select all
DESCNAME=Sony Playstation 1
NAME=psx
PATH=/home/pi/RetroPie/roms/psx
EXTENSION=.img .IMG .7z .7Z .pbp .PBP .bin .BIN
COMMAND=/home/pi/RetroPie/supplementary/runcommand/runcommand.sh 2 "/home/pi/RetroPie/emulators/RetroArch/installdir/bin/retroarch -L /home/pi/RetroPie/emulatorcores/pcsx_rearmed/libretro.so --config /home/pi/RetroPie/configs/all/rettroarch.cfg --appendconfig /home/pi/RetroPie/configs/psx/retroarch.cfg %ROM%"
PLATFORMID=10
Code: Select all
DESCNAME=MAME
NAME=mame
PATH=/home/pi/RetroPie/roms/mame
EXTENSION=.zip .ZIP
COMMAND=/home/pi/RetroPie/emulators/mame4all-pi/rungame.sh %ROM%
PLATFORMID=23
Code: Select all
#!/bin/bash
rom=$1
pushd /home/pi/RetroPie/emulators/mame4all-pi
for i in `echo ${rom} | tr '/' '\n'` ; do
str=${i}
done
IFS="." ; name=($str)
./mame ${name[0]}
popd
Code: Select all
mkdir /home/pi/RetroPie/emulators/mame4all-pi/cfg
mkdir /home/pi/RetroPie/emulators/mame4all-pi/hi
mkdir /home/pi/RetroPie/emulators/mame4all-pi/sta
Code: Select all
samplerate=22050
rompath=/home/pi/RetroPie/roms/mame
Code: Select all
[Audio-RPI]
DEFAULT_FREQUENCY = 10000
[Core]
R4300Emulator = 2
[Video-General]
Fullscreen = True
ScreenWidth = 640
ScreenHeight = 480
VerticalSync = False
[Video-Rice]
ScreenUpdateSetting = 6
SkipFrame = True
#1:2345:respawn:/sbin/getty --noclear 38400 tty1
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
Code: Select all
./_startup.sh
Code: Select all
#!/bin/sh
PROG='emulationstation'
if ps ax | grep -v grep | grep $PROG > /dev/null
then
echo "EmulationStation is already running"
else
/usr/bin/emulationstation
#echo "NOT running"
fi
Thanks a lot for your detailed post above! Some of the details will be added to the RetroPie Setup Script so that others will benefit from that as wellRidrok wrote:Ok, thank-you to both of you.
Retroarch-setup did pull the November 17th version of Mupen64plus-Rpi from ric_rpi git repository, then I think I have to pull the November 19th commits and compile it again
Ridrok
Code: Select all
~/_startup.sh
Code: Select all
#!/bin/sh
if ! [ -n "$SSH_CLIENT" ] && ! [ -n "$SSH_TTY" ]
then
PROG='emulationstation'
if ps ax | grep -v grep | grep $PROG > /dev/null
then
echo "EmulationStation is already running"
else
/usr/bin/emulationstation
fi
fi
Code: Select all
f = fopen(carthw_cfg, "r");
if (f == NULL)
f = fopen("pico/carthw.cfg", "r");
if (f == NULL) // added
f = fopen("/home/pi/RetroPie/emulatorcores/picodrive/pico/carthw.cfg", "r"); // added
if (f == NULL)
elprintf(EL_STATUS, "couldn't open carthw.cfg!");
MIDItheKID wrote:Does anybody know if the retroarch.cfg accepts inputs from the GPIO pins? If it does not, is there something I could add to the retroarch.cfg to set it up to allow input from the GPIO pins?
Maybe something like:
GPIO.setup(13, GPIO.IN)
input_exit_emulator_btn = GPIO.input(13, True)
Theoretically making it so if I trigger GPIO13, it will return to the emulator screen in EmulationStation. Basically what i'm trying to do here is make an external "reset" button for the emulator where I can mount a momentary push button that will run the "input_exit_emulator_btn" command.