[RPi4] DDCUtil on LE 12.0.2

  • Hey there,

    I know there are two topics about this already, Namely Help installing DDCUTIL and Please add brightness control via ddcutil .

    However, even compiling on RPi-OS with the x11-compat disabled, leaves LE missing the necessary libraries.

    I would like to use it to power on/off my monitor, as well as potentially setting the active source and KVM-peripherals when it's being used. The monitor is a Philips 439P1/00 with neither CEC, nor DPMS. I can reach it through I2C/ddcutil on both RPI-OS and my Ubuntu Desktop.

    Is there a way I can run ddcutil or otherwise invoke the I2C-calls in LE/Kodi?

  • LE doesn't package i2c utilities into the core image as they're not normally required, but the System Tools bundle add-on in the LE repo contains i2c-tools. The user response in the first thread you linked Help installing DDCUTIL also suggests copying the ddcutil binary from an Ubuntu image worked, so perhaps Ubuntu compiles it static whereas RPiOS compiles it shared? You can avoid the need to install Ubuntu by downloading the .deb package from online resources and unpacking it with ar x file.deb on LE to get the binary, then use ldd to see if it's static and usable.

    NB: Another possibly useful thing is the "Turn Off" screensaver in the Kodi repo. It will normally trip shutdown/wake on a monitor instead of showing pretty things on-screen.

  • Thanks for the Insight,

    I already knew about system-tools/I2C from my argon one case. I had tried the Ubuntu package, which didn't work for me (maybe OP there was not using an RPi and thus had access to libX11? It is dynamically linked). My build fails on libjansson, which is not something I will find in LE. Static linking is a good tip, but so far I couldn't make the exe build with static linking. I will ask about that on the ddcutil side.

    I also briefly went the 'Fine, I'll do it myself'-route, since there are python-bindings for DDC/CI. The backend seems very doable, but with monitor-selection being a dynamic scan and capabilities being monitor-dependent, I couldn't figure out a good settings-UI fitting Kodis static UI-framework.