Home Setup Lakka on Raspberry Pi
Post
Cancel

Setup Lakka on Raspberry Pi

Lakka configuration

  1. Connect Ethernet cable or connect to WiFi from GUI.
  2. Turn on SSH in Services

Static IP

Connect via ssh:

1
ssh root@lakka.local

Edit WiFi settings:

1
$ vi /storage/.cache/connman/wifi_XXXXXX_managed_psk/settings

Change IP method to manual and set local_address:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[wifi_XXXXXX_managed_psk]
Name=XXXXXXXXXX
SSID=XXXXXXXXXXXXXXXXXXXX
Favorite=true
AutoConnect=true
Passphrase=XXXXXXXX
Frequency=2437
Modified=2020-07-04T15:47:43.045286Z
IPv4.method=manual
IPv4.netmask_prefixlen=24
IPv4.local_address=192.168.0.113
IPv4.gateway=192.168.0.1
IPv6.method=off
IPv6.privacy=disabled

Restart WiFi:

1
2
3
$ connmanctl disable wifi
$ connmanctl enable wifi
$ connmanctl connect wifi_XXXXXX_managed_psk

The same for the wired connection (you have to connect cable first to see this config):

1
$ vi /storage/.cache/connman/ethernet_XXXXXX_cable/settings

On local machine for easy access can be added: ~/.ssh/config:

1
2
3
4
5
6
7
Host lakka.wlan
    UserKnownHostsFile ~/.ssh/known_hosts.wlan.lakka
    Hostname 192.168.0.113

Host lakka.eth
    UserKnownHostsFile ~/.ssh/known_hosts.eth.lakka
    Hostname 192.168.0.111

Then to connect to ssh via WiFi:

1
$ ssh root@lakka.wlan

Set timezone

1
echo "TIMEZONE=Europe/Amsterdam" > /storage/.cache/timezone

Fix HDMI Audio

To edit config.txt remount /flash with write access:

1
2
mount /flash -o remount,rw
vi /flash/config.txt

Add new lines into configuration file:

1
2
3
# Normal HDMI mode with sound
hdmi_drive=2
hdmi_force_edid_audio=1

Use closest to power HDMI port.

Bluetooth controller

Disable bluetooth ertm to have Xbox one controller paired with bluetooth.

Create file /etc/modprobe.d/bluetooth.conf with content:

1
options bluetooth disable\_ertm=Y

Verify if it’s work after reboot:

1
2
cat /sys/module/bluetooth/parameters/disable_ertm
Y

Where Y is disabled and N enabled.

Pair using bluetoothctl.

Copy BIOSes/ROMs

1
scp BIOS/* root@lakka.eth:system/

Add missing box-arts as PNG files only.

  • https://www.lakka.tv
  • https://www.lakka.tv/doc/8Bitdo-Wireless-Controller/
  • https://www.reddit.com/r/RetroPie/comments/aakkop/xbox_one_s_controller_disable_ertm_persist_on/
This post is licensed under CC BY 4.0 by the author.