[HowTo] RetroPie and OSMC: Retrosmc - Retrogaming on OSMC

Still: What is the output of dmesg after connecting the gamepad?
Last page should be enough.

Also: Try to press and hold down any button on your gamepad for some seconds.

4.169807] systemd[1]: Job kbd.service/start deleted to break ordering cycle starting with basic.target/start
[ 4.170192] systemd[1]: Found ordering cycle on basic.target/start
[ 4.170227] systemd[1]: Found dependency on sysinit.target/start
[ 4.170254] systemd[1]: Found dependency on rpcbind.service/start
[ 4.170282] systemd[1]: Found dependency on network-online.target/start
[ 4.170307] systemd[1]: Found dependency on network.target/start
[ 4.170332] systemd[1]: Found dependency on connman.service/start
[ 4.170356] systemd[1]: Found dependency on dbus.service/start
[ 4.170380] systemd[1]: Found dependency on basic.target/start
[ 4.170407] systemd[1]: Breaking ordering cycle by deleting job rpcbind.service/start
[ 4.170436] systemd[1]: Job rpcbind.service/start deleted to break ordering cycle starting with basic.target/start
[ 4.278101] fuse init (API version 7.23)
[ 4.324472] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 4.739131] systemd-udevd[177]: starting version 215
[ 4.991814] lirc_dev: IR Remote Control driver registered, major 244
[ 5.003370] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.023910] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 5.027588] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 5.243258] random: nonblocking pool is initialized
[ 5.396014] input: Logitech Logitech Cordless RumblePad 2 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C219.0001/input/input2
[ 5.397352] logitech 0003:046D:C219.0001: input,hidraw2: USB HID v1.10 Gamepad [Logitech Logitech Cordless RumblePad 2] on usb-3f980000.usb-1.2/input0
[ 5.397448] logitech: probe of 0003:046D:C219.0001 failed with error -1
[ 5.586501] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 5.957066] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[ 5.957576] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 5.957595] lirc_rpi: driver registered!
[ 6.391218] input: lircd as /devices/virtual/input/input3
[ 6.722003] systemd-journald[148]: Received request to flush runtime journal from PID 1
[ 7.040042] smsc95xx 1-1.1:1.0 eth0: hardware isnā€™t capable of remote wakeup
[ 7.042282] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.498855] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.501008] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
[ 8.594018] 8021q: 802.1Q VLAN Support v1.8
[ 12.388295] Console: switching to colour dummy device 80x30

With this coomand tried to make config.cfg

sudo /opt/retropie/emulators/retroarch/bin/retroarch-joyconfig -a joypad.cfg -j0 -t 4
and it said detected my gamepad but dont detect any buttons, see this:

RetroArch [INFO] :: [udev]: Plugged pad: Logitech Logitech Cordless RumblePad 2 (046d:c219) on port #0.
RetroArch [INFO] :: [udev]: Pad #0 (/dev/input/event2) supports 0 force feedback effects.
RetroArch [INFO] :: Found joypad driver: ā€œudevā€.
Found joypad driver: udev
Using joypad: Logitech Logitech Cordless RumblePad 2

Joypads tend to have stale state after opened.
Press some buttons and move some axes around to make sure joypad state is completely neutral before proceeding.
When done, press Enter ā€¦
Axis 0 is defaulted to negative axis value of -32767.
Axis 1 is defaulted to negative axis value of -32767.
Axis 2 is defaulted to negative axis value of -32767.
Axis 3 is defaulted to negative axis value of -32767.
Configuring binds for player #1 on joypad #0.

B button (down)
Timed out ā€¦
Y button (left)
Timed out ā€¦
Select button
Timed out ā€¦

Seems to be a problem with this specific device. There are others that have similar problems. Might just be an incompatibility with linux at the moment.

1 Like

But at openelec, I can use it fine with emulators or kodiā€¦ can I take some configuration from there? :frowning:

I see people using xboxdrv for rumblepad 2ā€¦ any tips how can use this?

http://pastie.org/pastes/8935429#

Xboxdrv configuration for the Logitech RumblePad 2 USB controller

xboxdrv --config rumblepad2.xboxdrv

[xboxdrv]
evdev = /dev/input/by-id/usb-Logitech_Logitech_RumblePad_2_USB-event-joystick
evdev-grab = true
mimic-xpad = true
silent = true

[axismap]
-Y1 = Y1
-Y2 = Y2

[evdev-absmap]
ABS_HAT0X = DPAD_X
ABS_HAT0Y = DPAD_Y

ABS_X = X1
ABS_Y = Y1
ABS_Z = X2
ABS_RZ = Y2

[evdev-keymap]
BTN_BASE3 = back
BTN_BASE4 = start
BTN_TRIGGER = X
BTN_THUMB = A
BTN_THUMB2 = B
BTN_TOP = Y
BTN_PINKIE = RB
BTN_BASE2 = RT
BTN_TOP2 = LB
BTN_BASE = LT

You might get some info from here:

1 Like

Thanks for that tip, i will follow through that one, maybe I can solve it. thanks for your time and effort.

:frowning: nothing on that wayā€¦

ā€“ [ ERROR ] ------------------------------------------------------
No Xbox or Xbox360 controller found

You could try blacklisting or unloading the xpad module.

1 Like

yes tried that too, xpad module is not loaded.

rmmod: ERROR: Module xpad is not currently loaded

this is too strange at openelec, I can play fine with retroarch

Tried loading that module?
OpenElec and OSMC are two different operating systems. They both run Kodi, but there colud be other things that are different.

I have this loaded:

Module Size Used by
8021q 22147 0
garp 7622 1 8021q
stp 2430 1 garp
llc 6031 2 stp,garp
sg 23797 0
uas 15902 0
evdev 11627 2
hid_logitech 7673 0
bcm2835_thermal 2844 0
bcm2835_gpiomem 4026 0
bcm2835_wdt 4081 0
lirc_rpi 9315 3
uio_pdrv_genirq 3885 0
lirc_dev 11576 1 lirc_rpi
rc_core 25681 1 lirc_dev
uio 10364 1 uio_pdrv_genirq
snd_bcm2835 24618 0
snd_pcm 115582 1 snd_bcm2835
snd_timer 24969 1 snd_pcm
snd 77898 3 snd_bcm2835,snd_timer,snd_pcm
joydev 9713 0
uinput 9818 1
fuse 106878 3
ipv6 441571 58

But dont see xboxdrv or xpad there, tried:

sudo modprobe xpad

loaded but still error -1

but still no luck. I hate when linux support lacks :frowning: this is only a USB gamepadā€¦ cant be too complicated to make it run xd

ok Toast tell me this:

ā€œthats missing in the kernel its gonna be included in the kernel in the future so right now its impossible to get your logitech controller workingā€

I must wait then :wink:

thanks!!

If Iā€™m going from version 0.006 to 0.007 (I never installed the chroot version) how do I uninstall before installing the latest version? Or do I need to at all? I ran the install script (0.006) and it updated the script to 0.007 automatically but I did not see any uninstall options and I did not want to begin to install RetroPie from the updated script since your instructions say to uninstall old versions first.

I would recommend to setup osmc again in this case. If you are not concerned about ghostpackages from raspbian, you can also make sure to remove any raspbian source from /etc/apt/sources.list and then run the new installer.

1 Like

hi mcobit,

Iā€™ve installed retrosmc a few days ago and now Iā€™m fighting with some obstacles.
I managed to have BIOS and roms dirs mounted and unmounted automatically from nfs share during retropie startup and closing, I managed to add xboxdrv start in daemon mode,

Iā€™m using Speedlink TORID gamepad. It works without any issues in ES, unfortunately not in every game. My problems are that games donā€™t start (either with some error message on a screen and then return to ES or ES/emulator hangs up on a black screen and the only thing is left is to reboot RPi2).

If onyone is interested I have compiled the newest xboxdrv (0.8.8) from sources. Here is a ready deb package.
xboxdrv_0.8.8-1_armhf.deb

Also I have noticed that when my wireless keyboardā€™s receiver is also plugged in, ES discovers it as gamepad #0, and only then my gamepad is assigned number 1. Although it works in ES, it doesnā€™t work then in any emu.

Can you suggest how can I analyze whatā€™s wrong?

Iā€™m not quite clear on your direction here. Are you recommending starting with a clean install of OSMC and then running the RetrOSMC setup script?

Yes

What version are you using?
Do you have an uninstall option when running the install menu?
If you are still on an older version, please uninstall and reinstall with the latest script as described in the first post.

So I set this up today, and played a few things then wanted to return to OSMC, it seems just to halt the pi when I select exit. Is this expected behavior?

No, not really.
You need to QUIT emulationstation. Not shutdown or restart!

Edit: I actually thought about patching emulationstation to only have the option to go back to kodi (quit to commandline) but then I would need to maintain my own fork of it and I want to stay as close to RetroPie as possible to make updating easy and reliable.
Maybe we can work out some solution. But for now, you need to quit it (third option in the quit es menu I think)