“May the Force be with You” Kodi Leia

updated Libreelec to

kodi Options: –standalone -fs
Arch: x86_64
Kernel: Linux 4.17.4 #1 SMP Wed Jul 4 00:20:20 BST 2018
Release: LibreELEC devel-20180704001901-#0703-g6bd47f0

now with

skin.xperience1080 v6.99.300

Starting Kodi (18.0-ALPHA3 Git:f0dda3a). Platform: Linux x86 64-bit
NOTICE: Using Release Kodi x64 build
NOTICE: Kodi compiled Jul 4 2018 by GCC 8.1.0 for Linux x86 64-bit version 4.17.4 (266500)
NOTICE: Running on LibreELEC (Milhouse): devel-20180704001901-#0703-g6bd47f0 [Build #0703] 9.0, kernel: Linux x86 64-bit version 4.17.4
NOTICE: FFmpeg version/source: 4.0-Kodi
NOTICE: Host CPU: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz, 4 cores available

ol’ Titan Skin broke ’cause of
NOTICE: Skin Helper Widgets --> Backgroundservice started

skin.titan.leiabeta v3.8.4
script.skin.helper.service v1.1.24


MacOS Spotify/Youtube Airplay

Workaround for stopping Audio Playback on MacOS 10.12.6, Firefox 59.0.2 (64-Bit) and Shairport Server on Libreelec 8.2.4 (Generic.x86_64).

keep Preference Pane/ Systemeinstellungen open

….it doesn’t matter, if u’re on audiosettings (“alt+Mute” or “alt+Vol+” or “alt+Vol-“); it looks as if keeping the Pane open forces MacOS to stay on Airplay and not to switch back to integrated speekers

Hyperion->Arduino Nano->TM1829

dmesg reveals

xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 3 comp_code 1

xhci_hcd 0000:00:14.0: Looking for event-dma 00000000773fe670 trb-start 00000000773fe680 trb-end 00000000773fe680 seg-start 00000000773fe000 seg-end 00000000773feff0

so it’s still working and i think, the Message is more or less old and happened since on Openelec/Libreelec

Intel N3540 Hickup

force Performance Govenor Speed Settings by adding following line to your autostart.sh to fix system freeze. to force turbo

echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

CPU0: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz (family: 0x6, model: 0x37, stepping: 0x8)

Bug 109051 – intel_idle.max_cstate=1 required to prevent crashes – Baytrail

didn’t work for me, so i disabled the intel_idle kernel extension via intel_idle.max_cstate=0

IBM Bug Description

dmesg |grep -i intel_idle

[ 0.000000] Command line: BOOT_IMAGE=/KERNEL boot=LABEL=System disk=LABEL=Storage quiet intel_idle.max_cstate=0
[ 0.000000] Kernel command line: root=/dev/ram0 rdinit=/init usbcore.autosuspend=-1 BOOT_IMAGE=/KERNEL boot=LABEL=System disk=LABEL=Storage quiet intel_idle.max_cstate=0
[ 0.918731] intel_idle: disabled


New System: Asus Aspire V11 N3530

Scraped a Netbook with a broken Touchscreen, so i took of the Screen, relocated the Webcam and WLAN Antennas, plugged in HDMI, made a Libreelec USB Stick and installed LibreELEC (official): 8.2.3 (Generic.x86_64) which worked right out of the box but i had some troubles installing hyperion, precisely starting hyperion. so here’s my autostart.sh:

set DISPLAY=0.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/storage/hyperion/bin
export PATH=$PATH:/storage/hyperion/bin
hyperiond /storage/.config/hyperion.config.json >/storage/logfiles/hyperion.z0mb1.log 2>&1 &
hyperiond /storage/.config/hyperion.espLight54.config.json > /storage/logfiles/hyperion.espLight54.log 2>&1 &
hyperion-x11 /storage/logfiles/hyperion-x11.log 2>&1 &

The sequence of hyperiond -> hyperion-x11 is relevant, else the x11 grabber wont connect to hyperiond via proto as in:

version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
build time: Jun 3 2017 02:06:03
PROTOCONNECTION INFO: Connecting to Hyperion:
X11GRABBER INFO: Update of screen resolution: [0x0] => [1920×1200]
X11GRABBER INFO: Using XRender for grabbing
PROTOCONNECTION INFO: No connection to Hyperion:

start hyperiond and the x11 grabber connects:

PROTOCONNECTION INFO: Connected to Hyperion:

//i’m not sure about the set Display part, but it works in my case.

While moving, i realized, there’s no vcgencmd anymore, so my screensaver doesn’t work anymore. After 2 Days of researching i found the ToggleDPMS() builtin function.

change line 35 & 43 of the default.py

35:os.system('vcgencmd display_power 0')
43:os.system('vcgencmd display_power 1')



doesnt work, line 43 won’t be executed, so no DPMS restore happens and i have to send a ToggleDPMS() manually…. Shell: kodi-send –action=”ToggleDPMS()” manually….

——————–XX WORk XX —————

… suspend:
grep . /sys/bus/usb/devices/*/power/wakeup


echo disabled |tee /sys/bus/usb/devices/*/power/wakeup
disables all wakeup caps from USB
echo enabled > /sys/bus/usb/devices/1-
enables just MY wireless Keyboard, to wakeup my System
add autostart.sh part and use suspend… but filesharing is offline too….

echo disabled |tee /sys/bus/usb/devices/*/power/wakeup 2>&1
echo enabled > /sys/bus/usb/devices/1-

KODI Debug Script

Simple script to toggle debug mode in KODI and tail the logfile. Exit via Interrupt (ctrl+c/^+c) executes the DebugToggle() action in KODI to terminates Debugmode.
clean() {
kodi-send --host=localhost --port=9777 --action="ToggleDebug()"
exit 1
trap 'clean' INT
kodi-send --host=localhost --port=9777 --action="ToggleDebug()"
tail -f /storage/.kodi/temp/kodi.log

Kodi Auto Fullscreen

Add to


this line:

<visible>Player.HasAudio + Skin.HasSetting(FullscreenMusic) + IsEmpty(Window(10025).Property(PlayingBackgroundMedia)) + System.IdleTime(5) + Player.Playing</visible>


<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1118">
  <onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
  <visible>Player.HasAudio + Skin.HasSetting(FullscreenMusic) + String.IsEmpty(Window(10025).Property(PlayingBackgroundMedia))</visible>

this should work on every skin in KODI, you prob have to customize the settings “Skin.HasSetting” and the window ids.

OSX & Samba… hate-it! but…

there’s a little workaround…

The Situation: all my music is stored on a Openelec Mediasystem and when i want to edit the ID3Tag or copy to my Phone, i always have to use the samba share on OE… it always would take “hours” to navigate through directory, ’cause every folder takes like 5mins to load, except now, you rather expect what is inside.

i started organizing my music though iTunes, meaning ./Artist/Album/[Number] [NAME].mp3

so, i press “apple+shift+g” to navigate to a folder and when inside the musicfolder, enter the artistname, and then the folder appears; the best, it’s case insensitive…. following inside the artistfolder “apple+shift+g” to navigate to the album, or the “Unknown Album” folder and so on. it forces finder to reload the content, meaning looking for a file is possible too; just “go-to folder” “01” and finder will be forced to load the contend.