RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    BBC Micro / Acorn Electron Emu

    Scheduled Pinned Locked Moved Ideas and Development
    bbcacornmodel belectronbbc micro
    178 Posts 9 Posters 49.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lister of SmegL
      Lister of Smeg @Folly
      last edited by Lister of Smeg

      @folly
      thanks for looking
      my non working install was missing 'alsa_output.platform-bcm2835_audio.digital-stereo' from /home/pi/.config/pulse/XXXXXXXXXXXX-default-sink
      (just a blank file)
      added the line and rebooted but still no audio

      the commands on the non working install give the same results as you have listed
      tried setting pulse audio to default, but still no sound

      went to RetroPie-Setup Configuration / tools
      audiosettings mixer - pressed 'M' so that '00' was displayed at the bottom of the volume bar and that seems to get sound working (still have the 'failed to find mixer...' message)
      @retrofan could you have a look at your setup and see if any of the above helps?
      (i've previously tried unmuting that volume bar so perhaps it was the missing line in /home/pi/.config/pulse/XXXXXXXXXXXX-default-sink
      that was preventing sound from working on my setup at least)
      thanks again folly - I was ready to start again with a fresh install on that sd card

      R F 2 Replies Last reply Reply Quote 0
      • R
        retrofan @Lister of Smeg
        last edited by

        @Folly @lister-of-smeg

        I checked the audio settings in raspi-config, everything looks normal, HDMI 1 is set as the default, but I don't have a pulse folder in "/home/pi/.config/" at all !?
        Sound effects in the ES menus are present, but no sound in the emulator.
        Also, I tried my retropie image with b-em pico version and worknig sound, but again there is no sound with this allegro4 version.
        Very strange, at first glance everything looks fine, I literally just added Folly's script to scriptmodules/emulators and successfully installed, didn't change anything else.

        Lister of SmegL 1 Reply Last reply Reply Quote 0
        • F
          Folly @Lister of Smeg
          last edited by Folly

          @lister-of-smeg

          Nice to hear my information helped you to get the sound.

          audiosettings mixer - pressed 'M' so that '00

          Btw. If you use this command it will do the same :

          alsamixer
          

          @retrofan
          Which retropie image are you using ?

          Perhaps we can find a solution in this thread :
          https://retropie.org.uk/forum/topic/26628/audio-issues-after-latest-raspbian-updates-june-2020

          1 Reply Last reply Reply Quote 1
          • Lister of SmegL
            Lister of Smeg @retrofan
            last edited by

            @retrofan
            it's certainly a weird issue - folly's script is absolutely fine
            what I don't understand are the differences seen with the pulse audio and missing files
            my 'newest' image was downloaded and updated only a week ago - b-em-allegro4 just worked
            have you tried updating via command line with sudo apt-get update && sudo apt-get dist-upgrade ?

            1 Reply Last reply Reply Quote 1
            • R
              retrofan
              last edited by

              My retropie image is 8 weeks old, latest version for sure.
              I will try to update retropie and use tips from link that Folly posted...

              F 1 Reply Last reply Reply Quote 0
              • F
                Folly
                last edited by Folly

                @retrofan

                The command :

                aplay -L
                

                It seems to give quite some useful information.
                With that you can see what it uses by default.

                R 1 Reply Last reply Reply Quote 0
                • R
                  retrofan @Folly
                  last edited by

                  @folly

                  That command gives me the same output as in the picture you posted before.
                  Raspbian Update / Upgrade didn't help at all, now it's even worse the emulator doesn't work at all, even after reinstallation.
                  It's time to leave everything for another day. ;)

                  F 2 Replies Last reply Reply Quote 0
                  • F
                    Folly @retrofan
                    last edited by

                    @retrofan said in BBC Micro / Acorn Electron Emu:

                    @folly

                    That command gives me the same output as in the picture you posted before.

                    It should give you something different.
                    -l, --list-devices list all soundcards and digital audio devices
                    -L, --list-pcms list device names

                    I was curious what your default is, mine says :

                    pi@raspberrypi:~ $ aplay -L
                    default
                        Playback/recording through the PulseAudio sound server
                    .
                    .
                    

                    Raspbian Update / Upgrade didn't help at all, now it's even worse the emulator doesn't work at all, even after reinstallation.
                    It's time to leave everything for another day. ;)

                    We will have a try, later again.
                    Hopefully we get it working.

                    Lister of SmegL 1 Reply Last reply Reply Quote 0
                    • F
                      Folly @retrofan
                      last edited by Folly

                      @retrofan said in BBC Micro / Acorn Electron Emu:

                      My retropie image is 8 weeks old, latest version for sure.
                      I will try to update retropie and use tips from link that Folly posted...

                      Well I had a look in what's the latest image.
                      Both rpi-imager and the downloads section of RetroPie give :

                      • 4.7.1 from november 2020

                      I can't find any image of 8 weeks old.

                      I think that is why you are experiencing audio issues as in that time debian converted from alsa to pulseaudio.

                      What's the version number of your RetroPie_Setup ?

                      We are already on 4.7.15

                      1 Reply Last reply Reply Quote 0
                      • Lister of SmegL
                        Lister of Smeg @Folly
                        last edited by

                        @folly
                        I decided to wipe my sd card and start again, card imaged and updated via retropie-setup
                        installed b-em-allegro4 from script - no audio
                        Pulse folder not present in '/home/pi/.config/'
                        Installed desktop & rebooted
                        Pulse folder now present but 'XXXXXXXXXXXX-default-sink' had no entries - added 'alsa_output.platform-bcm2835_audio.digital-stereo' - rebooted
                        went to RetroPie-Setup Configuration / tools / audiosettings / mixer - changed from Master to HDMI
                        still no audio
                        loaded desktop and ran alsamixer from command - changed from Master to HDMI
                        rebooted and now the audio works???
                        At a guess b-em relies on the same audio settings as the desktop (runs with xinit) and it is a case of getting these settings in sync with the rest of retropie?

                        I did try to install elkulator via script however from a default installation runcommand gives this output

                        Parameters: 
                        Executing: xinit /dev/shm/retropie_xinitrc -- vt1 -keeptty
                        
                        
                        X.Org X Server 1.20.4
                        X Protocol Version 11, Revision 0
                        Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian
                        Current Operating System: Linux retropie 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 2021 armv7l
                        Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=bb27b9fd-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0
                        Build Date: 19 April 2021  03:23:36PM
                        xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support) 
                        Current version of pixman: 0.36.0
                        	Before reporting problems, check http://wiki.x.org
                        	to make sure that you have the latest version.
                        Markers: (--) probed, (**) from config file, (==) default setting,
                        	(++) from command line, (!!) notice, (II) informational,
                        	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
                        (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Mon Jul 12 10:45:34 2021
                        (==) Using system config directory "/usr/share/X11/xorg.conf.d"
                        xrandr: Failed to get size of gamma for output default
                        xrandr: cannot find mode 1920x1080
                        Set mode 1920x1080@60Hz on default
                        
                        Executing (via xinit): /opt/retropie/emulators/elkulator/elkulator-multiload.sh /home/pi/RetroPie/roms/electron/Arcadians_E.uef
                        
                        sed: can't read /opt/retropie/configs/electron/elk.cfg: No such file or directory
                        Shutting down Allegro due to signal #11
                        xinit: connection to X server lost
                        
                        waiting for X server to shut down wm_set_cursor_visibility: hidden using XCreatePixmapCursor
                        (II) Server terminated successfully (0). Closing log file.
                        
                        
                        
                        F 1 Reply Last reply Reply Quote 1
                        • F
                          Folly @Lister of Smeg
                          last edited by Folly

                          @lister-of-smeg

                          About the sound, that is something good you found !!!

                          For the elkulator part.
                          I think this comes from the fact that there isn't yet an elk.cfg created in the first run.
                          That is why sed is giving an error.

                          Try a second time, is the error still there ?

                          Lister of SmegL 1 Reply Last reply Reply Quote 0
                          • Lister of SmegL
                            Lister of Smeg @Folly
                            last edited by

                            @folly
                            just tried again - still getting
                            'sed: can't read /opt/retropie/configs/electron/elk.cfg: No such file or directory
                            Shutting down Allegro due to signal #11
                            xinit: connection to X server lost'

                            (if I manually copy and rename elk.cfg.bak to the config folder everything works)

                            F 2 Replies Last reply Reply Quote 0
                            • F
                              Folly @Lister of Smeg
                              last edited by

                              @lister-of-smeg

                              Yes indeed, it seems to be an issue.

                              I am now on a OS on a pi4 and where I did't install elkulator.
                              I had the same issue as you.

                              I pasted the elk.cfg into /opt/retropie/configs/electron.
                              Then it worked.

                              I will have a look when I can.

                              1 Reply Last reply Reply Quote 1
                              • F
                                Folly @Lister of Smeg
                                last edited by Folly

                                @lister-of-smeg

                                After the install of elkulator I could see in the log that the elk.cfg wasn't copied.
                                With an other script I had the same issue which I fixed with removing the quotes around the paths.
                                I did the same here as we don't have to use it as we have no files and directories with "spaces".

                                My test worked.
                                Can you test it too for me ?

                                My commit :
                                https://github.com/FollyMaddy/RetroPie-Share/commit/23321be168ba9cab4cf87ab4a6e3f691fb8b31a7

                                Lister of SmegL 1 Reply Last reply Reply Quote 1
                                • Lister of SmegL
                                  Lister of Smeg @Folly
                                  last edited by

                                  @folly
                                  no problem
                                  uninstalled previous version & made sure there were no remnants (just the cfg that was manually copied - deleted)
                                  reinstalled with new script & tested - games load :)
                                  elk.cfg present in /opt/retropie/configs/electron

                                  Top Job! :D

                                  F 1 Reply Last reply Reply Quote 1
                                  • F
                                    Folly @Lister of Smeg
                                    last edited by

                                    @lister-of-smeg

                                    Thanks for testing !

                                    Really odd that only "double quotes" give these problems.
                                    No idea why.

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      Folly @retrofan
                                      last edited by

                                      @retrofan

                                      You should try this part from @Lister-of-Smeg :
                                      https://retropie.org.uk/forum/topic/29402/bbc-micro-acorn-electron-emu/152

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        retrofan @Folly
                                        last edited by

                                        @folly

                                        I know the emulator is working properly on the raspbian desktop environment, I checked that yesterday.
                                        I use latest Retropie version you mention, which I installed eight weeks ago for the b-em Pico version.
                                        Tested this b-em allegro4 version on it (no updates / upgrade at all), the emulator worked, but no sound.
                                        I allready have HDMI set in alsamixer, but it doesnt help in retropie.
                                        @Lister-of-Smeg tested with fresh image and and confirmed in his message everything that happened to me yesterday.
                                        Today I don't have much time for testing and honestly I don't know what to do next.
                                        The Pico version under the same retropie image has sound.

                                        F Lister of SmegL 2 Replies Last reply Reply Quote 0
                                        • F
                                          Folly @retrofan
                                          last edited by Folly

                                          @retrofan

                                          Fair enough.

                                          Perhaps @Lister-of-Smeg can walk you through the solution.
                                          Well we keep this problem in mind, perhaps we can find a nice automated solution.

                                          You could also make an image with desktop and install retropie on top of that so you can use both worlds.
                                          If you want this and you have time we can do this in an other thread.

                                          1 Reply Last reply Reply Quote 0
                                          • Lister of SmegL
                                            Lister of Smeg @retrofan
                                            last edited by

                                            @retrofan
                                            no worries
                                            when I was testing this morning I had assumed that you may not have the pixel desktop installed (retropie setup / configuration / tools / raspbian tools / Install pixel desktop) as the pulse audio folder only appeared after I had done this
                                            Anyhoo
                                            I suspect the issue is only temporary until retropie is updated, as it seems to be a bit of a mix of alsa/pulse at the moment
                                            Perhaps it's not worth jumping through hoops today for something that may be fixed tomorrow? - I just do it for fun
                                            but if you want to try again sometime i'm happy to help :D

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.