Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running 12.10 on an intel NUC i3 as a media box for XBMC. Since XBMC likes to crash on me when streaming, how can I map a button on my MCE remote to reboot the system? Based on another post here, I create a file called .lircrc in my home folder and put this:

begin
 prog = rawcontrol
 button = Teletext
 config = power
end

and added this to my /etc/rc.local

ircat rawcontrol | (while read line
do
        if [ "x$line" = "xpower" ]; then
                reboot
        fi
done) & 

but that didnt seem to do anything. I also tried creating a folder called .lirc and move the .lircrc file into it reading another post somewhere saying that was necessary. That didnt work either. Anything I am missing?

Thanks for the help. Ernie

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.