Emuelec Ssh -
df -h Look for /storage usage. If it hits 95%, delete old ROMs or logs.
#!/bin/sh while true; do if ! bluetoothctl show | grep -q "Powered: yes"; then systemctl restart bluetooth echo "$(date): Bluetooth restarted" >> /tmp/bt.log fi sleep 60 done Make it executable: chmod +x /storage/scripts/bt_watchdog.sh emuelec ssh
/usr/bin/emustation.sh restart If you plugged your box into a 4K TV but it is glitching: df -h Look for /storage usage
EmuELEC has established itself as the gold standard for turning low-cost Amlogic-based Android TV boxes (like the X96, HK1, and Vontar) into dedicated retro gaming consoles. Built on the backbone of CoreELEC and LibreELEC, EmuELEC transforms your hardware into a streamlined Linux distribution running EmulationStation as its frontend and RetroArch as its backbone. bluetoothctl show | grep -q "Powered: yes"; then
rm /storage/roms/gamelist.xml emulationstation --create-gamelists First, check your current governor:
| Directory | Purpose | Real-World SSH Task | | :--- | :--- | :--- | | /storage/roms/ | Your games are here. | cd /storage/roms/snes/ && ls -la | | /storage/.config/ | EmulationStation and RetroArch core configs. | nano /storage/.config/retroarch/retroarch.cfg | | /storage/.config/emuelec/ | Distro-specific scripts. | ./emuelec-utils.sh | | /tmp/ | Temporary logs and runtime files. | cat /tmp/emuelec.log | | /flash/ | The boot partition (kernel, dtb). | Modify boot arguments here. | | /storage/backup/ | Backup location for emuelec.conf . | Restore settings here. | Part 5: Essential Commands for EmuELEC Power Users You are now root, with no guardrails. Use these commands wisely.