Posts: 22
Joined: Jan 2012
Reputation:
0
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.
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
Many thanks
I tried the script manually it just refreshes the screen, no backlight off.
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
Strange. When I try manually type to a telnet session, the sequence of commands works!!! But when Irun it as script it does no...
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
Ohhh, I missed last two lines of the script. Yes, it works when ran manually.
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
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.
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
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.
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
2012-11-16, 10:32
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
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden
Posts: 22
Joined: Jan 2012
Reputation:
0
Hi, everything works great so far :-) Have you been thinking about a graphic equaliser, is it feasible?
Acer Aspire Revo 3600 1Gb RAM + Antec Fusion 350 + Sure Electronics 20*4 LCD + Chinavision IR Receiver + Logitech Harmony 525 + XBMCbuntu Eden