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

    [Guide][DIY] Wine and Retropie - Legacy driver - Raspberry Pi 3B+

    Scheduled Pinned Locked Moved Ideas and Development
    box86legacy driverpi3 b+wine
    46 Posts 6 Posters 7.2k 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.
    • T
      thepigamer @ExarKunIv
      last edited by

      @exarkuniv
      Pop sound means it works.
      Which sound device shows winecfg? Alsa or pulse?
      Does Diablo 2 output sound in Raspbian? it might be a problem with Diablo 2 itself.

      See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

      ExarKunIvE 1 Reply Last reply Reply Quote 0
      • ExarKunIvE
        ExarKunIv @thepigamer
        last edited by

        @thepigamer in Raspbian it works and sounds great, no issues with anything

        and it says winalsa.drv for winecfg, and it is set for system defaults for all outputs

        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
        Maintainer of RetroPie-Extra .

        T 1 Reply Last reply Reply Quote 0
        • T
          thepigamer @ExarKunIv
          last edited by thepigamer

          @exarkuniv
          I would focus on getting aplay and paplay to work.

          That article hereafter tells you to set hdmi_drive=2 but I guess you already did it.
          Tag "Sound does not work at all, or in some applications" could however help you

          https://raspberrypi.stackexchange.com/questions/44/why-is-my-audio-sound-output-not-working

          Hope it can help. Ive also had problems when trying to install sound from scratch... it's not easy when its not base installed :-/

          See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

          ExarKunIvE 2 Replies Last reply Reply Quote 0
          • ExarKunIvE
            ExarKunIv @thepigamer
            last edited by

            @thepigamer thanks for the info, and yes for now ill work on getting aplay and paplay to work.

            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
            Maintainer of RetroPie-Extra .

            1 Reply Last reply Reply Quote 0
            • ExarKunIvE
              ExarKunIv @thepigamer
              last edited by

              @thepigamer at this point i have no idea. i think its something to deal with the file that is used to launch the game. i looked at the last thing you linked and going off of what that said, my sound is working fine.

              maybe someone who i has more experentce on this or even got it working, but im lost.

              time for me to move on to something else.

              thanks for all your help

              RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
              RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
              Maintainer of RetroPie-Extra .

              T 1 Reply Last reply Reply Quote 0
              • T
                thepigamer @ExarKunIv
                last edited by

                @exarkuniv
                Hello,

                Maybe this can be a track for you:
                https://bbs.archlinux.org/viewtopic.php?id=252174
                This is an archlinux thread but such packages might exist as well in debian.

                Using winetricks might help you change from alsa to pulse or vice-versa in order to try it ahead.
                For some reason box86 redirects sound quite well, no idea why arm-wine has so many problems with this.
                That would indeed be cool to run D2 with wine-arm from RetroPie and get a full compatibility.

                See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

                ExarKunIvE 1 Reply Last reply Reply Quote 0
                • ExarKunIvE
                  ExarKunIv @thepigamer
                  last edited by

                  @thepigamer thanks for that, i will have to take a look into it

                  for right now i just have raspbian with desktop installed and then retropie installed on top of that.
                  and i have it working good.

                  i might use a new card and try messing around more with what you have given me to see if there is a different way

                  RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                  RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                  Maintainer of RetroPie-Extra .

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    thepigamer @ExarKunIv
                    last edited by

                    @exarkuniv
                    might be something like
                    sudo apt-get install -y alsa-lib alsa-plugins libasound2-plugins

                    See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

                    ExarKunIvE 1 Reply Last reply Reply Quote 0
                    • ExarKunIvE
                      ExarKunIv @thepigamer
                      last edited by

                      @thepigamer after some work i have come across what is causing the sound to stop working,
                      but so far no clue in a work around

                      it seems when i do a OS update the sound is killed. if i leave the OS alone and only update the EMUs and ports i still have sound.

                      so i when and manuly updated the OS and what not.
                      i have found that raspberrypi-kernel is what kills the sound for diablo2
                      no sure what it is changing
                      if i have that alone i still have sound.

                      so for now im leaving it
                      thanks for all your help on this

                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                      Maintainer of RetroPie-Extra .

                      T 1 Reply Last reply Reply Quote 1
                      • T
                        thepigamer @ExarKunIv
                        last edited by

                        @exarkuniv Pi 4 users usually don't have to recompile kernel. And in this case it's a bad thing.

                        I keep a copy of my ready-to-install 3G/1G kernel for my pi3 on my ext4 sd card so whenever something changes on my kernel, I just retype "kernel-install.sh" to revert to the old kernel.

                        That might be a good idea to try to recompile your kernel when you get some time and keep a compiled version handy. On Pi3 it takes a single night to compile... you might have it ready in one afternoon on Pi4.

                        https://www.raspberrypi.org/documentation/linux/kernel/building.md

                        I won't advise you to just install my Pi3B+ kernel because I don't know if it will start on your Pi4.

                        See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

                        ExarKunIvE 1 Reply Last reply Reply Quote 0
                        • ExarKunIvE
                          ExarKunIv @thepigamer
                          last edited by

                          @thepigamer not sure if its recompiling it completely, i was just apt-get update and updating what comes up, thats how i found that raspberrypi-kernel is where the sound breaks.

                          which is why when i do the update through the Retropie setup and let it update the OS and drivers that the sound stops.

                          since when im dont with my build its not going to be on the network, im not going to worry about it. since everything working just fine. i was more on a mission to find out what was causing the problem

                          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                          Maintainer of RetroPie-Extra .

                          1 Reply Last reply Reply Quote 1
                          • T
                            Troopaking
                            last edited by Troopaking

                            Hello so I have been playing with box86 on twister just found you a George's posts .
                            Awesome work on both ends but I can't get either to open my games.
                            I tried your method yesterday got startx xterm to open but couldn't/didn't understand resize of xterm.
                            UPDATE i resized xterm windows fine .
                            But when i run box86 install script it gets hung up here.
                            cd box86;mkdir build;cd build; cmake .. -DRPI3=1;make;sudo make install

                            I am now trying to install George's scripts in combination with yours .

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              thepigamer @Troopaking
                              last edited by thepigamer

                              @troopaking
                              Hello,

                              First something is a little puzzling: If you are using Twister it probably means that RetroPie is installed as an app and not as a system. It means that normally xserver is already there and that at some point it could be compliant with KMS/OpenGL. You might meet a few problems with my guide since my guide (especially in the graphical tweaking part, tvservice, xrandr, startx... part) works for someone who installed RetroPie as a main system.
                              For example if you are starting RetroPie from Twister UI you will not have to do that startx/xterm/etc. contorsions. However if you are going to console with ctrl+&lt+F1 and ditch Twister UI you will be back to my guide. I still suggest that the interest is limited if you are already having Twister or RPD since it's usually easier to run Wine games directly from LXDE or XFCE. The main point of this guide is to use RetroPie as an OS and make a SD card out of it which will exclusively use RetroPie and avoid desktop environment to make a pure gaming machine.

                              That said, on to your problem:

                              • If you want to know where it hangs, you may try to replace the inline ; by a return (next line). In our case:
                                cd box86
                                mkdir build
                                cd build
                                cmake .. -DRPI3=1
                                make
                                sudo make install

                              You will know which command hangs.
                              A friendly reminder: -DRPI3=1 specifies you are compiling ptitSeb's work for Raspberry Pi 3. If you have a Pi 4 you should use -DRPI4=1

                              It also happens that

                              • "make" command crashes, just relaunch it
                              • "make" command freezes. It's often a problem with your swap file. You'll need to change it. Follow that guide (I didn't do a guide on swap file, there are plenty of them everywhere): https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/
                                If you are having problems with compiling, George's guide will also fail because it compiles box86 at some point too. so you will have to check your swap file anyways.

                              Hope you'll get everything solved that way. If you have further questions, don't hesitate!

                              TPG

                              See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

                              1 Reply Last reply Reply Quote 0
                              • T
                                thepigamer
                                last edited by

                                Hello again,

                                If Im not mistaken, box86 is installed with base version of Twister OS.

                                Wine games should just start fine in TwisterOS. Games should actually run as you try to launch them like you would on any linux; Then you'll only need to add the emulator entry to RetroPie.

                                See my Raspberry Pi tutorials at https://thepigamer.blogspot.com/p/tutorial-list.html

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  Troopaking @thepigamer
                                  last edited by

                                  @thepigamer
                                  I Bielefeld issue was building on a pi 4 . Using drpi=3 script.
                                  In twisteros you can launch just like Linux system from Lutris frontend is easiest.
                                  I was trying to launch from retropie. Now successful using georges forum on here .

                                  1 Reply Last reply Reply Quote 0
                                  • G George referenced this topic on
                                  • I
                                    Identifizierter
                                    last edited by Identifizierter

                                    Hey there,

                                    maybe someone has a solution. I tried to install the dependency Mesa, the wine and box 86 emulator with the help of the script from GeorgeMcCullen on a Raspberry pi 3b.

                                    Everytime I try to install the mesa dependency the script stops at 750/1179 and I don't know why.
                                    maybe there is an updated script somewhere?

                                    1 Reply Last reply Reply Quote 0
                                    • I
                                      Identifizierter @thepigamer
                                      last edited by Identifizierter

                                      @thepigamer Hey there and thanks for linking your post @George,

                                      i was trying to get wine running now with your guide on your blog, but as i am not very experienced with all this linux stuff, i don't know where to put the wine Kernel or what the exact commands to build it are.

                                      Any help would be greatly appreciated!

                                      1 Reply Last reply Reply Quote 0
                                      • ExarKunIvE ExarKunIv referenced this topic on
                                      • 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.