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

Hello guys,
I’ve been at this problem for a few nights now, so any help would be worthy of a bronze statue in your likeness.

I’m running RetrOSMC on a Raspi 2, everything is up to date. Sound works fine in OSMC, but I get no sound in RetroOSMC. I’ve re-flashed / re-installed a couple of times, same results.
I’ve tried setting options in /boot/config.txt such as hdmi_drive=2, but I’m confident that this isn’t the problem. When I run any emulators, it runs without sound and I get stuff like this in the log:

PPU.RenderSub = 0 PPU.FullClipping = 1 Settings.Transparency = 1 Settings.SpeedhackGameID = 7 PPU.SFXSpeedupHack = 0 coldata_update_screen = 0 ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default

I’ve tried using sdl instead of alsa, same result.
When I run cat /proc/asound/cards , I get:

cat /proc/asound/cards

It looks like alsa isn’t recognizing my sound hardware?
I generated a log of my alsa settings:


!!################################
!!ALSA Information Script v 0.4.64
!!################################

!!Script ran on: Sat Dec  5 18:11:08 UTC 2015


!!Linux Distribution
!!------------------

ID_LIKE=debian


!!DMI Information
!!---------------

Manufacturer:      
Product Name:      
Product Version:   
Firmware Version:  


!!Kernel Information
!!------------------

Kernel release:    4.3.0-10-osmc
Operating System:  GNU/Linux
Architecture:      armv7l
Processor:         unknown
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     k4.3.0-10-osmc
Library version:    1.0.28
Utilities version:  1.0.28


!!Loaded ALSA modules
!!-------------------



!!Sound Servers on this system
!!----------------------------

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

--- no soundcards ---


!!Modprobe options (Sound related)
!!--------------------------------

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2


!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116,  1 Dec  5 12:40 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Dec  5 12:40 /dev/snd/timer


!!Aplay/Arecord output
!!--------------------

APLAY

aplay: device_list:268: no soundcards found...

ARECORD

arecord: device_list:268: no soundcards found...

!!Amixer output
!!-------------


!!Alsactl output
!!--------------

--startcollapse--
--endcollapse--


!!All Loaded Modules
!!------------------

Module
snd_bcm2835
snd_pcm
snd_timer
snd
8021q
garp
stp
llc
bnep
sg
uinput
uas
btusb
btrtl
btbcm
btintel
bluetooth
evdev
joydev
rfkill
lirc_rpi
bcm2835_thermal
lirc_dev
rc_core
bcm2835_gpiomem
bcm2835_wdt
uio_pdrv_genirq
uio
fuse
ipv6


!!ALSA/HDA dmesg
!!--------------

That’s all the information that I know how to collect, but I’ll share any logs or configs that might be relevant. I’d greatly appreciate any help that you guys can offer.

I second @some_dude.

This problem is somewhat perplexing. Any help would be great!
Thanks for all the great work! :slight_smile:

@some_dude and @zeineath

There are a couple of other threads talking about this. I assume you problem started after the November Update.
Just add dtparam=audio=on to /boot/config.txt

It was mentioned some post ago…
Hope to get the new version out soon. It will automatically fix this for you when installing.
Still looking for testers.

I have got a few unused SD cards laying around. How would I go about testing?

Invited you to the testing. Instructions in the first post.
Thanks for joining.

I just tested your new script from github.
Retropie is running well, but i could not install the ps3 controller with the retropie script.

Could not install package: libusb-dev bluetooth libbluetooth-dev joystick

Any errors?

sorry just edited my post
Could not install package: libusb-dev bluetooth libbluetooth-dev joystick

there are a lot of errors during installation … too fast to read
could not compile sixpair and so on … missing path

There is a logs folder under RetroPie-Setup - which will have the details - for example why those packages couldn’t be installed.

For some reason my keyboard is unrecognised by emulationstation. I can navigate through Kodi using my keyboard to start it up, but after it gets to the screen which says “WELCOME, HOLD A BUTTON TO CONFIGURE…” it no longer works. Nothing makes the configure work and I can’t even press F4. I have to ssh in and sudo reboot.

Are you holding a button for some time (e.g. 5 seconds)?
What kind of keyboard is it? As what is it determined in dmesg?

[quote=“fzinken, post:517, topic:6671, full:true”]Are you holding a button for some time (e.g. 5 seconds)?
What kind of keyboard is it? As what is it determined in dmesg?[/quote]
Yes, even holding it down for 20 seconds does nothing.
It’s just a USB keyboard, this one to be exact.
dmesg print out has this at the end after it’s been plugged in, [ 6865.901124] usb 1-1.4: new low-speed USB device number 5 using dwc_otg[ 686 - Pastebin.com

That’s really odd, I have two different wireless keyboards and both of them work.
As you are still at the start wondering if you want to try the new testing version of the script that @mcobit has made to see if that solves your issue

[quote=“fzinken, post:519, topic:6671, full:true”]That’s really odd, I have two different wireless keyboards and both of them work.
As you are still at the start wondering if you want to try the new testing version of the script that @mcobit has made to see if that solves your issue[/quote]
Which is that? I literally just followed the steps/video in the OP last night.

Just invited you, check your inbox

If you want to try the new version, that’s fine.
Another problem could be that kodi is not shut down when emulationstatuon starts. That would lead to no input, too.
Can you ssh i when es is running and see if kodi still runs via top?

Currently finishing the install with the new script, if the same issue still occurs I’ll do that.

Ok, great :smile:

Thank you for your help.
After adding usr/local/sbin and /sbin to path the installation of the ps3 controller did work.

I manually inserted hciconfig hci0 pscan to rc.local
Now it works