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

Read some posts back. I cannot tell what the problem is. Workaround for now: Use a different gamepad.

having no sound in ES, but sound works fine in OSMC.
dtparam=audio=on already set in /boot/config.txt and hdmi_drive=2

excerpt from .emulationstation/es_log:

lvl0: VolumeControl::init() - Failed to find mixer elements!

no sound in ES… when I go in β€œSound Settings” in the ES GUI I see β€œsystem volume” is at 0, but when I change to 100 and press start to close the changes, this will reset and the changes will not take effect.
Indeed if I re-select β€œsound settings” volume is again at 0!

03:38 PM osmc ~ $ amixer
Simple mixer control β€˜Master’,0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 1107 [2%] [on]
Front Right: Playback 1107 [2%] [on]
Simple mixer control β€˜Capture’,0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [on]
Front Right: Capture 65536 [100%] [on]
03:38 PM osmc ~ $

03:48 PM osmc ~ $ cat /proc/asound/card
card0/ cards
03:48 PM osmc ~ $ cat /proc/asound/cards
0 [ALSA ]: bcm2835 - bcm2835 ALSA
bcm2835 ALSA
03:51 PM osmc ~ $

03:57 PM osmc ~ $ cat /proc/asound/pcm
00-00: bcm2835 ALSA : bcm2835 ALSA : playback 8
00-01: bcm2835 ALSA : bcm2835 IEC958/HDMI : playback 1
03:57 PM osmc ~ $

alsamixer shows:
Card: PulseAudio F1: Help β”‚
β”‚ Chip: PulseAudio F2: System information β”‚
β”‚ View: F3:[Playback] F4: Capture F5: All F6: Select sound card β”‚
β”‚ Item: Master Esc: Exit

with sound set to 0.

Didn’t help when I set it to 100 though.

Is master and PCM set to 100 in alsamixer? Is the selected sound output set to hdmi?

Also try rebooting.

Master at 100 in alsamixer, no PCM showing though…

after a restart I could hear sound scrolling in the MAME GUI menus (after setting again System Sound to 100, no idea why this setting keeps resetting to 0) but still no sound/or only few scraps when lounching the roms.

Card: PulseAudio F1: Help β”‚
β”‚ Chip: PulseAudio F2: System information β”‚
β”‚ View: F3:[Playback] F4: Capture F5: All F6: Select sound card β”‚
β”‚ Item: Master Esc: Exit
β”Œβ”€β”€β” β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”‚β–’β–’β”‚ β”‚
β”‚ β”œβ”€β”€β”€ β”‚
β”‚ β”‚OOβ”‚ β”‚
β”‚ β””β”€β”€β”˜ β”‚
β”‚ 100<>100 β”‚
β”‚ < Master >

The es_log shows a bit more infos:

lvl0: VolumeControl::init() - Failed to find mixer elements!
lvl2: req sound [basic.menuOpen]
lvl2: (missing)
lvl1: OptionListComponent too narrow!
lvl1: OptionListComponent too narrow!
lvl2: req sound [basic.launch]
lvl2: (missing)
lvl2: Attempting to launch game…
lvl2: /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS mame-mame4all /home/osmc/RetroPie/roms/mame-mame4all/galaga88.zip
lvl2: Creating surface…
lvl2: Created window successfully.
lvl2: Added known joystick 8Bitdo NES30 GamePad Joystick (instance ID: 0, device index: 0)
lvl0: VolumeControl::init() - Failed to find mixer elements!
lvl2: Added known joystick 8Bitdo NES30 GamePad Joystick (instance ID: 0, device index: 0)
lvl2: EmulationStation cleanly shutting down.

I think pulse is playing tricks on you. Did you use bluetooth pairing with sound accessoires?

I doubt it too, yes I used bluetooth pairing with headphones and bluetooth adapters, but never while on ES

ok, a reboot after sudo apt-get remove --purge pulseaudio did the trick.
Is there any possibility to have sound with pulseaudio?

Not sure. I have no bluetooth gear.

I mean sound through TV speakers with pulseaudio instead of alsa.
I don’t mind not using a bluetooth gear while playing but still could use a2dp for BT music streaming (outside of ES).

I am no expert in pulse configuration on rpi unfortunately. I only know that numerous people seem to have problems with it.

maybe @sam_nazarko can help?
My problem is that now the games sound great but music not anymore (with pulseaudio music was sounding great)

Just wanted to say big thanks to @mcobit and others for all the hard work getting this working. I just tried my first install per the OP and everything worked really well. Had to run the Retropie installer twice as a few packages failed the first time. PS3 controller set up and paired using the Retropie installer with no issues and works in both ES and all the emulators that I tried. Few issues with button mapping but I need to look into that on a per-emulator basis. Thanks again!

@mcobit

I seems taht the rumblepad is working with a pure retropie installation but not with retrosmc. What could be the cause of this?

Probably missing kernel support. I can diff the config of raspbian and osmc again to see if there is something obvious.

Hi, this is not correct
β€œI seems taht the rumblepad is working with a pure retropie installation but not with retrosmc”
I had the rumblepad 2 working with snes9x emulator, loading it via Rom Collection Browser on the old raspbmc over a year ago. I never tried it with retropi,only via this way as I stated with a script to change to runlevel 4, where the emulator would load and raspbmc would not.

On another note, I bought a new gamepad today, I am able to map it via Emulation Station, and then when I hit the β€œA” button it exits and goes back to OSMC and I lose the config.
any ideas why? no other button on game pad will do anything except the up/down buttons.
β€œlvl2: Configuring device 0 (DragonRise Inc. Generic USB Joystick ).
lvl2: Mapping [Hat 0 up] -> Up
lvl2: Mapping [Hat 0 down] -> Down
lvl2: Mapping [Hat 0 left] -> Left
lvl2: Mapping [Hat 0 right] -> Right
lvl2: Mapping [Button 9] -> Start
lvl2: Mapping [Button 8] -> Select
lvl2: Mapping [Button 1] -> A
lvl2: Mapping [Button 2] -> B
lvl2: Mapping [Button 3] -> X
lvl2: Mapping [Button 0] -> Y
lvl2: Mapping [Button 6] -> LeftBottom
lvl2: Mapping [Button 7] -> RightBottom
lvl2: Mapping [Button 4] -> LeftTop
lvl2: Mapping [Button 5] -> RightTop
lvl2: Mapping [Button 10] -> LeftThumb
lvl2: Mapping [Button 11] -> RightThumb
lvl2: Mapping [Axis 1-] -> LeftAnalogUp
lvl2: Mapping [Axis 1+] -> LeftAnalogDown
lvl2: Mapping [Axis 0-] -> LeftAnalogLeft
lvl2: Mapping [Axis 0+] -> LeftAnalogRight
lvl2: Mapping [Axis 3-] -> RightAnalogUp
lvl2: Mapping [Axis 3+] -> RightAnalogDown
lvl2: Mapping [Axis 2-] -> RightAnalogLeft
lvl2: Mapping [Axis 2+] -> RightAnalogRight”

If it crashes on the end of the mapping it could be a problem with the script that runs in the background and maps the retroarch controls.
Did you manually customize those as root probably and es cannot write to the retroarch.conf?

Hi,

Does anyone knows the difference between

and

Which one is better and more recent?

Retrosmc is the most recent and best. Just follow the instructions in the first post.

hi thanks for the quick response, I have flashed a new sd card (realized mine was 4gb and I only had 250mb free space,so no room for roms :S ) so I am installing retrosmc again and will report back how it works.

Installing to new card worked, everything is awesome. Thank you for the hardwork you put in to integrate this so well