Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Emulationstation crashes when plugging in Gamepad
#1
Hey guys,

I got a OPi PC and a OPi PC+ and both fail with a virgin Retrorangepi 3.0.1 when I plug in my gamepad.
Emulationstation crashes with
Code:
emulationstation: /root/Emulationstation-ROPI/es-core/src/InputManager.cpp:71 void InputManager::addJoystickByDeviceIndex(int): Assertion `joy' failed.
Aborted

Dmesg says the controller is acknowledged and with jstest I can also test it via SSH. However, even the console on screen does not react to input via my keyboard.

Any fixes out there?

\edit: from the github page of lakka, there was someone with the same problem: https://github.com/libretro/Lakka/issues/670
So I need the kernel module hid_betopff. Where can I get the sources for that and a howto on compiling?

DMESG tail:
Code:
[    3.386968] Mali<2>: Mali PP: Creating Mali PP core: Mali_PP1
[    3.386979] Mali<2>: Mali PP: Base address of PP core: 0x1c4a000
[    3.387006] Mali<2>: 2+0 PP cores initialized
[    3.387024] Mali<2>: Mali GPU Utilization: No utilization handler installed
[    3.387644] Mali<2>: mali_probe(): Successfully initialized driver for platform device mali-utgard
[    3.387767] Mali: Mali device driver loaded
[    3.400368] systemd[1]: Started Restore / save the current clock.
[    3.413030] [drm] Initialized drm 1.1.0 20060810
[    3.415934] [mmc]: sdc1 power_supply is null
[    3.420071] [mmc]: sdc1 power_supply is null
[    3.422486] Mali DRM initialize, driver name: mali_drm, version 2.1
[    3.422884] [drm] Initialized mali_drm 2.1.1 20101111 on minor 0
[    3.422930] Mali DRM initialize, driver name: mali_drm, version 2.1
[    3.423218] [drm] Initialized mali_drm 2.1.1 20101111 on minor 1
[    3.492258] [mmc]: sdc1 power_supply is null
[    3.650362] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    3.800304] systemd[1]: Started Load Kernel Modules.
[    3.930360] systemd[1]: Started LSB: Set keymap.
[    4.000359] systemd[1]: Started udev Coldplug all Devices.
[    4.002892] systemd[1]: Time has been changed
[    4.003256] systemd[1]: Starting Apply Kernel Variables...
[    4.101336] systemd[1]: Mounted Configuration File System.
[    4.101520] systemd[1]: Mounting FUSE Control File System...
[    4.201001] systemd[1]: Starting Create Static Device Nodes in /dev...
[    4.250933] systemd[1]: Starting Syslog Socket.
[    4.251235] systemd[1]: Listening on Syslog Socket.
[    4.251343] systemd[1]: Starting Journal Service...
[    4.331082] systemd[1]: Started Journal Service.
[    4.652008] systemd-udevd[118]: starting version 215
[    5.126986] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x48)
[    5.127604] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[    5.130694] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x77)
[    5.130739] bmp085: probe of 0-0077 failed with error -70
[    5.858260] EXT4-fs (mmcblk0p3): re-mounted. Opts: commit=600,errors=remount-ro
[    7.167581] systemd-journald[117]: Received request to flush runtime journal from PID 1
[    7.476631] gmac0: probed
[    7.476994] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
[   11.470258] PHY: gmac0-0:00 - Link is Up - 100/Full
[   18.070041] eth0: no IPv6 routers present
[   26.816931] Registered IR keymap rc-empty
[   26.831324] rc0: sunxi-ir as /devices/virtual/rc/rc0
[   26.918899] IR RC5(x) protocol handler initialized
[   27.061753] rc s_cir0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
[   33.387803] vmouse_input_dev_open
[   33.408773] Mali<2>: Session started
[   67.480301] PHY: gmac0-0:00 - Link is Down
[   68.480321] PHY: gmac0-0:00 - Link is Up - 100/Full
[  755.742591] ehci_irq: highspeed device connect
[  755.950144] ehci_irq: highspeed device disconnect
[  755.950166] ohci_irq: fullspeed or lowspeed device connect
[  756.370112] usb 8-1: new full-speed USB device number 2 using sunxi-ohci
[  756.604044] generic-usb 0003:2563:0575.0001: input,hidraw0: USB HID v1.11 Gamepad [ShanWan PC/PS3/Android] on usb-sunxi-ohci-1/input0
[  756.850509] ohci_irq: fullspeed or lowspeed device disconnect
[  756.850670] usb 8-1: USB disconnect, device number 2
[  756.946717] ehci_irq: highspeed device connect
[  757.230137] vmouse_input_dev_close
[  757.330142] ehci_irq: highspeed device disconnect
[  757.330167] ohci_irq: fullspeed or lowspeed device connect
[  757.730131] usb 8-1: new full-speed USB device number 3 using sunxi-ohci
[  757.820566] Mali<2>: Session has ended
[  757.961069] generic-usb 0003:20BC:5500.0002: input,hidraw0: USB HID v1.11 Gamepad [ShanWan PC/PS3/Android] on usb-sunxi-ohci-1/input0
[  757.967768] generic-usb 0003:20BC:5500.0003: input,hidraw1: USB HID v1.01 Device [ShanWan PC/PS3/Android] on usb-sunxi-ohci-1/input1

cat .emulationstation/es_input.cfg
Code:
<?xml version="1.0"?>
<inputList>
  <inputAction type="onfinish">
    <command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command>
  </inputAction>
</inputList>
Reply
#2
The issue is fixed on lakka by the following commit: https://github.com/libretro/Lakka-LibreE...6a0b305644
@alexkidd, is it possible to include the same commit for retrorangepi as well?
Reply
#3
We'll try to include it into next version. Thanks for the input.
Reply
#4
(07-21-2017, 01:07 PM)alexkidd Wrote: We'll try to include it into next version. Thanks for the input.

Hello!

I bought two wireless gamepads only to ROPi

https://www.aliexpress.com/item/2-4G-wir...04129.html

But when connected i get the same error with assertion "joy"

This is terribly unsatisfying.


When the next version will be released with fix for this? Is it possible to fix it by some patch on a working system?
Reply
#5
Hi,

Any solution to this issue ? How to get the kernel source for retrorangepi ?

Thanks in advance.

Tobiasz
Reply
#6
RetrOrangePi is based on Armbian legacy kernel, check https://github.com/armbian/build

most gamepad issues are fixed with new EmulationStation binary, please wait a few days
Reply
#7
Hi.
Thank you for your quick answer. The problem is that I bought 2 gamepads and I have only few days to test them. Currently I have error message from this post. Will this new version of retrorangepi 4.0 contain new kernel with this option CONFIG_HID_BETOP_FF=y ? I can test this new version with my gamepads if you will provide me the alpha version download link.
If I can help somehow please write me.

Tobiasz
Reply
#8
Yes, full image will contain the option CONFIG_HID_BETOP_FF=y   Alpha update (now beta) is not full yet.

Give this a try, we have report of successful compatibility with some previous failed gamepads:

wget http://www.retrorangepi.org/emulationstation

copy to /opt/retropie/supplementary/emulationstation/

dont tell anyone Tongue
Reply
#9
Hi,

Thanks, This fix eliminated the error but emulationstatnio still do not see my gamepad.

dmesg shows

[ 234.980142] ohci_irq: fullspeed or lowspeed device connect
[ 235.400128] usb 6-1: new full-speed USB device number 2 using sunxi-ohci
[ 235.635042] generic-usb 0003:2563:0575.0005: input,hidraw0: USB HID v1.11 Gamepad [ShanWan PC/PS3/Android] on usb-sunxi-ohci-1/input0

so linux recognised the gamepad. any idea what should be done now ?
Reply
#10
it's strange to see it's been recognized , but not available for mapping? I can only think about power issues, can you try to use a powered hub in between? Also run jstest from command line to see if there's activity
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to debug gamepad problems? ROPI 3.0 niabi 8 2,445 12-27-2016, 11:45 PM
Last Post: niabi

Forum Jump:


Users browsing this thread: 1 Guest(s)