Hi,
Normally I just type emulationstation at root and it boots up. I want to make it display on the PiTFT. Does it involve doing something like
pi@raspberrypi ~ $ FRAMEBUFFER=/dev/fb1 emulationstation
lvl0: Error initializing SDL!
Unable to open a console terminal
Are you in the 'video', 'audio', and 'input' groups? Is X closed? Is your firmware up to date? Are you using at least the 192/64 memory split?
lvl0: Renderer failed to initialize!
lvl0: Window failed to initialize!
.............
Ok so it seems the error only pops up when trying to run emulationstation through SSH. But when I run it on my touch screen, it does the command and stays on the command line but freezes because its running emulation station, just not displaying it. So when I press F4, it closes emulation station and jumps back to the command line just fine... so it's running but not displaying. any ideas?
PiTFT and Emulation Station
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- notro
- Posts: 93
- Joined: Tue Sep 11, 2012 9:59 am
Re: PiTFT and Emulation Station
Renderer_init_rpi.cpp: https://github.com/Aloshi/EmulationStat ... it_rpi.cpp
dispmanx: http://elinux.org/Raspberry_Pi_VideoCor ... spmanx_.2A
Looking at the source code, it seems to be accessing the VideoCore directly through dispmanx. This means it's not possible to redirect the video to another framebuffer.
You can use fbcp to clone /dev/fb0 onto /dev/fb1. Be aware that this takes a lot of CPU without DMA, and the Adafruit kernel doesn't have SPI DMA support yet.
fbcp: https://github.com/notro/fbtft/wiki/Fra ... -mirroring
The console has to be on fb0 when using fbcp: con2fbmap 1 0
dispmanx: http://elinux.org/Raspberry_Pi_VideoCor ... spmanx_.2A
Looking at the source code, it seems to be accessing the VideoCore directly through dispmanx. This means it's not possible to redirect the video to another framebuffer.
You can use fbcp to clone /dev/fb0 onto /dev/fb1. Be aware that this takes a lot of CPU without DMA, and the Adafruit kernel doesn't have SPI DMA support yet.
fbcp: https://github.com/notro/fbtft/wiki/Fra ... -mirroring
The console has to be on fb0 when using fbcp: con2fbmap 1 0
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/