2011-01-03, 00:50
Hi, I've been reading this forum for a long time now (Used to have an original xbox with XBMC a couple of years ago.) and have always found the info I needed without asking, but now I've ran into a problem.
I'm using an XBMC Live install on an Atom based HTPC, and am using the Ambx starterkit to simulate Ambilight. Everything is working fine, and is being controlled by a Logitech harmony remote.
When I boot the HTPC, the Ambilight automatically starts working because I added these lines to etc/rc.local:
However, I normally put the HTPC to sleep, but when I then resume it, the Ambilight doesn't turn on. I always have to use my mobile phone to ssh in, and run this command again:
Now my question is simple: How can I automatically run the above command automatically everytime xbmc resumes from sleep?
(And if that isn't possible: Can i map a remote button to run this command in some way?)
Thanks in advance,
Ken
PS:
Here's a video of my system in action.
I'm using an XBMC Live install on an Atom based HTPC, and am using the Ambx starterkit to simulate Ambilight. Everything is working fine, and is being controlled by a Logitech harmony remote.
When I boot the HTPC, the Ambilight automatically starts working because I added these lines to etc/rc.local:
Code:
nice -n -20 /usr/local/bin/boblightd
sudo su - xbmc -c "DISPLAY=:0.0 boblight-X11 -t 0.1"
However, I normally put the HTPC to sleep, but when I then resume it, the Ambilight doesn't turn on. I always have to use my mobile phone to ssh in, and run this command again:
Code:
sudo su - xbmc -c "DISPLAY=:0.0 boblight-X11 -t 0.1"
Now my question is simple: How can I automatically run the above command automatically everytime xbmc resumes from sleep?
(And if that isn't possible: Can i map a remote button to run this command in some way?)
Thanks in advance,
Ken
PS:
Here's a video of my system in action.