Author Topic: Raspberry Pi F.A.Q.  (Read 6808 times)

progets

  • Sr. Member
  • ****
  • Posts: 470
    • View Profile
Raspberry Pi F.A.Q.
« on: January 13, 2017, 02:09:38 AM »
1. 90% of your issues will be resolved by making sure that you running the latest Raspbian, RetroPie and Attract-Mode. Please update these aspects of your Pi before asking questions.

Upgrading Raspbian. (Raspbian wiki - https://www.raspberrypi.org/documentation/raspbian/updating.md)
Code: [Select]
sudo apt-get update; sudo apt-get upgrade

Upgrading RetroPie. (RetroPie wiki - https://github.com/retropie/retropie-setup/wiki/Updating-RetroPie)
Code: [Select]
sudo bash ~/RetroPie-Setup/retropie_setup.sh
Choose option "U Update all installed packages"

Upgrading all aspects of Attract-Mode. (Attract-Mode wiki - https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-(Raspbian-Jessie))
Code: [Select]
cd ~
mkdir develop

sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg62-turbo-dev libfreetype6-dev  libudev-dev libfontconfig1-dev

cd ~/develop
git clone --depth 1 https://github.com/mickelson/sfml-pi sfml-pi
mkdir sfml-pi/build;cd sfml-pi/build
cmake .. -DSFML_RPI=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so
sudo make install
sudo ldconfig

cd ~/develop
git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure --enable-mmal --disable-debug --enable-shared
make
sudo make install
sudo ldconfig

cd ~/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make USE_GLES=1
sudo make install

cd ~
rm -r -f ./develop


2. If you started with anything other than the latest RetroPie image directly from the RetroPie website, ask the creator of the image for solutions to your problems. They will be better suited to answer them since Attract-Mode can be built and configured many different ways.

3. Videos don't play, stutter, turn grey, etc.. Enable hardware video decoding or use lower resolution videos.
 
To enable hardware video decoding: Configure-->General-->Video Decoder = mmal (if you can't select "mmal" run the steps for Attract-Mode upgrade in F.A.Q. #1)

4. I have random weird things happen when I exit a game or use a RetroPie configuration menu. This is an old known bug, run the steps for Attract-Mode upgrade in F.A.Q. #1 to fix it.

5. Some emulators like Daphne and Advance MAME run behind AM (a.k.a. in the background), my RetroPie runcommand dialog doesn't show in AM, or my RetroPie Setup Menu doesn't work properly in AM. Configure-->General-->Window Mode = FullScreen Mode

6. How can I access the /home/pi/.attract/ folder from Windows without using 3rd party software? You can use the RetroPie GUI that is described here http://forum.attractmode.org/index.php?topic=821.msg8138#msg8138.

You can do it from the command line like this:
Code: [Select]
sudo nano /etc/samba/smb.conf
Add these lines to the end of the file
Code: [Select]
[attractmode]
comment = attractmode
path = "/home/pi/.attract"
writeable = yes
guest ok = yes
create mask = 0644
directory mask = 0755
force user = pi
restart the samba service
Code: [Select]
sudo /etc/init.d/samba restart

7. How can I easily create custom wheels across mutiple emulators using the AM GUI? See this thread http://forum.attractmode.org/index.php?topic=1165.msg8455#msg8455 .

8. I have a lot of roms, how can I skip a page or a letter at a time?

Set these controls:
Configure-->Controls-->Previous Page
Configure-->Controls-->Next Page
Configure-->Controls-->Previous Letter
Configure-->Controls-->Next Letter

9. How can I add menus to switch booting from Attract-Mode to EmulationStation and vice versa? How can I run RetroPie Setup options from Attract-Mode? This post has a script to setup it up http://forum.attractmode.org/index.php?topic=1311.msg9542#msg9542

If you want to manually create a menu for the RetroPie Setup options in Attract-Mode see this post http://forum.attractmode.org/index.php?topic=869.msg6679#msg6679 . (Make sure you set Configure-->General-->Window Mode = FullScreen Mode)

10. In MAME emulators I see the romnames and not the friendly/nice looking game names. See these posts http://forum.attractmode.org/index.php?topic=1764.msg12450#msg12450 and http://forum.attractmode.org/index.php?topic=1665.msg11810#msg11810

11. I misconfigured my controls and now I can't make changes to correct them.

Reset your inputs to the default input mapping.
Code: [Select]
nano ~/.attract/attract.cfg
Replace the entire "input_map" section with the defaults listed below
Code: [Select]
input_map
configure            Tab
prev_letter          Up+LControl
next_letter          Down+LControl
filters_menu         Left+LControl
next_filter          Right+LControl
configure            Escape+Up
edit_game            Escape+Down
add_favourite        Escape+LControl
prev_letter          Joy0 Up+Joy0 Button0
next_letter          Joy0 Down+Joy0 Button0
filters_menu         Joy0 Left+Joy0 Button0
next_filter          Joy0 Right+Joy0 Button0
configure            Joy0 Up+Joy0 Button1
edit_game            Joy0 Down+Joy0 Button1
add_favourite        Joy0 Button0+Joy0 Button1
back                 Escape
back                 Joy0 Button1
up                   Up
up                   Joy0 Up
down                 Down
down                 Joy0 Down
left                 Left
left                 Joy0 Left
right                Right
right                Joy0 Right
select               Return
select               LControl
select               Joy0 Button0
default             back exit
default             up prev_game
default             down next_game
default             left prev_display
default             right next_display
Restart Attract-Mode

12. How can I get rid of the terminal/console text I see when I launch a game or exit a game? Check out this post http://forum.attractmode.org/index.php?topic=1642.0.

13. How can I have Attract-Mode default to my "Favorites" romlist instead of the "All" romlist? See this post http://forum.attractmode.org/index.php?topic=1613.0.
« Last Edit: July 16, 2017, 12:07:35 AM by progets »

hi-ban

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #1 on: March 23, 2017, 07:12:56 PM »
Hi!

I'm building this in a pi3. Started from a freshly installed (latest) retropie image from retropie website, and followed all the steps.
However, when building ffmpeg with mmal, in the step when you do:

./configure --enable-mmal --disable-debug --enable-memalign-hack --enable-shared

it does not recognize the  --enable-memalign-hack option (it says unknown option), so i had to omit that option and do:

./configure --enable-mmal --disable-debug --enable-shared

to be able to continue. Is that something to be concerned about? i'm getting some warnings when compiling (no errors, though) and i dont know if those warnings are supposed to happen...

progets

  • Sr. Member
  • ****
  • Posts: 470
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #2 on: March 24, 2017, 01:07:03 AM »
Hi!

I'm building this in a pi3. Started from a freshly installed (latest) retropie image from retropie website, and followed all the steps.
However, when building ffmpeg with mmal, in the step when you do:

./configure --enable-mmal --disable-debug --enable-memalign-hack --enable-shared

it does not recognize the  --enable-memalign-hack option (it says unknown option), so i had to omit that option and do:

./configure --enable-mmal --disable-debug --enable-shared

to be able to continue. Is that something to be concerned about? i'm getting some warnings when compiling (no errors, though) and i dont know if those warnings are supposed to happen...

I can confirm that the new ffmeg no longer supports the --enable-memalign-hack switch and it does seem to compile ok. I have adjusted the steps above to reflect the change.
« Last Edit: May 26, 2017, 11:00:42 PM by progets »

hi-ban

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #3 on: March 24, 2017, 02:44:06 PM »
I finished to compile it and i have the option to select mmal. However, my menus are a lot slower when using mmal, so i'm using software right now...

progets

  • Sr. Member
  • ****
  • Posts: 470
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #4 on: March 25, 2017, 12:46:59 AM »
I'm glad you got it working. If mmal decoding is slower than software decoding your videos might not be using codecs supported by mmal. If this is the case, mmal tries to load them and fails so it resorts to using software decoding anyways. This could be the reason that mmal is slower on your build.

estefan3112

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
    • Retrogaming on my Mac
Re: Raspberry Pi F.A.Q.
« Reply #5 on: March 29, 2017, 11:26:36 AM »
Hi I am using the experimental package of AttractMode from within RetroPie. No mmal hardware acceleration is available under the Video option. I understand that this seems to be the current overall status? Many thanks for your thoughts, Stefan

progets

  • Sr. Member
  • ****
  • Posts: 470
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #6 on: March 29, 2017, 08:11:21 PM »
Hi I am using the experimental package of AttractMode from within RetroPie. No mmal hardware acceleration is available under the Video option. I understand that this seems to be the current overall status? Many thanks for your thoughts, Stefan

That is correct, if you install Attract-Mode from the RetroPie script it does not install ffmpeg which is needed to use the mmal hardware decoding. If you want hardware decoding you must install ffmpeg before you install Attract-Mode.

You can install ffmpeg and then reinstall/update Attract-Mode from the RetroPie script if you want to add it after the fact.

estefan3112

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
    • Retrogaming on my Mac
Re: Raspberry Pi F.A.Q.
« Reply #7 on: April 15, 2017, 08:43:59 AM »
Confirmed. Procedure worked out very well. Having mmal hardware decoding enabled now. Many thanks!

janfribogar

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #8 on: June 16, 2017, 08:42:21 PM »
Not working mmal with the retropie 4.2.8.

I just follow the steps and no mmal support in attract mode.

"ffmpeg -decoders | grep h264" returns that mmal is enabed

Somebody can help? Im not really good with Linux.

Thanks in advance.

progets

  • Sr. Member
  • ****
  • Posts: 470
    • View Profile
Re: Raspberry Pi F.A.Q.
« Reply #9 on: June 19, 2017, 10:44:03 PM »
Not working mmal with the retropie 4.2.8.

I just follow the steps and no mmal support in attract mode.

"ffmpeg -decoders | grep h264" returns that mmal is enabed

Somebody can help? Im not really good with Linux.

Thanks in advance.

Since the change with the ffmpeg options mention above, the "mmal" option doesn't show up on the Pi. Mmal appears to be used anyway (even if it shows "software").

You can manually change the attract.cfg to set mmal if you'd like.

attract.cfg
Code: [Select]
video_decoder        mmal