Posts by Protx

    I am currently using a Radxa ZERO 3E (Rockchip RK3566) running a bleeding-edge build of LibreELEC compiled from chewitt’s GitHub repository.

    I managed to get a 0.96" SSD1306 OLED display working using LuRu’s addon, which required a patch to enable I2C. However, it recently stopped working, possibly due to an update in Kodi’s Python environment?.

    Through troubleshooting, I discovered that updating smbus2 to version 0.6.0 resolved the immediate issue, though the service failed to start consistently after a reboot. To fix this, I used AI to create a patch that implements a retry mechanism for the I2C connection.

    I have also integrated LuRu’s patches into the latest script.xbmc.lcdproc (v4.1.1). While I’m not certain this step is strictly necessary, I have attached the modified files.

    changes to service.oled/service.py

    Thanks to LuRu for this addon.

    But when the OLED addon seems to be installed, it shows an error message instead of starting.
    Where can I check the log file for more information ?

    Access LibreELEC via SSH to view kodi.log. To make the info easier to find, restart the OLED service first. Go to Settings > Add-ons > My add-ons > Services > Oledproc, then toggle the service off and on again.

    SSH to check the log:
    ssh root@libreelec
    root@libreelec's password:
    ##############################################
    # LibreELEC #
    # https://libreelec.tv #
    ##############################################

    LibreELEC (community): devel-20251228021942-6f3e0a1 (RK356X.aarch64)
    LibreELEC:~ # cat .kodi/temp/kodi.log

    From kodi.log when i2C is not activated:
    2025-12-28 07:29:48.813 T:984 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <class 'Exception'>
    Error Contents: Cannot connect to OLED display at address 0x3c
    Traceback (most recent call last):
    File "/storage/.kodi/addons/service.oled/service.py", line 509, in <module>
    monitor = BackgroundService()
    File "/storage/.kodi/addons/service.oled/service.py", line 460, in __init__
    self.oled = Oled(*args)
    ~~~~^^^^^^^
    File "/storage/.kodi/addons/service.oled/service.py", line 108, in __init__
    raise Exception(f"Cannot connect to OLED display at address {hex(i2caddress)}")
    Exception: Cannot connect to OLED display at address 0x3c
    -->End of Python script error report<--

    Tweety The file list above ^ is from Linux 6.18.0 (released this week) and I don't see an OrangePi 5 "Pro" device-tree file to make an image from. It's best that you contact Xunlong and get them to submit patches to add the board upstream; then I will be happy to pick/backport them for testing. Or if you can point me towards patches from another distro targetting a recent upstream kernel (not the downstream vendor kernel) I can take a look at them.

    I do not have this device, but Armbian have a dts file/patch for their "edge" 6.18 kernel.

    rk3588s-orangepi-5-pro.dts