After successful startup, I get the following error in the “easy log viewer” program addon:
ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
The thing is, everything runs and my Kodi setup doesn’t fail at all.
Any idea what that error means? How to fix it? And how is it that it seems to not affect my setup in anyway?
Thank you for your response, but I don’t really understand it.
I mean it’s clearly labelled as an error in the log viewer. There is another section with Warnings only, but this is taken from the Errors section.
Correct me here if I’m wrong, but are you trying to say that OSMC uses a different Power Management service other than Kodi and that’s why the Kodi logs are throwing that error?
In that case, could this be impacting my RPi power consumption in some way, as I occasionally get the rainbow square (but like mentioned, it’s not impacting the performance as far as I can see).
Kodi is just an application, that runs on your computer. Kodi has interfaces for each platform to use the OS’ power management code. On Linux, there are several possibilities for what may be handling power, depending on the distribution:
UPower (for early 2010 based systems)
logind (for systems using systemd)
POSIX (a generic interface which works, but isn’t as refined as it’s basically using system calls).
For Kodi to determine which interface to use, it must check via DBus for capabilities, so it does it as follows:
Check if we have UPower service definitions. The DBus call fails, because we don’t have UPower running.
If not, then check if we have logind definitions. We do, so the DBus call succeeds and the power management interface implemented is done by CLogindUPowerSyscall.
If we didn’t have LoginD, you’d then see another error, and we would fall back to the bog standard POSIX power routines.
This comes up a lot. It’s not an error.
Nope. The power management code is for things like shutdown or reboot. Kodi sends a signal via DBus to initiate a reboot. DBus and a policy authorisation system (in our case PolKit), evaluates whether the user is privileged to do so (osmc user is granted by polkit). LoginD receives the signal and tells systemd that a request has been made to either shut down or reboot, and systemd (our init system) handles the process.
If you are seeing a rainbow square, you need to get a better power supply. You can get a good one from here. You can learn about the importance of a good power supply on our Wiki.