Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: MikesArcade on March 29, 2016, 08:41:47 PM

Title: Raspberry Pi 3 Image
Post by: MikesArcade on March 29, 2016, 08:41:47 PM
Is there an attract mode image that runs on the Raspberry Pi 3?
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on March 30, 2016, 02:54:53 AM
Not yet.
I unboxed my rpi3 last night and trying to get dietpi Jessie edition to run on it.
Title: Re: Raspberry Pi 3 Image
Post by: dtyge on March 30, 2016, 02:58:20 PM
Started working on this myself last night -- since my PI3 finally showed up.

Did not have any problems getting attractmode to compile and  run on the default raspian image provided on the NOOBS :) card that came with my PI3....(using the instructions I found on this forum). 

Biggest divide right now is that most of the "pre boxed"  pi emulation scene is dedicated to framebuffer setups (like RetroPI) to avoid the overhead of X -- and attractmode requires X.   

Would be sweet to have an out of the box process like RetroPI that included attractmode as the default FE....Since it is so much prettier and more flexible than EmulationStation.

Personally,  I have not had any issues running any of the pre compiled emulators inside of X --- but I am dead set on having a clean (up to date) Retroarch/Libretro implementation with all working libraries, that is front ended by Attractmode.   Don't really have the time to wait 24 hrs for everything to compile itself....

Was almost there last night until I realized that RetroPie uses emulationstation to handle controller config and have somehow disabled RGUI  (at least I could not figure out how to invoke RGUI on the RetroPie retroartch binary to manually configure my gamepad like I normally would with all other RetroArch implementations -- and did not have enough time to manually add the cfg's for my gamepad).....So I am stuck there for the moment.

Tonight I am going to go just opposite,  and try to install the RetroPie image and get everything configured and running -- and then turn off Emulation Station -- and then install X and then try to compile and install attractmode on the retropie image itself....That to me would be cleaner (and more lean)  than what I tried last night.

Title: Re: Raspberry Pi 3 Image
Post by: dtyge on March 30, 2016, 08:00:55 PM
Update:  It worked.   2.1 GB disk space total with Retropie + Attractmode with barebones X.

Took me a few minutes to see how RetroPie handled all of it's configs....but it works like a charm

here is an example of an Attratmode config example for GBA (without the artwork lines):

executable           /opt/retropie/emulators/retroarch/bin/retroarch
args                 -L  /opt/retropie/libretrocores/lr-vba-next/vba_next_libret
ro.so --config /opt/retropie/configs/gba/retroarch.cfg "[romfilename]"
rompath              /home/pi/RetroPie//roms/gba
romext               .gba
system               Nintendo Game Boy Advance (GBA)
info_source          thegamesdb.net

Title: Re: Raspberry Pi 3 Image
Post by: Finhead on March 30, 2016, 10:44:05 PM
Update:  It worked.   2.1 GB disk space total with Retropie + Attractmode with barebones X.

Took me a few minutes to see how RetroPie handled all of it's configs....but it works like a charm



Did exactly this a few days ago, works great.  I have it booting directly into AM now as well, so much nicer than RetroPie IMO.
Title: Re: Raspberry Pi 3 Image
Post by: tobot on March 31, 2016, 06:00:37 AM
I would love to try out AM on my new Pi3, not savvy enough to do it but I can take instructions, can some kind soul please do a step-by-step guide?
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on March 31, 2016, 07:05:56 AM
DietPi distro i use is only updating jessie for rpi3.
Unfortunately the libav dev libraries seem to have broken dependencies.

so i'm dead in the water until I find a different distro.
Maybe miniban.


Title: Re: Raspberry Pi 3 Image
Post by: dtyge on March 31, 2016, 07:34:50 AM
I would love to try out AM on my new Pi3, not savvy enough to do it but I can take instructions, can some kind soul please do a step-by-step guide?

The guide in the wiki worked great for me on both the Vanilla Raspian image and RetroPie. 

https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-(Raspbian-Jessie)

I really like the RetroPie image because I am a big fan of the libretro project --- and there has been a lot of work on the RetroPie image to organize things to the 9th degree and to also include a cool setup script and precompiled binarys of most the libretro cores.   The only thing it is missing is Attractmode....And the wiki article linked above takes care of that....(Don't forget the part at the end that relates to installing xinit, since RetroPie does not have an X implementation.)
Title: Re: Raspberry Pi 3 Image
Post by: qnology on March 31, 2016, 08:06:38 AM
(Don't forget the part at the end that relates to installing xinit, since RetroPie does not have an X implementation.)

How about the ffmpeg part? I'm brand new to Attract Mode, but interested in the video previews that is similar to hyperspin. Thanks
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on March 31, 2016, 08:09:24 AM
I would love to try out AM on my new Pi3, not savvy enough to do it but I can take instructions, can some kind soul please do a step-by-step guide?

Just to add to Dtyge's post.

I had to update and upgrade the RetroPie 3.6 install or wifi will drop after 2 min.

Don't forget to patch the smfl libraries from here http://forum.attractmode.org/index.php?topic=523.msg3671#msg3671 (http://forum.attractmode.org/index.php?topic=523.msg3671#msg3671)

If you want to boot direct into AM once you have it all setup replace "emulationstation" with "xinit attract" at the end of the second line in this directory.
/etc/profile.d/10-emulationstation.sh

At least that is what worked for me.
Title: Re: Raspberry Pi 3 Image
Post by: tobot on March 31, 2016, 10:17:49 AM
Thanks dtyge and Finhead,

About to dig in, so just a quick recap to make sure I have the steps right;

1. Clean install Retropie 3.6
2. update and upgrade
3. Install dependencies for SFML and AM
4. patch SMFL libraries
5. Download and build SFML
6. Build AM
7. Install xinit
8. Profit?

Not very clear on what I need to do to patch SMFL though. Help?
Title: Re: Raspberry Pi 3 Image
Post by: MikesArcade on April 03, 2016, 09:53:42 PM
Ok.
I read through all the posts so far.
What exactly is 'X'?

I'm a C++ programmer by trade so not afraid to compile what I need.
The pi scene is 100% new to me.

Super detailed instructions would be nice.
Thanks!
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 04, 2016, 09:47:27 AM
ok, got this going on dietpi with my rpi3.
My image was corrupted just enough to break apt-get I guess.

I did not patch SFML and it compiled just fine for me without errors.
AM compiled without errors also.

just trying to get shader's to work with LR-mame2003 now.
Title: Re: Raspberry Pi 3 Image
Post by: qnology on April 04, 2016, 02:51:17 PM
Nice.

I'm brand new to attract mode (familiar hyperspin on a PC and EmulationStation on the Pi) and just received my Pi 3. Would love to give your image a try when it's ready.

Thank you for sharing your work!

Q
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 04, 2016, 07:30:07 PM
I didn't patch SFML either, I think it's only needed for odroid but I could be wrong.

For ffmpeg,  sudo apt-get ffmpeg install will work fine for low quality videos. But, if you want HD you need to compile with some specific flags, I think.

Tip: you can rerun ./sudo retropie_setup.sh post install to add more emulators, install xbox &  ps3 controller drivers and also change whether or not emulationstation auto starts.   
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 04, 2016, 08:17:57 PM
I can try to compile ffmpeg but it's been done away with in jessie RPI.
avconf replaced it.

ok.
found more info & having some depends issues with compiling the ffmpeg depends on jessie but I think I can get it to work.


Edit: 5 hrs and counting on just one part of ffmpeg compile with all 4 cores on rpi3.
Can't tell if it stalled or its just thinking.
CPU is doing something then spikes then drops.

May use the vmare image on my mainpc to get this compiled this week.


Title: Re: Raspberry Pi 3 Image
Post by: MikesArcade on April 06, 2016, 01:07:44 AM
I ended up compiling the Attract.exe from sources.

It wasn't horrible.
Title: Re: Raspberry Pi 3 Image
Post by: bionictoothpick on April 06, 2016, 04:28:17 AM
I'm being lazy and waiting for an OSMC/AttractMode image...

However, as soon as I finish my current project I might have to venture into it myself.
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 06, 2016, 06:56:04 AM
Ah, nitro...

Remember, the days before there was a wiki guide? Fun times... I made the mistake of compiling retropie and all the emulators, I swore that I would never do that again, LOL...
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 06, 2016, 09:09:17 AM
Ah, nitro...

Remember, the days before there was a wiki guide? Fun times... I made the mistake of compiling retropie and all the emulators, I swore that I would never do that again, LOL...
every so often I accidentally hit that menu option & end up just killing the process.

Well compiling ffmpeg & all it's dependencies is turning out to be fun.
So many odball things needed to be installed because of dietpi being so lean.
probably should of written those down.....

Got all the way through to actual ffmpeg & its telling me the first depend I compiled correctly isn't installed.
I thought on the way to work that maybe I needed to reboot. LOL!

Also, my powersupply is not up to snuff despite being 2.5a.
when I try to compile with more than one core stuff breaks and the make command fails.
figured it out when I saw the rainbow square come up in the corner of the screen.
Ordered an official wallwort with my second rpi3.

but i'm close to hardware accelerated ffmpeg binaries. :)
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 07, 2016, 04:16:26 AM
quick update.
no ffmpeg hardware acceleration yet.

I compiled with what I thought was the proper mmal flag.
no go.

I installed the .deb package that was compiled with mmal support & still seeing 70-90% cpu when watching 1080p videos.
though I had to force it because it was a wheezy .deb and the libav libraries are not named the same in jessie.

All the guides are for wheezy not jessie which no longer has ffmpeg.
jessie is libav now.
dietpi wheezy isn't updated for rpi3 so i've kind of got a chicken/egg situation here.

however omxplayer plays hd videos with 4-5% cpu.
anychance we can make that the default video player for AM?





Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 07, 2016, 07:34:02 AM
Nitro-

Here is a guide for installing ffmpeg on Jessie, aka ver 8

https://www.assetbank.co.uk/support/documentation/install/ffmpeg-debian-squeeze/ffmpeg-debian-jessie/ (https://www.assetbank.co.uk/support/documentation/install/ffmpeg-debian-squeeze/ffmpeg-debian-jessie/)
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 07, 2016, 09:07:00 AM
Nitro-

Here is a guide for installing ffmpeg on Jessie, aka ver 8

https://www.assetbank.co.uk/support/documentation/install/ffmpeg-debian-squeeze/ffmpeg-debian-jessie/ (https://www.assetbank.co.uk/support/documentation/install/ffmpeg-debian-squeeze/ffmpeg-debian-jessie/)

The google-fu is strong with this one.

Looks like -enable mmal flag is allready set in the config file.
sweet.

My new power adapter should be in today so i will be able to compile with all 4 cores tonight!
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 07, 2016, 09:25:11 AM
Hey, I need someone to be my "Huck". Why do it yourself when someone else can do it for you. :p

Speaking of power adapter, my new pi-drive should be in today as well. It's been on back-order for weeks. Are you using a usb powered hub to offset some load?
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 07, 2016, 10:25:45 AM
:)

I do have a powered hub but it doesn't seem to make much of a difference.
That hub would actually power my old rpi1.

It helped me with my rpi2 also when i didn't have a 2 amp phone charger but doesn't seem to touch the rpi3.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 08, 2016, 06:05:09 AM
\fail.

grabbed a new card and started from scratch.
I'm pretty sure I boinked my install pertaining to ffmpeg.

let dietpi update over night.
got up this morning to start compiling ffmpeg......raspbian mirror is down so couldn't update the system.  :-\

oh well, this weekend I guess.
Title: Re: Raspberry Pi 3 Image
Post by: verion on April 08, 2016, 06:07:17 AM
and how's the engine swap in your car going?
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 08, 2016, 07:29:01 AM
and how's the engine swap in your car going?

that was done 2 weeks ago.
drove it for a whole day then is crapped out.
spent a week tracking down a short & bad sensors.
couldn't get it to keep running.

took it to a mechanic this week he found the EVAC had a small leak & the camshaft sensor was bad.
so now i'm just going to drive it around this weekend to clear the errors out of the computer so I can get it inspected.

Title: Re: Raspberry Pi 3 Image
Post by: verion on April 08, 2016, 07:35:14 AM
ehhhh... those computerised cars :)
I remember the old days when I could fix my '73 VW beetle with some simple tools, and I was fine tuning carburetor with screwdriver until it "sounded" good.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 08, 2016, 08:27:28 AM
ehhhh... those computerised cars :)
I remember the old days when I could fix my '73 VW beetle with some simple tools, and I was fine tuning carburetor with screwdriver until it "sounded" good.

I remember those days as well.
Nothing but cars from the 70's while in the late 80's & early 90's.
Then fuel injection happened. :)
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 08, 2016, 09:36:56 AM
Hey!, fuel injection is a good thing ;) Damn those butterfly floats.
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 08, 2016, 06:51:13 PM
Nitro-

FFMpeg is compiling, got a few library depreciated warnings but its going. Crosses fingers and throws chicken bones.
Title: Re: Raspberry Pi 3 Image
Post by: raygun on April 08, 2016, 11:01:55 PM
however omxplayer plays hd videos with 4-5% cpu.
anychance we can make that the default video player for AM?

If only it was that easy!  Using the omxplayer to attractmode would be a serious undertaking, I don't think it would be an easy swap  :(
Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 10, 2016, 11:38:51 AM
Here is my attempt at an image for the Raspberry Pi with Attract-Mode. I built this using a Pi3, but I think it should work ok on others.
http://smartretro.co.uk/forums/viewtopic.php?f=3&t=8277

Video Guide here:
https://www.youtube.com/watch?v=lrXe3icI-mI

It will boot to the CLI so you need to login with pi/raspberry.

Then resize the filesystem using the "sudo raspi-config" command.
When its rebooted and you have logged in, run it with "xinit attract"

Or you can get it to auto boot into Attract-Mode if you run the retropie setup, and in the setup menu set it to start Emulation Station by default (although because of the edit below it will start Attract Mode)
"sudo /home/pi/RetroPie-Setup/retropie_setup.sh"
3 - Setup
Auto Start Emulation Station
Start Emulation Station at boot
Quit out of setup


edit this file
"sudo nano /etc/profile.d/10-emulationstation.sh"
and replace emulationstation with "xinit attract"

Please note if you auto start it, it seems to not like the keyboard after a while for some reason, not really a problem if you configure your own controller. So I'd get your controller working with it before you auto start it.
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on April 10, 2016, 01:09:13 PM
Here is my attempt at an image for the Raspberry Pi with Attract-Mode. I built this using a Pi3, but I think it should work ok on others.
http://smartretro.co.uk/forums/viewtopic.php?f=3&t=8277

Video Guide here:
https://www.youtube.com/watch?v=lrXe3icI-mI

It will boot to the CLI so you need to login with pi/raspberry.

Then resize the filesystem using the "sudo raspi-config" command.
When its rebooted and you have logged in, run it with "xinit attract"

Or you can get it to auto boot into Attract-Mode if you run the retropie setup, and in the setup menu set it to start Emulation Station by default (although because of the edit below it will start Attract Mode)
"sudo /home/pi/RetroPie-Setup/retropie_setup.sh"
3 - Setup
Auto Start Emulation Station
Start Emulation Station at boot
Quit out of setup


edit this file
"sudo nano /etc/profile.d/10-emulationstation.sh"
and replace emulationstation with "xinit attract"

Please note if you auto start it, it seems to not like the keyboard after a while for some reason, not really a problem if you configure your own controller. So I'd get your controller working with it before you auto start it.

Got it downloaded, going to try it out tonight and see if there is any difference to the image I complied.

Curious if you would be able to tell me the steps you took to get the image down to 2gb? When I clone my image it always clones a full card img so mine is 14.8 gb or something like that. Anyway to get that down to a resonable size?
Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 10, 2016, 01:23:52 PM
Sure, I do this (then compress with 7zip)
http://smartretro.co.uk/forums/viewtopic.php?f=3&t=58
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on April 10, 2016, 01:36:31 PM
Sure, I do this (then compress with 7zip)
http://smartretro.co.uk/forums/viewtopic.php?f=3&t=58

Sweet, I knew you'd have made a "how to". ;) 

Just working on trying the get Dahpne working on AM, have it all working in Retropie but not much luck on AM.
Once I do I'll make a image of that to keep safe. :)
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 10, 2016, 04:00:17 PM
Nice tutorial...

My approach is a little different but your method might be a little bit faster. First, I install raspbian jessie, resize the partition, configure the window mgr the way I want it then update and upgrade raspbian before the next step. Next, I get the retropie install script, and install retropie. Once it's installed, I just use it to setup my joysticks and to install more emulators. I never even run emulationstation, I do everything through the retropie_setup.sh tool.

The last stage is installing AM by following the attract wiki for the pi.

And, I just wanted to say that it's nice to see someone enjoying robospin on the pi. I made it where you can turn off some features if performance is an issue. But, I've been pleasantly surprised how well it runs on the rpi3.

Speaking of robospin, I've added some new features and hope to release it in the next day or so. It was getting a little stale, so I wanted to add some new features like pan and scan for those who want it. It already has system logos but I thought it would be cool if I could add game logos without creating too much clutter. And, I think that was accomplished. The hardest part has been getting all the game developer logos, I might be short some but most are accounted for.         
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 11, 2016, 05:32:25 AM
Nitro-

FFMpeg is compiling, got a few library depreciated warnings but its going. Crosses fingers and throws chicken bones.

How'd that go for you?
I compiled ffmpeg but ffplay didn't build.
add some flags repeat.
ffplay but no hardware.
compile x264 library.
re-compile ffpeg with some more flags.
still no hardware acceleration.
For some reason -enable mmal is being ignored by the build process because when I check the h264 decoder it isn't listed as mmal enabled.

Hell I even enabled the experiment opengl drivers which speeds up the desktop considerably but still made no difference with HD video.
If you can't get it to work i think i'm gonna have to ask on the official forums.

I must of compiled ffmpeg 10 times over the weekend. LOL!

hmmm, didn't try this flag.

 --enable-x264_mmal

just  --enable-libx264 and --enable_mmal.

will try tonight.


Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 11, 2016, 07:29:55 AM
Nitro-

It compiled after about an hour or so, but with no hardware acceleration like you. I'm thinking the update broke the package from deb-multimedia-keyring . However, I did fine this howto: https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565 (https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565)

But, I haven't tried compiling it again.

I guess this what you use to verifty ffmpeg -codecs | grep h264_mmal
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on April 11, 2016, 08:07:02 AM
Just wanted to keep this in the Pi thread.
I was able to get Daphne working on my AM Rpi3 very nicely. Just have to configure the joystick input.ini figured out, keyboard is working fine.
If anyone has played around with configuring Daphne joystick any pointers would be awesome. ;)
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 11, 2016, 09:16:16 AM
Fin-

On windows, I set mine up with the daphneloader. I think some of the joystick info is in the daphneloaderprefs.xml and keyboard in the dainput.ini, but don't hold me to that.  I still need to install this is on my pi as well.

FYI, I think retroarch supports daphne now but haven't tested it.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 11, 2016, 09:45:30 AM
Nitro-

It compiled after about an hour or so, but with no hardware acceleration like you. I'm thinking the update broke the package from deb-multimedia-keyring . However, I did fine this howto: https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565 (https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565)

But, I haven't tried compiling it again.

I guess this what you use to verifty ffmpeg -codecs | grep h264_mmal

--enable-mmal was allready in config file but had "[no]" in the line. which I took out.
I configured with --enable-mmal also.
no go. :(

and the -codecs line was how I figured out there was no mmal associated with h264.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 11, 2016, 09:47:55 AM
Just wanted to keep this in the Pi thread.
I was able to get Daphne working on my AM Rpi3 very nicely. Just have to configure the joystick input.ini figured out, keyboard is working fine.
If anyone has played around with configuring Daphne joystick any pointers would be awesome. ;)

I just installed this on my pi3 with retropie script last night for the heck of it.
it finally ran after i got the files in the right spot but i didn't have controls mapped.

I also played with shaders on retroarch for libretro2003.
very nice screen curvature or scanlines using the pi specific shader's installed by the retropie script without slowdown.
Just can't seem to figure out which config file calls them. LOL!
I only got them working using keyboard shortcuts to cycle through them. :)
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 11, 2016, 10:19:36 AM
Sneak preview of updated robospin. Opinions ? https://www.youtube.com/watch?v=RmOvoS5eVx0 (https://www.youtube.com/watch?v=RmOvoS5eVx0)
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on April 11, 2016, 12:01:14 PM
Sneak preview of updated robospin. Opinions ? https://www.youtube.com/watch?v=RmOvoS5eVx0 (https://www.youtube.com/watch?v=RmOvoS5eVx0)

I think it looks great, only thing I would add if I were able to would be different cab skins.
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 11, 2016, 12:41:02 PM
Thanks, did you try the moon patrol skin that is included. If you go in layout options, you can change it.
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on April 11, 2016, 12:44:09 PM
Thanks, did you try the moon patrol skin that is included. If you go in layout options, you can change it.
Yes I did, I like the stock one better. And really this is a fantastic frontend, far better than I thought I would ever be able to get the Pi to run. You did a great job and here I'm just nit picking. lol
Title: Re: Raspberry Pi 3 Image
Post by: Finhead on April 11, 2016, 01:06:19 PM
Just wanted to keep this in the Pi thread.
I was able to get Daphne working on my AM Rpi3 very nicely. Just have to configure the joystick input.ini figured out, keyboard is working fine.
If anyone has played around with configuring Daphne joystick any pointers would be awesome. ;)

I just installed this on my pi3 with retropie script last night for the heck of it.
it finally ran after i got the files in the right spot but i didn't have controls mapped.


I got my gamepad to work today at lunch, just had to paste this into /opt/retropie/supplementry/emulationstation/scripts/configscripts
http://pastebin.com/xp0vGQHZ (http://pastebin.com/xp0vGQHZ)

Now to move onto getting multiple roms to load, I think I need to make a emulator for each rom/game but not sure how to intigarte this into a single dispaly rather than multiples.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 13, 2016, 06:48:31 AM
Nitro-

It compiled after about an hour or so, but with no hardware acceleration like you. I'm thinking the update broke the package from deb-multimedia-keyring . However, I did fine this howto: https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565 (https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565)

But, I haven't tried compiling it again.

I guess this what you use to verifty ffmpeg -codecs | grep h264_mmal

someone on the rpi forum showed me what flags they enabled.
I gave it a try but libavcodec killed the compile.
I'm pretty sure I did that when I installed SDL with dispmanx backend.

soooo tonight, fresh image and i'll have another go at it.

Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 13, 2016, 02:21:58 PM
Nice tutorial...

My approach is a little different but your method might be a little bit faster. First, I install raspbian jessie, resize the partition, configure the window mgr the way I want it then update and upgrade raspbian before the next step. Next, I get the retropie install script, and install retropie. Once it's installed, I just use it to setup my joysticks and to install more emulators. I never even run emulationstation, I do everything through the retropie_setup.sh tool.

The last stage is installing AM by following the attract wiki for the pi.

And, I just wanted to say that it's nice to see someone enjoying robospin on the pi. I made it where you can turn off some features if performance is an issue. But, I've been pleasantly surprised how well it runs on the rpi3.

Speaking of robospin, I've added some new features and hope to release it in the next day or so. It was getting a little stale, so I wanted to add some new features like pan and scan for those who want it. It already has system logos but I thought it would be cool if I could add game logos without creating too much clutter. And, I think that was accomplished. The hardest part has been getting all the game developer logos, I might be short some but most are accounted for.         

Thanks, thats an interesting point about building it that way round, maybe I'll try it on my next image.
I'm going to pre-configure all the libretro cores, so its ready just to take all the roms. I'll also preset shaders - I'd usually use overlays, but given the likely wide variety of resolutions used in AM builds its probably a better bet to run with the davej shader. I also need to work out why my keyboard stops working after a couple of minutes if I boot directly into AM. I might also tweak my video overlay tool to be geared for AM, so more shaders. https://github.com/biscuits99/rp-video-manager

I'll also add more layouts, although I havent found one I like more than robospin yet.

I'm very new to AM, but loving it as a very comprehensive FE for arcade setups. Has a fantastic community as well.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 14, 2016, 06:03:28 AM
Well, I got ffmpeg to compile with with h264 acceleration. at least it says it is compiled with it.
but, I think I goofed by compiling it with sdl 1.2. I think because sdl 1.2 doesn't do hardware acceleration on rpi it could affect things.

ffplay did play the big-buck bunny 1080p video on my RPI 3 but it was going from 10% cpu to 90% cpu and I was getting the rainbow block denoting power was low.

I've got a new beefier psu arriving today and I kicked off a recompile with SDL2.
so we will see tonight.
Title: Re: Raspberry Pi 3 Image
Post by: Chillimonster on April 14, 2016, 06:24:49 AM
Loving this, and make the Pi feel fresh.

Getting my head around the configurations and settings, but liking what i see so far.

Title: Re: Raspberry Pi 3 Image
Post by: progets on April 14, 2016, 06:02:27 PM
Attractmode on the Pi is really nice. I have it installed on top of RetroPie 3.6 and I'm using my HyperSpin themes and it looks great.

Has anyone figured out a way to hide the white dialog box when Attractmode loads and/or suppress the command line console when running a game?
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 14, 2016, 10:35:14 PM
Nitro-

Awesome man, do you know about mesa-utils? You can use them to verify that hardware acceleration is actually enabled.

sudo apt-get install mesa-utils

type glxinfo | grep "direct rendering"

if yes its enabled.

type glxinfo

For all the info
 
run glxgears, to test if its working. I was getting 40 fps



Title: Re: Raspberry Pi 3 Image
Post by: Roverius on April 15, 2016, 04:10:42 AM
I've made Attract mode up and runnin even with roms and marquees, snaps, etc... on external harddrive.

BUT, my question is, how do you let the wheel autorotate to a random selection.
Something like hyperspin that after a amount of time (lets say 60 seconds) the wheel autorotates to another selection.
Kind of screensaver, instead of continous staying on the same pointed game.

Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 15, 2016, 05:38:58 AM
Nitro-

Awesome man, do you know about mesa-utils? You can use them to verify that hardware acceleration is actually enabled.

sudo apt-get install mesa-utils

type glxinfo | grep "direct rendering"

if yes its enabled.

type glxinfo

For all the info
 
run glxgears, to test if its working. I was getting 40 fps

ok.
i'll check it. cpu is still way higher than omxplayer but lower than what it was.

but let's not celebrate yet.
compiling ffmpeg installed it's version of libjepg.
jessie uses libjpeg turbo i think.
Which is also installed.

so compiling attract gave me some errors with libjpeg & sfml and fails to compile. :(

I'll post the error in a new thread tonight and maybe it can be figured out.
I could of done something wrong.

Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 15, 2016, 02:00:43 PM
I'm compiling again using the same guide with these extra flags --enable-mmal, --enable-hwaccel=h264_mmal, --enable-libx264

So far, so good. I'll let you know shortly.
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 15, 2016, 02:44:52 PM
I just got a yellow square which supposedly means cpu throttling because of thermal limitations. I did use make -j4 to release the hounds but this is just silly. I even have heat sinks, so why have you forsaken me pi.   
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 15, 2016, 04:01:38 PM
Nitro-

Awesome man, do you know about mesa-utils? You can use them to verify that hardware acceleration is actually enabled.

sudo apt-get install mesa-utils

type glxinfo | grep "direct rendering"

if yes its enabled.

type glxinfo

For all the info
 
run glxgears, to test if its working. I was getting 40 fps

I have direct rendering but glxgears started at 37fps then slowly got slower. very weird.
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 15, 2016, 04:05:34 PM
I just got a yellow square which supposedly means cpu throttling because of thermal limitations. I did use make -j4 to release the hounds but this is just silly. I even have heat sinks, so why have you forsaken me pi.

I thought it was for not enough power.
I got heatsinks also.
need to install them I guess.

well if this ffmpeg doesn't pan out i'm going to direct my attention to creating a 3rd partition on the SDcard and moving home to it and var then making the rest of the system read only.
I found some scripts that will let me toggle it from RO to RW whenever I need.


oh and i got a gert vga board. wondering if attract mode would let me use two monitors on the rpi. :)
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 15, 2016, 06:45:02 PM
Yeah, this was definitely a heat problem. I actually started getting worried because there was no activity. So, I went and grabbed a fan and almost immediately the light started to fade out. Probably, took about a minute to finally go out.

That said, it didn't matter anyway. Because, I screwed up with some of the configure flags again, sigh... 

Seems like "'--enable-hwaccel=264_mmal" isn't recognized. So,  I'm hoping --enable-mmal and --enable-libx264 will do the trick for HWaccel.
Title: Re: Raspberry Pi 3 Image
Post by: thedefog on April 15, 2016, 07:20:06 PM
nitrogen widget, thanks for making this image. Huge time saver. I got 1/2 way through installing stuff manually on my Pi 3 last night, then found this. Installed this tonight and just downloaded all the binaries through the retropie script. Now to populate the rom directories and configure my controls.
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 15, 2016, 11:20:36 PM
Quote
I'm going to pre-configure all the libretro cores, so its ready just to take all the roms. I'll also preset shaders - I'd usually use overlays, but given the likely wide variety of resolutions used in AM builds its probably a better bet to run with the davej shader. I also need to work out why my keyboard stops working after a couple of minutes if I boot directly into AM. I might also tweak my video overlay tool to be geared for AM, so more shaders. https://github.com/biscuits99/rp-video-manager

I'll also add more layouts, although I havent found one I like more than robospin yet.

I'm very new to AM, but loving it as a very comprehensive FE for arcade setups. Has a fantastic community as well.

I picked up another sd card to try your method and it's great. Definitely, saves a lot of time setting up of the emulators.   
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 16, 2016, 07:06:49 AM
If anyone is interested in testing the pre-release of robospin on the pi, you can download here:

https://app.box.com/s/o6mekpndz8cu4toh588uhywt9vmbfeob (https://app.box.com/s/o6mekpndz8cu4toh588uhywt9vmbfeob)

You can enable pan-and-scan by selecting it as a background. Thanks...

 
Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 16, 2016, 07:48:31 AM
If anyone is interested in testing the pre-release of robospin on the pi, you can download here:

https://app.box.com/s/o6mekpndz8cu4toh588uhywt9vmbfeob (https://app.box.com/s/o6mekpndz8cu4toh588uhywt9vmbfeob)

You can enable pan-and-scan by selecting it as a background. Thanks...

Bundling this as the default layout in my next build this weekend. Its amazing!
Title: Re: Raspberry Pi 3 Image
Post by: bionictoothpick on April 16, 2016, 07:01:46 PM
Thanks for sharing this! Now I need to get a raspberry pi 3...
Title: Re: Raspberry Pi 3 Image
Post by: nitrogen_widget on April 16, 2016, 09:17:22 PM
Floob, which of retroarches 5 config files did you change to get the RPI shaders to run?
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 16, 2016, 10:24:54 PM
Floob-

An awesome contribution man. This exceeds all expectations, and these extra goodies you added is icing on the cake. 

I split your post out to make a sticky for your image.     
Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 17, 2016, 03:08:37 AM
Floob-

An awesome contribution man. This exceeds all expectations, and these extra goodies you added is icing on the cake. 

I split your post out to make a sticky for your image.   

Ah - that explains it, I was confused where that went, haha :)
Thanks very much! Hopefully that will make it easier for people with a Pi (It should work fine on a Pi2 and Pi3) to get up and running with Attract Mode.

Would it be possible to link to that sticky here?
http://attractmode.org/download.html

I've had a lot of feedback about the layout used on the video showing the 0.2 image, people are loving that style of layout, and hopefully they will see how easily AM allows users to flip between layouts.
I'm very new to AM, and trying to get my head around it all at the moment, so any recommendations of tweaks are much appreciated.

I'm very tempted to make a custom build specifically for the Picade:
https://www.youtube.com/watch?v=Q4sdwWoQlD0
https://shop.pimoroni.com/products/picade

Does anyone know the legality of distributing artwork? For example images sourced from here?
http://www.progettosnaps.net/
http://www.emumovies.com/
http://www.hyperspin-fe.com/
Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 17, 2016, 03:12:41 AM
Floob, which of retroarches 5 config files did you change to get the RPI shaders to run?

Please check this one:
/opt/retropie/configs/{systemname}/retroarch.cfg

I make a very brief reference to shaders in the readme.txt file in that build. I have also installed and used a slightly newer version of the davej shader. Remember, this has a lot of tweakable options such as curvature effect and changing the style of scanlines.

Please just let me know if you want to know anymore about the config file setup. I have made a very long and boring video of it here (slightly dated):
https://www.youtube.com/watch?v=OnjQ6fLd5T8
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 17, 2016, 07:02:33 AM
I'll pass it up to raygun. :)
Title: Re: Raspberry Pi 3 Image
Post by: Omamez on April 18, 2016, 06:37:12 AM
@Floobs thanks for the image compiling and vids. I have couple issues

1. the screen is butted far left of my screen the menu screen a sseen in picture below when emulator is run it centers

(http://i.imgur.com/2Niii3i.jpg)

2. how can I expand teh size of my games tried it in the retroarch.cfg but won't change size.

(http://i.imgur.com/IrfpaEh.jpg)

3. wireless xbox360 controller do I also need to config within AM as well I have config it via emulation station
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 18, 2016, 09:12:47 AM
Omamez-

Attract has its own control mappings. Here's how, while attract is running hit the tab key, now select controls. Assign your prefered controller mappings.

As for your video issue. Try turning off overscan by editing the /boot/config.txt by using the cmd below: 

sudo nano /boot/config.txt

uncomment or add this line

disable_overscan=0

now save by hitting ctrl x,  then y to save

Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 18, 2016, 12:07:54 PM
@Floobs thanks for the image compiling and vids. I have couple issues

1. the screen is butted far left of my screen the menu screen a sseen in picture below when emulator is run it centers
2. how can I expand teh size of my games tried it in the retroarch.cfg but won't change size.
3. wireless xbox360 controller do I also need to config within AM as well I have config it via emulation station




1:
I'm not too clear on the issue here? If its an overscan issue, check this link for overscan settings to change: http://elinux.org/RPiconfig


2:
I have set the aspect ratio in the retroarch files. You can edit/remove this if you alter this file/opt/retropie/configs/mame-libretro/retroarch.cfg


3:
No, if you configure it in Emulation Station first, AM will pickup that controller file as long as it is for a RetroArch based emulator/games.You can see your controller files (RetroArch based) in /opt/retropie/configs/all/retroarch-joypads/If you mean get it to use the AM interface, then do as omegaman has mentioned above.
Title: Re: Raspberry Pi 3 Image
Post by: Omamez on April 18, 2016, 02:24:57 PM
thanks omegaman and floobs

I had to play with th e hdmi group and mode from this site floobs posted (group 2, mode 32 which gave me a centred 1280 x 900.

thank you
Title: Re: Raspberry Pi 3 Image
Post by: progets on April 19, 2016, 05:33:14 PM
Floob, thanks for the great image. I tried it and learned several things that I didn't know. I have my own RetroPie/Attractmode build and would like to know how you did a few things.

1) How did you fix the keyboard from not responding?
2) How did you remove/hide the white dialog box when Attractmode launches and when a game is launched?
Title: Re: Raspberry Pi 3 Image
Post by: Floob on April 20, 2016, 12:00:37 PM
@progets
I added a "sleep 10" command here:
/etc/profile.d/10-emulationstation.sh

although I think a usbwait command in the cmdline.txt may work better.

To get rid of the white dialog, I cheated and set the colour to black
xinit attract -bg black -fg black
Title: Re: Raspberry Pi 3 Image
Post by: progets on April 20, 2016, 02:12:13 PM
Floob, thanks for fast reply. It works great!

Thanks for your contributions on Attractmode and RetroPie.

Title: Re: Raspberry Pi 3 Image
Post by: Omamez on April 21, 2016, 05:48:13 PM
Floob having issues with xbox360 wireless controller , I have mapped it in emulationstation and it works in emulation station, although in attract mode controller does not work with default console you have already on your image the start and select work only to back out of teh game.

any hints towards the right direction?

Omamez
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 21, 2016, 06:19:38 PM
Omamez-

Try remapping your controls in attract? Hit tab and select controls.
Title: Re: Raspberry Pi 3 Image
Post by: Omamez on April 21, 2016, 07:33:38 PM
how can i get the id's to remap it in attract mode if its not recognized do I need to get usb xbox360 controller first or is there website with the xbox360 controller id's for up , down etc?
Title: Re: Raspberry Pi 3 Image
Post by: omegaman on April 21, 2016, 08:19:34 PM
Check this file /etc/rc.local and see if you have something like this:

xboxdrv --trigger-as-button --wid 0 --led 2 --deadzone 4000 --silent &
sleep 1

--wid is needed for wireless
--id is for a wired
Title: Re: Raspberry Pi 3 Image
Post by: Omamez on April 22, 2016, 12:56:07 AM
yes that is there, I hav eeven went to the extent to re flash my img file to standard , no whave sound again but still no xbox360 wireless controls only couple of buttons work, not sure how else to set them in attract mode :'(