Lirc MCE remote not working after suspend
#1
I was hoping this would fix my issue with Lirc and my MCE remote after suspend but it hasn't.

It seems on cold boot my Lirc device is lirc0 as expected and after resuming from S3 suspend it is still lirc0 but the remote doesn't work in XBMC.

The receiver still flashes on remote input.

irw doesn't give any input. I can restart lirc (sudo /etc/init.d/lirc restart) and the remote still won't work with XBMC or irw. I can even restart both lirc and xbmc and the remote won't work.

Does anyone have any idea what would cause this?

(I've looked around and can't find anything to fix this)
Reply
#2
Try this one: http://wiki.xbmc.org/?title=Automatic_li...ume_script
the other one is missing important part which is rmmod and modprobe the lirc driver.
I removed the curl part and it works fine without it in Achlinux.
Reply
#3
Thanks for that, it worked an absolute treat. I didn't use the curl stuff either.

Code:
#!/bin/sh

# This script uses curl. Install curl using the following command from your terminal apt-get install curl
# This script will restart lirc drivers, Lirc, and XBMC's lirc interperater upon resume.

case "$1" in  
    resume)
        lircDriver=$(dmesg | grep usbcore | grep -i 'lirc' | sed -e "s/.* \(lirc*\)/\1/" | head -n 1)
        /etc/init.d/lirc stop
        rmmod $lircDriver
        modprobe $lircDriver
        /etc/init.d/lirc start
        #remove the comment if the computer automatically sleeps after resume
        #irw & sleep 1; killall irw
        echo "lirc resume script completed!!!" >>/tmp/script.log
    ;;
esac

So people know, that worked for me.
Reply

Logout Mark Read Team Forum Stats Members Help
Lirc MCE remote not working after suspend0