[RC3] Configuration GPIO
-
Pour ma part j'avais le même soucis de non reconnaissance du GPIO...
Je l'activais par Recalbox Manager mais visiblement ce n'était pas reconnu en ON...
Apres plusieurs essais et des passages de l'ancienne version (GPIO fonctionnel) à la RC (2 pour moi lors de ce problème), de OFF/ON sur Recalbox Manager, ça a finalement fonctionné...
Ensuite j'ai fait comme sur tes photos pour configuration et choix du GPIO/player
Par contre je n'ai pas compris pourquoi ça ne reconnaissait pas le GPIO! Ni ce qui a résolu le problème... -
@GDEHON peut être un petit soucis d'enregistrement du
recalbox.conf
. Il me semble que sur la RC2 j'ai été obligé de l'activé 2x.
par contre je passe toujours par ssh jamais par l'interface web -
@ian57
l archive de support de virusman indique que les gpio sont activées -
oui tout est bon mais si je mets pas le inputconfig de @GDEHON je ne vois pas les 3 manettes , la sans rien changer je vois une manette connecter
-
@ViRuS-MaN peux tu poster le inputconfig de @GDEHON stp;;
pour que tu puisse comparer voici des eléments. c'est ce que j'ai sur ma config
dmesg
[ 5.681446] mk_arcade_joystick_rpi: loading out-of-tree module taints kernel. [ 5.682964] mk_arcade_joystick_rpi: pad type : 1 [ 5.682976] mk_arcade_joystick_rpi: pad type : 1 [ 5.682994] GPIO = 4 [ 5.682997] GPIO = 17 [ 5.682999] GPIO = 27 [ 5.683001] GPIO = 22 [ 5.683005] GPIO = 10 [ 5.683007] GPIO = 9 [ 5.683009] GPIO = 25 [ 5.683011] GPIO = 24 [ 5.683013] GPIO = 23 [ 5.683015] GPIO = 18 [ 5.683018] GPIO = 15 [ 5.683021] GPIO = 14 [ 5.683024] GPIO = 2 [ 5.683048] GPIO configured for pad0 [ 5.683607] input: GPIO Controller 1 as /devices/virtual/input/input1 [ 5.683883] mk_arcade_joystick_rpi: pad type : 2 [ 5.683885] mk_arcade_joystick_rpi: pad type : 2 [ 5.683898] GPIO = 11 [ 5.683901] GPIO = 5 [ 5.683903] GPIO = 6 [ 5.683905] GPIO = 13 [ 5.683907] GPIO = 19 [ 5.683910] GPIO = 26 [ 5.683912] GPIO = 21 [ 5.683915] GPIO = 20 [ 5.683917] GPIO = 16 [ 5.683919] GPIO = 12 [ 5.683921] GPIO = 7 [ 5.683923] GPIO = 8 [ 5.683925] GPIO = 3 [ 5.683948] GPIO configured for pad1 [ 5.685031] input: GPIO Controller 2 as /devices/virtual/input/input2
es_log
[2019/04/10 09:37:45.028] (INFO ) : Added unconfigured joystick GPIO Controller 1 (GUID: 15000000010000000100000000010000, instance ID: 0, device index: 0). [2019/04/10 09:37:45.030] (INFO ) : Added unconfigured joystick GPIO Controller 2 (GUID: 15000000010000000200000000010000, instance ID: 1, device index: 1).
es_input.cfg
<inputConfig type="joystick" deviceName="GPIO Controller 2" deviceGUID="15000000010000000200000000010000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="9"> <input name="a" type="button" id="0" value="1" code="304" /> <input name="b" type="button" id="1" value="1" code="305" /> <input name="down" type="axis" id="1" value="1" code="1" /> <input name="hotkey" type="button" id="8" value="1" code="316" /> <input name="left" type="axis" id="0" value="-1" code="0" /> <input name="pagedown" type="button" id="5" value="1" code="311" /> <input name="pageup" type="button" id="4" value="1" code="310" /> <input name="right" type="axis" id="0" value="1" code="0" /> <input name="select" type="button" id="6" value="1" code="314" /> <input name="start" type="button" id="7" value="1" code="315" /> <input name="up" type="axis" id="1" value="-1" code="1" /> <input name="x" type="button" id="2" value="1" code="307" /> <input name="y" type="button" id="3" value="1" code="308" /> </inputConfig> <inputConfig type="joystick" deviceName="DragonRise Inc. Generic USB Joystick " deviceGUID="03000000790000000600000010010000" deviceNbAxes="5" deviceNbHats="1" deviceNbBu ttons="12"> <input name="a" type="button" id="1" value="1" code="289" /> <input name="b" type="button" id="2" value="1" code="290" /> <input name="down" type="hat" id="0" value="4" code="16" /> <input name="hotkey" type="button" id="8" value="1" code="296" /> <input name="joystick1left" type="axis" id="0" value="-1" code="0" /> <input name="joystick1up" type="axis" id="1" value="-1" code="1" /> <input name="joystick2left" type="axis" id="3" value="-1" code="3" /> <input name="joystick2up" type="axis" id="4" value="-1" code="5" /> <input name="l2" type="button" id="6" value="1" code="294" /> <input name="left" type="hat" id="0" value="8" code="16" /> <input name="pagedown" type="button" id="5" value="1" code="293" /> <input name="pageup" type="button" id="4" value="1" code="292" /> <input name="r2" type="button" id="7" value="1" code="295" /> <input name="right" type="hat" id="0" value="2" code="16" /> <input name="select" type="button" id="8" value="1" code="296" /> <input name="start" type="button" id="9" value="1" code="297" /> <input name="up" type="hat" id="0" value="1" code="16" /> <input name="x" type="button" id="0" value="1" code="288" /> <input name="y" type="button" id="3" value="1" code="291" /> </inputConfig> <inputConfig type="joystick" deviceName="GPIO Controller 1" deviceGUID="15000000010000000100000000010000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="9"> <input name="a" type="button" id="0" value="1" code="304" /> <input name="b" type="button" id="1" value="1" code="305" /> <input name="down" type="axis" id="1" value="1" code="1" /> <input name="hotkey" type="button" id="8" value="1" code="316" /> <input name="left" type="axis" id="0" value="-1" code="0" /> <input name="pagedown" type="button" id="5" value="1" code="311" /> <input name="pageup" type="button" id="4" value="1" code="310" /> <input name="right" type="axis" id="0" value="1" code="0" /> <input name="select" type="button" id="6" value="1" code="314" /> <input name="start" type="button" id="7" value="1" code="315" /> <input name="up" type="axis" id="1" value="-1" code="1" /> <input name="x" type="button" id="2" value="1" code="307" /> <input name="y" type="button" id="3" value="1" code="308" /> </inputConfig>
ev_test
# evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: CHICONY HP Basic USB Keyboard /dev/input/event1: GPIO Controller 1 /dev/input/event2: GPIO Controller 2 /dev/input/event3: DragonRise Inc. Generic USB Joystick Select the device event number [0-3]: 1 Input driver version is 1.0.1 Input device ID: bus 0x15 vendor 0x1 product 0x1 version 0x100 Input device name: "GPIO Controller 1" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 304 (BTN_SOUTH) Event code 305 (BTN_EAST) Event code 307 (BTN_NORTH) Event code 308 (BTN_WEST) Event code 310 (BTN_TL) Event code 311 (BTN_TR) Event code 314 (BTN_SELECT) Event code 315 (BTN_START) Event code 316 (BTN_MODE) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 0 Min -1 Max 1 Event code 1 (ABS_Y) Value 0 Min -1 Max 1 Properties: Testing ... (interrupt to exit) Event: time 1554895427.113731, type 3 (EV_ABS), code 1 (ABS_Y), value -1 Event: time 1554895427.113731, -------------- SYN_REPORT ------------ Event: time 1554895427.233746, type 3 (EV_ABS), code 1 (ABS_Y), value 0 Event: time 1554895427.233746, -------------- SYN_REPORT ------------ Event: time 1554895427.593773, type 3 (EV_ABS), code 1 (ABS_Y), value 1 Event: time 1554895427.593773, -------------- SYN_REPORT ------------ Event: time 1554895427.693787, type 3 (EV_ABS), code 1 (ABS_Y), value 0 Event: time 1554895427.693787, -------------- SYN_REPORT ------------ Event: time 1554895428.033742, type 3 (EV_ABS), code 0 (ABS_X), value -1 Event: time 1554895428.033742, -------------- SYN_REPORT ------------ Event: time 1554895428.133745, type 3 (EV_ABS), code 0 (ABS_X), value 0 Event: time 1554895428.133745, -------------- SYN_REPORT ------------ Event: time 1554895428.413740, type 3 (EV_ABS), code 0 (ABS_X), value 1 Event: time 1554895428.413740, -------------- SYN_REPORT ------------ Event: time 1554895428.533749, type 3 (EV_ABS), code 0 (ABS_X), value 0 Event: time 1554895428.533749, -------------- SYN_REPORT ------------ Event: time 1554895429.453739, type 1 (EV_KEY), code 305 (BTN_EAST), value 1 Event: time 1554895429.453739, -------------- SYN_REPORT ------------ Event: time 1554895429.553753, type 1 (EV_KEY), code 305 (BTN_EAST), value 0 Event: time 1554895429.553753, -------------- SYN_REPORT ------------ Event: time 1554895429.773753, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1 Event: time 1554895429.773753, -------------- SYN_REPORT ------------ Event: time 1554895429.893764, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0 Event: time 1554895429.893764, -------------- SYN_REPORT ------------ Event: time 1554895430.153744, type 1 (EV_KEY), code 311 (BTN_TR), value 1 Event: time 1554895430.153744, -------------- SYN_REPORT ------------ Event: time 1554895430.273760, type 1 (EV_KEY), code 311 (BTN_TR), value 0 Event: time 1554895430.273760, -------------- SYN_REPORT ------------ Event: time 1554895430.513745, type 1 (EV_KEY), code 310 (BTN_TL), value 1 Event: time 1554895430.513745, -------------- SYN_REPORT ------------ Event: time 1554895430.633743, type 1 (EV_KEY), code 310 (BTN_TL), value 0 Event: time 1554895430.633743, -------------- SYN_REPORT ------------ Event: time 1554895430.873777, type 1 (EV_KEY), code 307 (BTN_NORTH), value 1 Event: time 1554895430.873777, -------------- SYN_REPORT ------------ Event: time 1554895430.953753, type 1 (EV_KEY), code 307 (BTN_NORTH), value 0 Event: time 1554895430.953753, -------------- SYN_REPORT ------------ Event: time 1554895431.253738, type 1 (EV_KEY), code 308 (BTN_WEST), value 1 Event: time 1554895431.253738, -------------- SYN_REPORT ------------ Event: time 1554895431.353748, type 1 (EV_KEY), code 308 (BTN_WEST), value 0 Event: time 1554895431.353748, -------------- SYN_REPORT ------------ Event: time 1554895431.733743, type 1 (EV_KEY), code 316 (BTN_MODE), value 1 Event: time 1554895431.733743, -------------- SYN_REPORT ------------ Event: time 1554895431.833740, type 1 (EV_KEY), code 316 (BTN_MODE), value 0 Event: time 1554895431.833740, -------------- SYN_REPORT ------------ Event: time 1554895432.053740, type 1 (EV_KEY), code 314 (BTN_SELECT), value 1 Event: time 1554895432.053740, -------------- SYN_REPORT ------------ Event: time 1554895432.153745, type 1 (EV_KEY), code 314 (BTN_SELECT), value 0 Event: time 1554895432.153745, -------------- SYN_REPORT ------------ Event: time 1554895432.333744, type 1 (EV_KEY), code 315 (BTN_START), value 1 Event: time 1554895432.333744, -------------- SYN_REPORT ------------ Event: time 1554895432.453742, type 1 (EV_KEY), code 315 (BTN_START), value 0 Event: time 1554895432.453742, -------------- SYN_REPORT ------------
-
@ian57 said in [RC3] Configuration GPIO:
@GDEHON peut être un petit soucis d'enregistrement du
recalbox.conf
. Il me semble que sur la RC2 j'ai été obligé de l'activé 2x.
par contre je passe toujours par ssh jamais par l'interface webOk pour le problème d'enregistrement...
Par contre pour le ssh c'est putty ou juste winscp ?@acris said in [RC3] Configuration GPIO:
@ian57
l archive de support de virusman indique que les gpio sont activéesDonc ce n'est pas le même soucis que moi c'est ça ?
@ian57 said in [RC3] Configuration GPIO:
@ViRuS-MaN peux tu poster le inputconfig de @GDEHON stp;;
Je l'ai posté [ici]https://forum.recalbox.com/topic/15946/rc-version-support-archives-with-pad-configurations-needed/9)
Voici ma config via GPIO (boutons hotkey en place)
https://file.ac/NLBMc8j36wU/<inputConfig type="joystick" deviceName="GPIO Controller 1" deviceGUID="15000000010000000100000000010000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="9"> <input name="a" type="button" id="1" value="1" code="305" /> <input name="b" type="button" id="0" value="1" code="304" /> <input name="down" type="axis" id="1" value="1" code="1" /> <input name="hotkey" type="button" id="8" value="1" code="316" /> <input name="left" type="axis" id="0" value="-1" code="0" /> <input name="pagedown" type="button" id="5" value="1" code="311" /> <input name="pageup" type="button" id="4" value="1" code="310" /> <input name="right" type="axis" id="0" value="1" code="0" /> <input name="select" type="button" id="6" value="1" code="314" /> <input name="start" type="button" id="7" value="1" code="315" /> <input name="up" type="axis" id="1" value="-1" code="1" /> <input name="x" type="button" id="2" value="1" code="307" /> <input name="y" type="button" id="3" value="1" code="308" /> </inputConfig> <inputConfig type="joystick" deviceName="GPIO Controller 2" deviceGUID="15000000010000000200000000010000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="9"> <input name="a" type="button" id="1" value="1" code="305" /> <input name="b" type="button" id="0" value="1" code="304" /> <input name="down" type="axis" id="1" value="1" code="1" /> <input name="hotkey" type="button" id="8" value="1" code="316" /> <input name="left" type="axis" id="0" value="-1" code="0" /> <input name="pagedown" type="button" id="5" value="1" code="311" /> <input name="pageup" type="button" id="4" value="1" code="310" /> <input name="right" type="axis" id="0" value="1" code="0" /> <input name="select" type="button" id="6" value="1" code="314" /> <input name="start" type="button" id="7" value="1" code="315" /> <input name="up" type="axis" id="1" value="-1" code="1" /> <input name="x" type="button" id="2" value="1" code="307" /> <input name="y" type="button" id="3" value="1" code="308" /> </inputConfig>
-
voila mes configuration a moi dans emulationstation configuration desole mais je n arrive pas a faire ce que vous faites pour les afficher
-
@ViRuS-MaN je n'ai rien vu de particulier mis à part que ton es_input ne contient pas les gpio. mais normalement c'est pas un soucis.
La version 6.0 sort ce vendredi normalement. je viens de la tester et pas de soucis avec mes GPIO.
Attends 2 jours et on refara des tests avec cette nouvelle version -
c est ce que je vais faire et on veras bien ce que ca va donner , la tester la rc3 c est deja top car elle marche tres bien
-
@ian57 j ai refait un sujet [6.0] probleme gpio et j ai toujours ce probleme