Posts: 3,901
Joined: Sep 2013
Reputation:
358
OK, that's not a proper debug log. You need to put Kodi into debug mode ( settings -> system settings -> logging ) then quit and restart Kodi (it will remember the setting) and reproduce the error and logfile. Just from the non-debug log though, it looks as if kodi is trying to open an external player. A full debug log though will contain a lot more info and show the key/remote presses etc.
Learning Linux the hard way !!
Posts: 187
Joined: Dec 2011
Reputation:
1
bam80
Senior Member
Posts: 187
The garbage with audio in the log seems Kodi problem. Having it too
Posts: 187
Joined: Dec 2011
Reputation:
1
bam80
Senior Member
Posts: 187
Maybe that big delays between button click to action cause by that audio problem in the log.
In that case, maybe the problem would gone if that Exec occurred in python code. For that, we would gonna make an addon.
Only if someone would try to make it..
We already have addon regulating hw parameters, e.g - Audio Mixer. It can be used as reference.
Posts: 216
Joined: Jan 2006
Reputation:
4
Fergus
Senior Member
Posts: 216
I doubt I can help much from here on in (out of my depth now), but I'm glad to hear you've made some good progress. If you want someone more clued up than me to comment on the log file entries however, I'd suggest a fresh log where you enter debug mode before restarting Kodi (your previous log looks show a richer set of debug info only when Debug mode was enabled after Kodi had completed a lot of start-up activities).
As for the laggy nature of the brightness changes, I never really understood whether you wanted fine grained control over the brightness (requiring multiple presses of a brighten/dim button) or simply need to toggle between a couple of known brightness levels for fixed scenarios (e.g. day versus night, room lights on versus room lights off, live TV versus movies, etc.). Setting the brightness to an absolute value (i.e. without the '+' or '-' argument for relative values) would obviously be smoother than multiple presses on your brighten-it-just-a-little-bit-more button.
Best of luck,
Fergus.
Posts: 13
Joined: Dec 2018
Reputation:
2
paulr
Junior Member
Posts: 13
2019-11-03, 14:08
(This post was last modified: 2019-11-03, 14:09 by paulr.)
The lag seems to be coming from the ddcutil code, since it's just as bad when ddcutil is called from the command line. Upping the step from +/-5 to 15 makes it less irritating. The logged audio garbage is troubling, but it doesn't seem to be the culprit in this case. If anyone can add any knowledge of when else these audio dumps occur, maybe I'll raise an issue about it.
In future, perhaps I/someone could create a background python script to decouple the receiving of button clicks and the sending of screen brightness commands, doing each at the maximum rate possible. This would also allow for the brightness steps to be non-linear, which would be handy since +5 at low brightness is a much bigger change than +5 at high brightness, on my monitor at least.
Anyway, that's for a distant parallel future in which I have time to work on stuff like that! Thank you for your help everyone.
Posts: 216
Joined: Jan 2006
Reputation:
4
Fergus
Senior Member
Posts: 216
Worth checking if the system is quite as unresponsive when executing the ddcutil command in the background?
/usr/bin/ddcutil setvcp 10 + 15 &
Posts: 187
Joined: Dec 2011
Reputation:
1
bam80
Senior Member
Posts: 187
The same control as Kodi has for variable seek could help here, I think.