Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:lcd_led_marquees [2022/02/18 04:56] – added dual computer setup (thanks pdapice), added pictures, update troubleshooting section atarihardware:lcd_led_marquees [2022/10/04 06:22] (current) – removal of broken scripts atari
Line 116: Line 116:
 </file> </file>
  
-===== Using the two HDMI outputs on a RPi4 =====+If you wish to simply see the events that are being fired off by Pixelcade's EmulationStation scripts as you're navigating the menus, run the following in an SSH terminal:
  
-It is possible to use the two HDMI outputs on an RPi4, with one displaying Batocera and the other displaying the dynamic marquee. [[https://forum.batocera.org/d/7129-dynamic-marquee-for-pi4-working|Link to the original forum post explaining this.]] Essentially, the Raspberry Pi draws images/videos directly to the framebuffer, which is still visible on the other display even though it's hidden by Batocera on the main display.+<code> 
 +killall java 
 +/userdata/system/pixelcade/jdk/bin/java -jar -Dioio.Seriaorts=ttyACM0 /userdata/system/pixelcade/pixelweb.jar -b -e 
 +</code>
  
-Artwork needs to be sourced and placed in the appropriate ''Marquee'' and ''roms/Marquee'' folders first.+Now you'll get the following debug output:
  
-Place ''game.sh'' into ''system/configs/emulationstation/scripts/game-selected''+{{:hardware:pixelcade_debug.png?600|}}
  
-<file bash game.sh> +===== Using the two HDMI outputs on a RPi4 =====
-#!/bin/bash +
-System=$1 #system name +
-Romname=${2%.*} #romname +
-rom=${Romname##*/+
-/userdata/marquee.sh Gameselected $System "$rom" +
-</file>+
  
-Place ''system.sh'' into ''system/configs/emulationstation/scripts/system-selected''+It is possible to use the two HDMI outputs on an RPi4, with one displaying Batocera and the other displaying the dynamic marquee[[https://forum.batocera.org/d/7129-dynamic-marquee-for-pi4-working|Link to the original forum post explaining this.]] Essentially, the Raspberry Pi draws images/videos directly to the framebuffer, which is still visible on the other display even though it's hidden by Batocera on the main display.
  
-<file bash system.sh+<WRAP center round important
-#!/bin/bash +This has broken on **v34** and higherStay on **v33** or lower if you intend to use this
-System=$1 #System name +</WRAP>
-/userdata/marquee.sh Systemselected $System & +
-</file> +
- +
-Place ''marquee.sh'' in ''/userdata'' +
- +
-<file bash marquee.sh> +
-#!/bin/bash +
- +
-case $1 in +
-Start) +
-Romname=$3 +
-Gamepath=$2 +
-marqueeimage=$Gamepath/images/$romname-marquee.png +
-if [ -f "/userdata/roms/Marquee/videos/$Romname.mp4"+
-then +
-ffmpeg -i /userdata/roms/Marquee/videos/$Romname.mp4 -vf scale=1280:720 -sws_flags bilinear -pix_fmt rgb565le -f fbdev /dev/fb0 +
- +
-fi +
- +
-if [ -f "/userdata/roms/Marquee/hires/$Romname.jpg"+
-then +
-fbv /userdata/roms/Marquee/hires/$Romname.jpg -fer +
-elif [ -f "$marqueeimage"+
-then +
-fbv $marqueeimage -fer +
-else +
-fbv /userdata/roms/mame/images/mame.png -fer +
-fi +
- +
-;; +
-Gameselected) +
-System=$2 #system name +
-Romname=$3 #romname +
- +
-if [ -f "/userdata/roms/Marquee/$Romname.png"+
-then +
-fbv /userdata/roms/Marquee/$Romname.png -fer +
-elif [ -f "/userdata/roms/$System/images/$Romname-marquee.png"+
-then +
-fbv "/userdata/roms/$System/images/$Romname-marquee.png" -fer +
-else +
-fbv /userdata/roms/Marquee/mame.png -fer +
-fi +
- +
-;; +
- +
-Systemselected) +
-imagepath="/userdata/roms/sysimages/$2" +
-if [ -f "$imagepath.png"+
-then +
-fbv "$imagepath.png" -fer +
-else +
-fbv /userdata/roms/mame/images/mame.png -fer +
-fi +
- +
-;; +
- +
-esac +
-</file> +
- +
-Place ''script.sh'' in ''system/scripts'' +
- +
-<file bash script.sh> +
-#!/bin/bash +
- +
-case $1 in +
-gameStart) +
- +
-gamepath=${5%/*+
-romname=${5##*/} +
-/userdata/marquee.sh Start $gamepath ${romname%.*} & +
-;; +
- +
-gameStop) +
-killall ffmpeg +
-;; +
-esac +
-</file>+
  
 ===== Using two computers ===== ===== Using two computers =====
Line 221: Line 140:
  
 This can be done using Batocera installed onto a device and another computer/Raspberry Pi connected to a separate display. So far, this has been tested successfully using Batocera installed on an x86_64 computer/Raspberry Pi with another Raspberry Pi acting as the marquee. This can be done using Batocera installed onto a device and another computer/Raspberry Pi connected to a separate display. So far, this has been tested successfully using Batocera installed on an x86_64 computer/Raspberry Pi with another Raspberry Pi acting as the marquee.
- 
-  - Install Batocera onto the main machine. 
-  - Install Raspbian OS on the Raspberry Pi to act as the marquee (referred to as Marquee from now on). 
-    - Set this up with a static IP to make things easier. 
-  - On the Marquee run the following: <code bash> 
-sudo apt-get update 
-sudo apt-get upgrade 
-sudo apt-get install ffmpeg git libjpeg9-dev libjpeg9 libpng16-16 libpng-dev 
-</code> 
-  - Now compile FBV on the Marquee using the following commands: <code bash> 
-sudo git clone https://github.com/godspeed1989/fbv.git 
-cd fbv 
-sudo ./configure 
-sudo make 
-sudo make install 
-</code> 
-  - Set up the Marquee to automatically start the appropriate software on boot. Open the text file with root privileges with the following: <code bash> 
-sudo nano /etc/rc.local 
-</code> 
-    - Then add the following right before the ''exit 0'' line: <code bash> 
-cd /home/pi 
-nc -vklp 5555 | /bin/bash & 
-</code> Save with ''Ctrl'' + ''S''. 
-  - Edit the bootup file: <code bash> 
-sudo nano /boot/cmdline.txt 
-</code> 
-    - Change the following line from: <code bash> 
-console=tty1 
-</code> to <code bash> 
-console=tty3 
-</code> 
-    - In that same file, add onto the end of the line: <code bash> 
-logo.nologo vt.global_cursor_default=0 
-</code> 
- 
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
  • hardware/lcd_led_marquees.1645160201.txt.gz
  • Last modified: 10 months ago
  • by atari