2013-12-23, 05:34
Does the directory that the file is meant to be in exist?
begin
button = KEY_RED
prog = irexec
config = /bin/killall -9 xbmc/bin &
end
ACTION=="add", SUBSYSTEM=="rc", RUN+="/usr/bin/irexec -d /storage/.config/.lircrc"
#!/bin/bash
export DISPLAY=:0
while true; do
if [[ ! $(pidof irexec) ]]; then
(sudo -u xbmc irexec -d /home/xbmc/.lircrc )&
(sudo /usr/bin/ir-keytable -c -D 1000 -P 125 -w /etc/rc_keymaps/rc6_mce -p NEC,RC-6,LIRC)&
echo irexec not running, starting now...
else
echo irexec running.
fi
sleep 1
done
#start IRexec
su -c '/usr/bin/irexec -d /storage/.config/.lircrc' -l root
(2013-06-19, 13:51)teeedubb Wrote: First log in to you openelec machine using ssh.
http://wiki.openelec.tv/index.php?title=Ssh_commands
Create a irexec config:
nano /storage/.config/.lircrc
Paste in
Code:begin
button = KEY_BRL_DOT1
prog = irexec
config = /bin/killall -9 xbmc.bin &
end
Crtl + x to exit. Use the command irw to see what is being pressed and replace button field.
Create a udev rule to start irexec:
nano /storage/.config/udev.rules.d/infrared.rules
Code:ACTION=="add", SUBSYSTEM=="rc", RUN+="/usr/bin/irexec -d /storage/.config/.lircrc"
(2014-02-16, 03:28)TwistedNy Wrote: thank you teedubb.
1. Create 'autostart.sh' in /storage/.config
#start IRexec
su -c '/usr/bin/irexec -d /storage/.config/.lircrc' -l root
#start IRexec
su -c '/usr/bin/irexec -d /storage/.config/.lircrc' -l root