LibreELEC-RR 9.x [ Emulationstation | Retroarch | Pegasus | DolphinQT | Moonlight | Chrome | Spotify ]

  • Again Retroarch starts libretro-dolphin while Emulationstation starts Dolphin standalone.

    libretro-dolphin =! Dolphin

    What is the output of aplay -L upload it.

    What is the content of your asound.conf

    What is the content of your advanced.conf

    If the you enter the correct output device the sound works for all emulators beside some edge cases like citra & nvidia cards...

  • 5schatten

    I have installed LibreELEC-S905.arm-9.0-RR-201847-b559485-Beta16.img.gz on a Samsung EVO 32GB MicroSD and running it on a Wechip V5 S905X based device.

    It boots fine and kodi works fine

    I have a Genuine Sony PS4 Bluetooth Controller and that is paired fine with LE. I also have a usb keyboard plugged in

    When I start Emulationstation it finds the ROMS and lists the platforms correctly. I have a snes rom, a sinclair rom and a c64 rom installed for testing.

    In Emulationstation both the keyboard and PS4 Controller work fine.

    When I launch any of the roms it fires up retroarch and runs the rom correctly, the music/sound is working fine.

    However both the usb keyboard and ps4 controller dont work inside retroarch.

    Please let me know what needs to be done to get the controller+keyboard working inside retroarch

    Also please let me know where should I put the ATARI5200 BIOS files. I put them in the /storage/roms/bios folder but it still says "Atari800/OS Emulation Halted"

    Thanks

    Edited 2 times, last by gujal (December 5, 2018 at 7:31 AM).

  • You have to start the atari800/5200 and set it to 5200 in it's core options. Start again & it should work.

    Can you disconnect your controller and run retroarch just with the kb connected to see if it this works? From my experience not input is recognized at all if the controller cfg file is wrong mapped. Can you state your detailed model number of the controller?

  • Any chance of including parsec for s905? They have a build for raspberry pi, it should work with s905, right?

    Thanks for your work!

    Well I've only found a binary for RPi3 so maybe this one works too on other platforms but without the source code I can't compile it for AML based systems.

  • 5schatten It seems you can enable GCN 1.0 and 1.1 cards support in the amdgpu driver:

    AMDGPU vs. Radeon DRM Driver Performance On Linux 4.15 - Phoronix

    AMDGPU+RADV Linux Gaming On GCN 1.0/1.1, 25-Way Warhammer II GPU Benchmarks - Phoronix

    If it's easy to do it would be great to test that, because it means Vulkan support for these cards and maybe fixed audio issues!

    Unfortunately I can't do new tests on AMD GPU hardware until Christmas.

    Worth a try!

  • Ok, my mistake i did not understand that, thnks for clearing that up.

    See attachments for output of aplay -L and the 2 config files. I renamed .conf to .txt so i can upload them here.

    [UPDATE]: i reverted the changes made in asound.conf and advanced.conf to set audio autoconfig.

    when i do in terminal:

    Command: #systemctl stop kodi

    Command: #pactl list short sinks:

    Result: 1 librespot_sink module-null-sink.c s16le 2ch 44100Hz SUSPENDED

    Command #pactl load-module module-udev-detect:

    Result: 18 (dont know what this means)

    Command: #pactl list short sinks

    Result:

    1 librespot_sink module-null-sink.c s16le 2ch 44100Hz SUSPENDED

    2 alsa_output.pci-0000_00_1b.0.iec958-stereo module-alsa-card.c s16le 2ch 44100Hz IDLE

    (So i guess the audio device (Pulse ?) is released by kodi now or something)

    Command: dolphin.start

    When i manualy start dolphin and set it to "Pulse" as the Audio Backend, it now starts the game with sound. When i set it to ALSA it crashes again.

    When i set it to pulse without the steps mentioned above dolphin crashes... so maby kodi doesnt release the sound device or something.

    some logging from kodi.log:

    19:27:15.204 T:139962515191552 ERROR: CActiveAESink::OpenSink - no sink was returned

    19:27:15.204 T:139962595788544 ERROR: ActiveAE::InitSink - returned error

    19:27:15.704 T:139962515191552 INFO: CActiveAESink::OpenSink - initialize sink

    19:27:15.704 T:139962515191552 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:iec958:CARD=PCH,DEV=0

    19:27:15.704 T:139962515191552 INFO: CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=PCH,DEV=0"

    19:27:15.706 T:139962515191552 INFO: CAESinkALSA - Unable to open device "iec958:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00" for playback

    19:27:15.706 T:139962515191552 INFO: CAESinkALSA - Unable to open device "iec958:CARD=PCH,DEV=0" for playback

    19:27:15.706 T:139962515191552 ERROR: CAESinkALSA::Initialize - failed to initialize device "iec958:CARD=PCH,DEV=0"

    19:27:15.706 T:139962515191552 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=HDMI,DEV=0

    19:27:15.706 T:139962515191552 INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=HDMI,DEV=0"

    19:27:15.707 T:139962515191552 INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=HDMI,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"

    19:27:15.708 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats

    19:27:15.708 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE

    19:27:15.708 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2205, bufferSize 8820

    19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 464, bufferSize 8816

    19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms

    19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2

    19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR

    19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: UNKNOWN1, UNKNOWN1 (ALSA: UNKNOWN UNKNOWN)

    19:27:15.717 T:139962515191552 ERROR: CActiveAESink::OpenSink - no sink was returned

    19:27:15.718 T:139962595788544 ERROR: ActiveAE::InitSink - returned error

    19:27:16.218 T:139962515191552 INFO: CActiveAESink::OpenSink - initialize sink

    19:27:16.218 T:139962515191552 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:iec958:CARD=PCH,DEV=0

    19:27:16.218 T:139962515191552 INFO: CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=PCH,DEV=0"

    19:27:16.219 T:139962515191552 INFO: CAESinkALSA::Initialize - Opened device "iec958:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"

    19:27:16.220 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats

    19:27:16.220 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE

    19:27:16.220 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2205, bufferSize 8820

    19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2205, bufferSize 8820

    19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms

    19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2

    19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR

    19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR (ALSA: FL FR)

    19:27:16.227 T:139962515191552 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:

    19:27:16.227 T:139962515191552 DEBUG: Output Device : Device not found

    19:27:16.227 T:139962515191552 DEBUG: Sample Rate : 44100

    19:27:16.227 T:139962515191552 DEBUG: Sample Format : AE_FMT_S32NE

    19:27:16.227 T:139962515191552 DEBUG: Channel Count : 2

    19:27:16.227 T:139962515191552 DEBUG: Channel Layout: FL, FR

    19:27:16.227 T:139962515191552 DEBUG: Frames : 2205

    19:27:16.227 T:139962515191552 DEBUG: Frame Size : 8

    19:27:42.475 T:139962463864576 DEBUG: Thread JobWorker 139962463864576 terminating (autodelete)

    19:27:42.475 T:139962171254528 DEBUG: Thread JobWorker 139962171254528 terminating (autodelete)

    19:27:42.475 T:139962179647232 DEBUG: Thread JobWorker 139962179647232 terminating (autodelete)

  • Please just enter the stuff I mention ;) At default the emulators & frontends use ALSA so it doesn't matter what PulseAudio detects or not. You can however set PulseAudio as backend in the advanced.conf Kodi normally lists ALSA devices & only uses PA for Bluetooth stuff.

    Well you want use your iec958:CARD=PCH,DEV=0 aka S/PDIF as sound output? Not HDMI or something?

  • Beta RC2 online for generic & RPi

    • updated to latest LE9.0 upstream
    • updated Kodi 18 to RC2
    • updated Generic kernel to 4.19.6
    • updated RPi kernel to 4.19.5
    • updated to mesa 18.3.0-rc5
    • updated vulkan-loader to 1.1.95
    • updated several libretro-cores
    • updated dolphin & citra
    • added mesa-demos (glxinfo / glxgears)
    • added vulkan-tools (vulkaninfo / kmscube)
  • You have to start the atari800/5200 and set it to 5200 in it's core options. Start again & it should work.

    Can you disconnect your controller and run retroarch just with the kb connected to see if it this works? From my experience not input is recognized at all if the controller cfg file is wrong mapped. Can you state your detailed model number of the controller?

    Thanks for the quick response

    1. Yes I have setup 5200 in the core options for the particular game. It still says no os rom. Will dig further and report back

    2. Once retroarch starts, i switched off the ps4 controller, then kbd starts working and I could go into the quick menu and change controller 1 to retropad-analog or kempston or vice and then turn on the controller again and then both kbd and controller work.

    The model number of the Sony Controller is CUH-ZCT2E

  • Please just enter the stuff I mention ;) At default the emulators & frontends use ALSA so it doesn't matter what PulseAudio detects or not. You can however set PulseAudio as backend in the advanced.conf Kodi normally lists ALSA devices & only uses PA for Bluetooth stuff.

    Well you want use your iec958:CARD=PCH,DEV=0 aka S/PDIF as sound output? Not HDMI or something?

    Yes: S/DPIF

    Problem solved, i had to add this in asound.conf:


    pcm.!default {

    type plug

    slave.pcm {

    @func getenv

    vars [ ALSAPCM ]

    # Device name can be found using the command 'aplay -L'

    default "sysdefault:CARD=PCH"

    }

    }

    Thnx for your suport !!!

  • Thanks for the quick response

    1. Yes I have setup 5200 in the core options for the particular game. It still says no os rom. Will dig further and report back

    2. Once retroarch starts, i switched off the ps4 controller, then kbd starts working and I could go into the quick menu and change controller 1 to retropad-analog or kempston or vice and then turn on the controller again and then both kbd and controller work.

    The model number of the Sony Controller is CUH-ZCT2E

    Have you all bios files? Atari - 5200 (Atari800) - Libretro Docs

    Well I guess Sony made some changes so your controller is slightly diffrent & not recognized correctly. Can you reboot your system, log into a terminal & enter dmesg | paste then upload the link? I can try to check if they changed the vendor or product id.

    Well sysdedault is normally the analog output so makes no sense if you use the S/PDIF because that would normally be the 3,5mm audio jack.

    Code
    sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    You use this? S/PDIF

    61oyWAGm4uL._SX342_.jpg

    Or this? 3,5mm audio jack (3,5mm Klinkenstecker)

    zukl-004_zukl_004_1g_800x800.jpg

    Anyway if it works /shrug

    After update from RC1 to RC2 , i lost my SSH / SFTP connection..

    Network is fine .. But no SSH

    Downgrade to RC1 fix the problem..

    I don't remember any ssh specific changes :/

  • Have you all bios files? Atari - 5200 (Atari800) - Libretro Docs

    Well I guess Sony made some changes so your controller is slightly diffrent & not recognized correctly. Can you reboot your system, log into a terminal & enter dmesg | paste then upload the link? I can try to check if they changed the vendor or product id.

    Here is the dmesg output

    http://ix.io/1vlz

    Here is contents of bios directory

    Code
    # ls -l /storage/roms/bios
    total 51
    -rwxr--r--    1 root     root          2048 Mar  7  1997 5200.ROM
    -rwxr--r--    1 root     root          8192 Mar 10  1996 ATARIBAS.ROM
    -rwxr--r--    1 root     root         10240 Jun 21  1999 ATARIOSA.ROM
    -rwxr--r--    1 root     root         10240 Mar 10  1996 ATARIOSB.ROM
    -rwxr--r--    1 root     root         16384 Mar 10  1996 ATARIXL.ROM

    EDIT : I found a /storage/.atari800.cfg file. I opened it and edited the following line and added the BIOS files there. I have only shown the lines that I edited. Atari5200 emulator works after that

    Code
    ROM_OS_A_PAL=/storage/roms/bios/ATARIOSA.ROM
    ROM_OS_B_NTSC=/storage/roms/bios/ATARIOSB.ROM
    ROM_5200=/storage/roms/bios/5200.ROM
    ROM_BASIC_A=/storage/roms/bios/ATARIBAS.ROM
    ROM_XL/XE_CUSTOM=/storage/roms/bios/ATARIXL.ROM

    Edited 5 times, last by gujal (December 7, 2018 at 5:29 AM).

  • So you've got a PS4 slim & the matching controller? Thats what your system detects:

    Code
    [   62.754667@0] hid-generic 0005:054C:09CC.0003: unknown main item tag 0x0
    [   62.756256@0] input: Wireless Controller as /devices/c11084c0.serial/tty/ttyS1/hci0/hci0:11/0005:054C:09CC.0003/input/input7
    [   62.761057@0] hid-generic 0005:054C:09CC.0003: input,hidraw2: BLUETOOTH HID v1.00 Gamepad [Wireless Controller] on 10:d0:7a:af:3a:07

    So Retroarch would look for a controller with the input_vendor_id = "1356" & input_product_id = "2508"

    sony-playstation4-dualshock4v2-controller.cfg

    sony-playstation4-dualshock4v2-wired-crystal-controller.cfg

    https://github.com/libretro/retroarch-joypad-autoconfig/blob/master/udev/sony_playstation4_dualshock4_500-million_limited_edition

    I have no clue why your controller is not working the because there are already 3 config files with matching IDs. Maybe it's because the name differs :/

    So you could try to add a file Sony-PS4-DS4v2-Controller.cfg to \\phoenix\Configfiles\retroarch\autoconfig with this content hastebin which is basically this one sony-playstation4-dualshock4v2-controller.cfg with different input_device name.

    You can also try this: Dualshock 4 crazy-fast, repeating controls - Lakka - Libretro Forums then you need something like WinSCP and delete the files in /tmp/autoconfig before you create your config file.

  • 5schatten about AMDGPU support for GCN 1.0/1.1, what file do I need to change in libreelec to write these "kernel command-line switches"? Sorry I'm a noob with Linux

    Quote

    The AMDGPU support for GCN 1.0/1.1 remains experimental but with recent kernels can be easily enabled via the radeon.si_support=0 amdgpu.si_support=1 kernel command-line switches for GCN 1.0 GPUs or radeon.cik_support=0 amdgpu.cik_support=1 for GCN 1.1 GPUs.

    and good news KMS is fixed in retroarch!

    (Video) KMS no longer works with mesa · Issue #7119 · libretro/RetroArch · GitHub

  • 5schatten about AMDGPU support for GCN 1.0/1.1, what file do I need to change in libreelec to write these "kernel command-line switches"? Sorry I'm a noob with Linux


    and good news KMS is fixed in retroarch!

    (Video) KMS no longer works with mesa · Issue #7119 · libretro/RetroArch · GitHub

    I'll include the patch then :thumbup:

    To change the command line you have to enter

    Code
    mount -o remount,rw /flash

    and then edit this file nano /flash/syslinux.cfg there should be a line like this:

    Code
    APPEND boot=UUID=5BCA-2C2F disk=UUID=921055bd-701b-44db-8b13-81e926d61283  quiet tty initrd=/edid.cpio drm.edid_firmware=edid/edid.bin video=HDMI-A-1:D

    and there you have to add your commands.