As someone who's been using LAKKA for several years now, the first thing I wanted when I got my PiBoy was to run LAKKA. Unfortunately, the way PiBoy is built and the fact that LAKKA is based on LibreELEC, meant that it was not supported out-of-the-box. LAKKA is a bit less customizable than RetroPie, but what it lacks in customizability, it more than makes up for in speed.
Look at this, from poweroff to main menu in well under 20 seconds:
https://user-images.githubusercontent.com/70735/129489260-1b6107d0-7cd3-449f-afc1-020bc18ef7a2.mp4
So, with the help of Nathan Scherdin (@acidtech), i've got most of the important stuff working.
distroconfig.txt
file in the LAKKA boot partition with this file: (https://raw.githubusercontent.com/duduke/piboy-dmg-lakka-test/main/distroconfig.txt)
NOTE: This step is important to get the LCD display to work.mkdir /storage/roms/piboy-dmg
cd /storage/roms/piboy-dmg
wget https://github.com/duduke/piboy-dmg-lakka-test/raw/main/xpi_gamecon.ko
wget "https://raw.githubusercontent.com/duduke/piboy-dmg-lakka-test/main/piboy-dmg-control.sh"
chmod +x /storage/roms/piboy-dmg/piboy-dmg-control.sh
cd /storage/.config/system.d
wget https://raw.githubusercontent.com/duduke/piboy-dmg-lakka-test/main/piboy-dmg-control.service
systemctl enable /storage/.config/system.d/piboy-dmg-control.service
mkdir /storage/joypads/udev
cd /storage/joypads/udev
curl "https://raw.githubusercontent.com/duduke/piboy-dmg-lakka-test/main/PiBoy%20DMG%20Controller.cfg" --output "PiBoy DMG Controller.cfg"
Settings -> Drivers -> Menu
Change to ozone
Settings -> User Interface -> Appearance -> Menu Scale Factor
Change to 1.50x
Settings -> Input -> Hot Keys -> Menu Toggle Gamepad Combo
Change to Start + Select
As I don't have any real programming experience, there's quite some stuff that can be imporved. but at this point those are the things that work:
works
either within LAKKA or using the physical switch.works
somewhat works
, there's no actual fan curve. it ramps up to 100% when the temp is at 70c.doesn't work
. I can't get it to show up in LAKKA, as the battery reports to a non-standard location (/sys/kernel/xpi_gamecon/percent) instead of something like /sys/class/power_supply/BAT0/.
piboy-dmg-control.sh
script will do a clean shutdown when the battery is below 5%.I'll try to get the LAKKA maintainers to officially support PiBoy.