Kodi Community Forum
Override the "display to sleep when idle" - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: Override the "display to sleep when idle" (/showthread.php?tid=85041)



Override the "display to sleep when idle" - moripi - 2010-11-09

Hia.
I've recently connected my xbmc to a new samsung LCD.
My problem is, when xbmc goes to sleep, the LCD doesn't go to sleep when there are no signal is detected.
Luckilly, the samsung has a serial port (named EX-LINK and service port [for google]), which allows control of the screen, including power off!

So... I need to write a script, which when sleep when idle is triggered, communication to xbmc's serial port is performed.

Problem is, I can't find which function to override. I'm pretty okay with the coding side of it, but can't find the details for which override to make.

Does anyone know how I can override the sleep when idle function? What its called? I've looked through the source code, and did an extensive google, but I suspect I'm the first one to do this task.

For those who have the same problem with Samsung TVs, I will be sure to include the code after I write it. For google's sake (and the sake of others having this problem, if you use this code, please post a reply saying that it was useful.

Mori