Posts by Da Flex

    Quote
    Code
    (prefer) mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced

    Then despite of your thread title, 1080i is detected.

    The unusual point, compared to other users, is that you have a coloring issue. Have you already tried a different HDMI cable? If you buy a new one, look for the "HDMI High Speed" or "HDMI High Speed Premium" standard.

    PS: Ich weiss nicht, welche add-ons Du schon installiert hast. Für die verwendete Python-GPIO-Bibliothek braucht man das add-on "Raspberry Pi Tools".

    Evtl. kann es sein, dass autostart.sh und/oder volume_regulator.py mit chmod +x <Dateiname> ausführbar gemacht werden müssen.

    Du kannst autostart.sh testen, indem Du es direkt vom SSH-Terminal mit /storage/.config/autostart.sh aufrufst.

    der Befehl für Volume +- ist

    kodi-send --action="VolumeUp"

    kodi-send --action="VolumeDown"

    Das macht es einfacher. Dann fällt die umständliche Abfrage der bisherigen Lautstärke weg.

    Der Code müsste dann so aussehen (mit extra Button-Definition des Reglers zum Stumm schalten):

    Installation:

    - Ordner für das Python-Script anlegen: mkdir /storage/scripts

    - Script-Datei erstellen: > /storage/scripts/volume_regulator.py

    - Code einfügen und speichern

    - Python-Bibliothek KY040.py aus dem Start-Posting in den gleichen Ordner kopieren

    - Script beim Start von LE ausführen, dazu Inhalt von /storage/.config/autostart.sh wie folgt:

    Bash
    #!/bin/sh
    
    python /storage/scripts/volume_regulator.py

    Wie ist das mit Zeile 9-11 ?

    Das Kommando zum Setzen der Lautstärke erwartet eine Angabe in Prozent (relevant für Code-Zeilen 18 und 20).

    Beispiel: Lautstärke auf 80% mit Bildschirm-Ausgabe zur visuellen Bestätigung (Option "true"):

    Code
    kodi-send --action='SetVolume(80, true)'

    Es muss also vorher die bereits eingestellte Lautstärke in Prozent ermittelt werden. Das geht per JSON-Anfrage:

    Code
    curl  -H "Content-Type: application/json"  -d "{\"jsonrpc\": \"2.0\", \"method\": \"Application.GetProperties\", \"params\" : { \"properties\" : [ \"volume\", \"muted\" ] }, \"id\" : 1 }" http://libre-elec:8080/jsonrpc

    Ergebnis der JSON-Anfrage:

    Code
    {"id":1,"jsonrpc":"2.0","result":{"muted":false,"volume":80}}

    Problem: Das Ergebnis muss noch geparsed werden, um nur die Zahl 80 (%) zu bekommen.

    Verwende also statt Zeile 9-11 das genannte Kommando, und eine Regular Expression, mit der Du vom JSON-Ergebnis zum Prozentwert konvertierst. Dann den Step-Wert vom Regler addieren oder subtrahieren. Das Ergebnis wie gezeigt per kodi-send übergeben.

    Probiere die Kommandos im SSH-Terminal aus, bevor Du sie in Dein Python-Script übernimmst.

    Looks like the LE server was offline:

    Code
    2019-09-14 19:21:59.191 T:140409242113792   ERROR: ## LibreELEC Addon ## oe::load_url(http://releases.libreelec.tv/releases.json) ## ERROR: (URLError(error(110, 'Connection timed out'),))
    2019-09-14 19:21:59.191 T:140409242113792   ERROR: Traceback (most recent call last):
                                                  File "/var/lib/jenkins/LE/build2/workspace/Generic/build.LibreELEC-Generic.x86_64-9.0.2/LibreELEC-settings-37e206b712a46213522a567a408382f5f082502a/.install_pkg/usr/share/kodi/addons/service.libreelec.settings/oe.py", line 270, in load_url
                                                  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                                  File "/usr/lib/python2.7/urllib2.py", line 429, in open
                                                  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
                                                  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
                                                  File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
                                                  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
                                                URLError: <urlopen error [Errno 110] Connection timed out>

    You can switch add-on updates to manual as a workaround.

    It's right, because they made an upload error before.

    LE 9.1.x was wrongly sorted into the 9.0.x branch. Now it's on a new branch, which means 9.0.2 is the latest on the 9.0.x branch.

    My suggestion is to "update" to 9.0.2, because 9.1.x has known errors (occasionally goes into safe mode without a cause).

    So... How are incorrect internal memory pointers & segmentation faults exactly causing broken (external) storage devices? It sounds like a big leap to me.

    schlucke and me are referencing to this part of the log file:

    Code
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x0000000000b0d8f0 in CGLTexture::DestroyTextureObject() ()

    My interpretation is that a graphical element (CGL texture) of LE can't be loaded. Because it was loaded many times before, I came to the conclusion above.