Coder Social home page Coder Social logo

piboy-dmg-lakka-test's Introduction

How to get LAKKA (Pi4) to run on PiBoy DMG

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:

20210815_214315-reddit.mp4

So, with the help of Nathan Scherdin (@acidtech), i've got most of the important stuff working.

Here's a short guide:

  1. Download the latest official stable LAKKA release for Pi4 (https://le-builds.lakka.tv/RPi4.aarch64/Lakka-RPi4.aarch64-3.3.img.gz)
  2. Burn the image to your mSD using any tool you like (I use balena Etcher)
  3. Once completed, and before booting the mSD, replace the 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.
  4. Place the mSD inside the PiBoy and turn it on. It should boot a couple of times to resize the partition.
  5. Once booted, you'll need to configure your WIFI network. Since, at this point the PiBoy module is not yet loaded, you'll need to plugin a keyboard to do that. To configure LAKKA WIFI, goto Settings -> Wi-Fi. Or watch this: (https://www.youtube.com/watch?v=4Wr0jXKM3EY&t=4s)
  6. Also enable SSH via Settings -> Services -> SSH
  7. Once WIFI is connected and SSH is enabled. Note your IP address under Information -> Network Information
  8. Login via SSH (root/root)
  9. Create and navigate to the PiBoy DMG folder:
  • mkdir /storage/roms/piboy-dmg
  • cd /storage/roms/piboy-dmg
  1. Download the PiBoy DMG kernel module:
  • wget https://github.com/duduke/piboy-dmg-lakka-test/raw/main/xpi_gamecon.ko
  1. Download the PiBoy DMG control script:
  • 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
  1. Download and install the PiBoy DMG control systemd service:
  • 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
  1. Get PiBoy DMG Controller profile:
  • 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"
  1. At this point, reboot or shutdown. The next time LAKKA will boot, everything should be working.
  2. Once booted into RetroArch, Change the following settings to better suit PiBoy DMG:
  • 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
  1. (Optional) You can further customize the boot sequence to have a custom LAKKA + Experimental Pi Logo:

Current Status

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:

  1. Shutdown: works either within LAKKA or using the physical switch.
  2. Volume control: works
  3. Fan control: somewhat works, there's no actual fan curve. it ramps up to 100% when the temp is at 70c.
  4. Battery status: 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/.
  • The 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.

piboy-dmg-lakka-test's People

Contributors

duduke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.