Release XBMC LCDproc Python addon - 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) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: Release XBMC LCDproc Python addon (/showthread.php?tid=143912) |
RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-13 Thanks, but thos does not have any effect. My LCDd uses SureElec driver and this does not switch the backlight when LCDd stops. Looks like backlight can be switched off only by a client. RE: XBMC LCDproc Python addon (testing needed) - herrnst - 2012-11-13 Hm. As a last resort, maybe try this: Put this script somewhere on your XBMC system (assuming /usr/local/bin/backlightoff.py) and make it executable: Code: #!/usr/bin/env python Then, execute this in your system suspend handler somewhere, but make sure it is executed to run in the background (e.g. "/usr/local/bin/backlightoff.py &" or so), else your system will appeared hanging during the suspend process. At last, in your resume handling, simply do a "killall python". If that also doesn't work, guess we're out of luck for now. RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-13 Many thanks I tried the script manually it just refreshes the screen, no backlight off. RE: XBMC LCDproc Python addon (testing needed) - herrnst - 2012-11-13 Huh? At least if run manually, lights should go off (that scripts generates a virtual screen with higher priority than that of the addon and turns the backlight off), tested here on my SoundGraph iMON. Please also remember to revert the "Backlight"-setting in your LCDd.conf to "Backlight=open"; if set to "on", it won't work. (Just to mention this - remember to restart LCDd ) RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-13 Strange. When I try manually type to a telnet session, the sequence of commands works!!! But when Irun it as script it does no... RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-13 Ohhh, I missed last two lines of the script. Yes, it works when ran manually. RE: XBMC LCDproc Python addon (testing needed) - herrnst - 2012-11-13 Fine, maybe it then also works in the suspend/resume sequence. Just remember (important!) to run it as background process so the suspend procedure can run through. RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-14 No luck with suspend/resume script. I tried this: /etc/pm/sleep.d/92_display case "${1}" in suspend) /usr/local/bin/backlightoff.py & /etc/init.d/LCDd stop killall python ;; resume|thaw) /etc/init.d/LCDd start ;; esac I am sure the script is being executed. RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-14 Good news. I found that python script can be fired from inside the XBMC like that: RunScript(script[,args]*) So I will map this to a key on my Logitech remote and will add the key to a sequence before calling suspend() There is also LCD.Suspend build in, that suspends lcdproc. RE: XBMC LCDproc Python addon (testing needed) - herrnst - 2012-11-14 That suspend script won't work Try this: Code: # cat /etc/pm/sleep.d/92_display LCDd stop/start will reset the backlight state, and the python script shall be killed on resume (if directly killed, light will turn on instantly again). If this works, this one might be something for the wiki page... RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-11-16 I tried this before, without success. Maybe it has something with sleep daemon run levels, I do not have enough time to play with. Anyway, I applied my suggestion with mapping a key to your python script and it works as I need! Many thanks for your support, I will keep watching this thread, because tiding up LCD during XBMC post-processing is definitely more generic solution. Jaro RE: XBMC LCDproc Python addon (testing needed) - herrnst - 2012-11-28 Greetings, for all being annoyed by the fact the addon displays all text aligned to the left only, please have a look at the aligntext branch of the script.xbmc.lcd repository at GitHub: Using that branch, you may put the tags Code: $INFO[LCD.AlignCenter] Code: $INFO[LCD.AlignRight] Code: <line>$INFO[LCD.AlignCenter]$INFO[VideoPlayer.Title]</line> If that stuff works without problems, I'll merge this to the master branch. Would love to get some feedback on this! Best regards, herrnst RE: XBMC LCDproc Python addon (testing needed) - ProGEEK - 2012-12-03 Have just installed this addon in OpenELEC 2.95.2, and have got to say, am very impressed. Works as expected. I also have the backlight / LCD on after poweroff, but I think this is because LCDProc doesnt get terminated properly (The OpenELEC team already have a bug report open for this) Beautiful Addon, and am very happy to test any new changes, as this should be in the main addon repo asap RE: XBMC LCDproc Python addon (testing needed) - herrnst - 2012-12-04 Thanks The backlight problem might be related to the "Backlight="-setting in LCDd.conf (the light of my iMON also behaves strangely when powering off if the option is not set to "Open"), you may also try to play with the "Dim on shutdown" setting in the addon's GUI settings. All latest changes (including the alignment feature) are currently merged into master RE: XBMC LCDproc Python addon (testing needed) - jardes69 - 2012-12-05 Hi, everything works great so far :-) Have you been thinking about a graphic equaliser, is it feasible? |