Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

McAirpos disappearing after reboot on Recalbox 8.0(unresolved, but working on 4 of developer's tests) #34

Closed
cfpwastaken opened this issue Dec 25, 2021 · 95 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@cfpwastaken
Copy link

Everytime I reboot my Recalbox 8.0 the icon for McAirpos gets removed for some reason, requiring me to go into the terminal and run the install script again. This is very bad for a portable game console if it is not portable anymore because you need a keyboard and internet to run the script. Tried using a Recalbox 7 image but i cant find it on the website.

~cfp

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

Hi @cfpwastaken,

Thanks for trying McAirpos and for your feedback!

I have not encountered this before while @rdmueller and I just recently made and tested the install scripts.

So, I need to think a little about this, and maybe try it myself on yet another clean install.

Is there anything you can tell me about your hardware, the RB image you are using(fresh install? Version?), error messages or anything else out of the ordinary that you observed while installing?

The only thing close to this I have observed, was problems in the beginning on v7.1.1, where the overlay file system overwrote the changes I made to es_systems.cfg.

So maybe this has something to do with systemlist.xml being overwritten somehow every reboot on RB v8.0?

@cfpwastaken
Copy link
Author

I really dont know. Im currently trying to get a Scripts system to execute and restart emulationstation but it doesnt show up :/
Hardware: RPI 3 with a broken camera port, if thats important (most likely not but still), Waveshare Game HAT
Version: 8.0-Electron
Errors: uh wait let me see

Thanks for the quick response btw.

@cfpwastaken
Copy link
Author

dont see any errors sadly.

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

Could you please check right after a reboot whether there is a McAirpos entry at the end of the file /recalbox/share_init/system/.emulationstation/systemlist.xml?

@cfpwastaken
Copy link
Author

nope. nothing there

@cfpwastaken
Copy link
Author

in "virtual systems" i found the virtual "arcade" system. Activated it, thought it was mcairpos 😂

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

Ok, if the McAirpos entry is not in systemlist.xml after reboot(I presume it is there again right after running the install script?), it looks like a fight going on with the overlay file system restoring the original systemlist.xml on every reboot.

I really do not remember how I got out of this loop back on v7.1.1, but had something to do with writing to the original file(regardless of name).

Have you spent much effort on tweaking and customizing your RB installation, or might a fresh image install and try again be an easier option?

@cfpwastaken
Copy link
Author

actually, i didnt actually do anything, i just changed the animation at most.

@cfpwastaken
Copy link
Author

and i dont really want to reinstall it as i would have to make my customizations again, make the controller work again etc.

@cfpwastaken
Copy link
Author

is there really no solution other than to reinstall?

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

Understand.

Well, at least we now know with some certainty what the problem is. All that remains then is to find a solution… ;-)

I bet there should be some forum posts about similar issues, since the overlay file system is made to keep the installation working with system files in original state.

I will see during the coming Christmas days if I get time to try to reproduce or test the install scripts on a fresh RB install.

If you beat me to the punch with a solution, please report back so others can benefit from the solution as well.

Sorry I am not able to solve this right away and good luck!

@cfpwastaken
Copy link
Author

All that remains then is to find a solution… ;-)

Yep. When it is fixxed we will all prob say "ooooh that makes total sense"

Trying some other stuff to fix it later as battery needs to charge

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

is there really no solution other than to reinstall?

I am not sure either if a reinstall will solve this. The problem might be in my install script. So I would not recommend a fresh install unless you like to tinker.

But we know that RB overwrites systemlist.xml on reboot.

So the trick is to somehow get RB to keep the McAirpos entry in systemlist.xml untouched between reboots…

@cfpwastaken
Copy link
Author

cant we just edit whatever that overlay file system will overwrite the file to 🤔

@cfpwastaken
Copy link
Author

i think i have a fix. Pray that it will work

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

cant we just edit whatever that overlay file system will overwrite the file to 🤔

Good idea! If you can find and get access to this original/template, that should work(if there is not a check/hash somewhere that will break your install when tampering…).

It will always be overwritten on updates, as will the McAirpos installation.

I am sorry, I am on my phone at the moment, and not able to dive into my Raspberry Pi. ;-)

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

i think i have a fix. Pray that it will work

Crossing my fingers as well!… ;-)

@cfpwastaken
Copy link
Author

I am sorry, I am on my phone at the moment

What a legend, he is at his phone trying to fix an issue with someone

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

I am sorry, I am on my phone at the moment

What a legend, he is at his phone trying to fix an issue with someone

Haha, not as legendary as you make it sound; more slacking on the sofa on Christmas Day, after too much to eat and getting a short moment of peace of mind away from the kids and for myself… ;-)

How did it go?

@cfpwastaken
Copy link
Author

im still waiting for this stupid battery to charge.

@cfpwastaken
Copy link
Author

cfpwastaken commented Dec 25, 2021

oh cool i think i bricked the system

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

oh cool i think i bricked the system

What happened?!?

@cfpwastaken
Copy link
Author

i dont know 😂 thank god there was nothing important on it. I think its because of the low battery it shut off

@cfpwastaken
Copy link
Author

oh i dont think it was, i think it was something else. God dang it i already reflashed the card

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

oh i dont think it was, i think it was something else. God dang it i already reflashed the card

Good! Now I am full of anticipation…

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

Worked on a fresh install?

@cfpwastaken
Copy link
Author

didnt try yet. The battery is full now and recalbox is installing. Im trying to finish this today asap

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

👍
RB and Batocera are not identical anymore, but both stem from the same trunk. Here the overlay file system is explained:
https://wiki.batocera.org/doku.php?id=modify_the_system_while_it_s_running

Same, same, but a little bit different(files) on RB.

Editing the above mentioned systemlist.xml has worked for me, though, without the use of any special save-overlay script.

I hope you get it to work!

@Vegz78
Copy link
Owner

Vegz78 commented Dec 25, 2021

Here from before RB went from es_systems.cfg to the current systemlist.xml:
https://forum.recalbox.com/topic/17186/problem-custom-es_system-cfg/

@cfpwastaken
Copy link
Author

ok? Im trying on clean install rn
perfect moment for you to return

@Vegz78 Vegz78 added bug Something isn't working help wanted Extra attention is needed labels Dec 26, 2021
@cfpwastaken
Copy link
Author

cfpwastaken commented Dec 26, 2021

Ok ¯\_(ツ)_/¯
I could create a .img file from my card and you could flash it to yours and see what happens?

@cfpwastaken
Copy link
Author

I also found another issue while testing but i made it its own issue #35

@Vegz78
Copy link
Owner

Vegz78 commented Dec 26, 2021

Ok ¯_(ツ)_/¯
I could create a .img file from my card and you could flash it to yours and see what happens?

Or maybe other way around, that you get a copy of my working image?

But we’re out ice skating right now.

Are we using the same RecalBox image, by the way?
https://www.recalbox.com/download/stable/rpi/rpi3/alternative

@cfpwastaken
Copy link
Author

i used the one in raspberry pi imager.

@Vegz78
Copy link
Owner

Vegz78 commented Dec 26, 2021

i used the one in raspberry pi imager.

Ok, just an idea to try from the same basis.

@Vegz78
Copy link
Owner

Vegz78 commented Dec 26, 2021

Somewhere I could send you a download link to a working image?

@cfpwastaken
Copy link
Author

do you have an image of the card?

@cfpwastaken
Copy link
Author

downloading would take very long for me as i live in germany soo

@Vegz78
Copy link
Owner

Vegz78 commented Dec 26, 2021

Not yet, I was hoping you’d try this image first and run the McAirpos install script as first thing, like I had success with:
https://www.recalbox.com/download/stable/rpi/rpi3/alternative

I can’t figure out a reason why the same actions on the same image would produce a different result?

@rdmueller
Copy link
Contributor

@cfpwastaken German internet is not that slow 😁

@Vegz78
Copy link
Owner

Vegz78 commented Dec 27, 2021

Ok, @cfpwastaken!

I just made a final attempt where I tried to replicate your situation, as described by you above, the best I could...

It - kind of unfortunately - was also successfull:

  1. Flash Recalbox v8.0 image for RPi 3 on SD using Raspberry Pi imager v1.6.2 running on Debian Buster
  2. Boot image on Raspberry Pi 3 (B+), showing version logo "8.0-Electron 2021/12/01 13:43", same as above
  3. Ssh into running Recalbox installation(logon: root/recalboxroot)
  4. First action, run McAirpos installation script with HDMI fix:
    curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install_recalbox_v8.0_HDMI-Audio-Fix.sh | bash -
  5. Over the Recalbox samba share, copy a MakeCode Arcade .elf game file to /recalbox/share/roms/makecode
  6. Reboot

Installation of McAirpos is kept intact between reboots, and games and everything else seem to work fine.

Since I am unable to replicate the error you experience with the McAirpos entry disappearing from the Recalbox main menu/systemlist.xml, since at least 4 different attempts of mine where all successfull, and since there seemingly is no more response or attempts at gettig this to work from you, I am closing this issue as unresolved.

I am sorry that McAirpos did not work for you on your Recalbox v8.0 installation, and I hope that any of my 4 successfull attempts described above will also work for you!

@Vegz78 Vegz78 closed this as completed Dec 27, 2021
@Vegz78 Vegz78 changed the title McAirpos disappearing after reboot on Recalbox 8.0 McAirpos disappearing after reboot on Recalbox 8.0(unresolved, but working on 4 of developer's tests) Dec 27, 2021
@cfpwastaken
Copy link
Author

showing version logo "8.0-Electron 2021/12/01 13:43"

Actually that is the version im using, same date, same time

I will try doing it on a fresh image again later.

German internet is not that slow

Yes but a >16GB image of an SD Card can take a very long time to download, especially when downloading from another country

@Vegz78
Copy link
Owner

Vegz78 commented Jan 3, 2022

I will try doing it on a fresh image again later.

did it work?

@cfpwastaken
Copy link
Author

i didnt try yet because i dont have another sd card lying around, and i dont think i can copy the contents of the current install to my computer and flash it again in case i want to go back.

@Vegz78
Copy link
Owner

Vegz78 commented Jan 3, 2022

Ok, just reopen the case if/when you get a chance to try.

@cfpwastaken
Copy link
Author

I just got it working on a fresh install of retropie. Works as expected, its just that the size of the games are way too small (should I open another issue for this?). This may be a configuration error of retropie and i will look into this tomorrow. I haven't tested it on recalbox yet but I will try that too.

@Vegz78
Copy link
Owner

Vegz78 commented Apr 9, 2022

hi,

No need for new issue.

What do you mean by «the size of the games are too small»?

Do the games run as they should or not? Too small compared to what?

@cfpwastaken
Copy link
Author

too small compared to the menu i guess.

@cfpwastaken
Copy link
Author

oh well, it was a configuration issue as overscan is enabled by default. Thanks anyway

@Vegz78
Copy link
Owner

Vegz78 commented Apr 10, 2022

oh well, it was a configuration issue as overscan is enabled by default. Thanks anyway

Ok, the screen image of the game was projected too small… ;-)

Great to hear that you found a solution and that McAirpos is now working for you! Thanks also for contributing here with the solution.

Happy retro games making and playing!

@Vegz78
Copy link
Owner

Vegz78 commented Jun 5, 2022

Got it working on Recalbox yet, @cfpwastaken? ;-)

@cfpwastaken
Copy link
Author

I will tell you when I decide I will test it

@cfpwastaken
Copy link
Author

I am really sorry for the long wait. The menu is now persistently showing up in the recalbox menu. However, the games dont launch at all. It just kicks me back to the menu saying "Looks like your game didn't launch!"
The file has chmod +x and the directory is writeable.

@rdmueller
Copy link
Contributor

Are you able to launch the games manually? Ssh into the system and start them?

@cfpwastaken
Copy link
Author

the readme only says how to do it on retropie. And it seems like the recalbox script stores it somewhere else.

@Vegz78
Copy link
Owner

Vegz78 commented Oct 30, 2022

What does the McAirpos log say right after trying to launch? Please submit here.

And also a good idea to try to launch manually, ref. @rdmueller's suggestion:
https://github.com/Vegz78/McAirpos#Usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants