How do have IRXevent restarted after HTPC been in sleep?
#1
I have already made my lirc restart after a suspend, but I need help to do the same for my IRXevent.

As it is now, this scripts starts at boot up:

Code:
#!/bin/bash

# Test to see if IRXevent is running first, if so kill it, then restart
if ps -ef|grep -v grep|grep -i irxevent
then
ps aux|grep -i htpc|grep -i irxevent |awk '{print $2}'|xargs kill
else
# Do nothing
echo "irxevent already dead!"
fi

# Test to see if IRexec is running first, if so kill it, then restart
if ps -ef|grep -v grep|grep -vi start|grep -i irexec
then
ps aux|grep -i htpc|grep -i irexec |grep -vi start|awk '{print $2}'|xargs kill
else
# Do nothing
echo "irexec already dead!"
fi

#test to see if an instance of irxevent is already running
if ps -ef|grep -v grep|grep irxevent
then
# do nothing
echo "irxevent already running"
else
# start irxevent
irxevent /home/htpc/.lircrc &
fi

#test to see if an instance of irexec is already running
if ps -ef|grep -v grep|grep irexec
then
# do nothing
echo "irexec already running"
else
# start irxevent
irexec -d /home/htpc/.lircrc &
fi

exit

The problem is, just like it normaly is for LIRC, that before suspend the program needs to be unloaded.

The LIRC problem was solved by "doing something" that killed LIRC at sleep, and restarted at wake up.

Can someone please help me do the same for my IRXevent?

/Söder
Vero 4K with unRAID server and mysql (mariadb)
Reply

Logout Mark Read Team Forum Stats Members Help
How do have IRXevent restarted after HTPC been in sleep?0