• 1
  • 5
  • 6
  • 7
  • 8
  • 9(current)
lirc and resume
Instead of a convoluted script that uses curl to shut down and start lirc through XBMC, use Ubuntu's power management system.

Create a file named, /etc/pm/sleep.d/90_lirc :

Code:
#!/bin/sh

# Script to disable lirc before suspend and restart after wake.

case "${1}" in
        suspend|hibernate)
                /etc/init.d/lirc stop
                ;;
        resume|thaw)
                /etc/init.d/lirc start
                ;;
esac

Then make it executable:

Code:
chmod 755 /etc/pm/sleep.d/90_lirc
Reply
Yep, that's exactly how I got it to work as well. /etc/pm script. Again though, I think it's more important that you make sure it's properly shut down before the machine suspends as opposed to just restarting it when it wakes up.
Reply
pashdown Wrote:Instead of a convoluted script that uses curl to shut down and start lirc through XBMC, use Ubuntu's power management system.

Create a file named, /etc/pm/sleep.d/90_lirc :

Code:
#!/bin/sh

# Script to disable lirc before suspend and restart after wake.

case "${1}" in
        suspend|hibernate)
                /etc/init.d/lirc stop
                ;;
        resume|thaw)
                /etc/init.d/lirc start
                ;;
esac
Then make it executable:

Code:
chmod 755 /etc/pm/sleep.d/90_lirc

that "convoluted" script didn't use xbmc to shut down lirc, it shut down XBMCs interperater, LIRC itself, then restarted the low level drivers and brought it all back up.
That lirc stop and start might work on some setups, but not mine.


Btw.. that script is included in XBMC svn. if XBMC svn isn't working, that script wont.
so use this: http://wiki.xbmc.org/?title=Enable_Wake-On-Device
and this: http://wiki.xbmc.org/?title=Automatic_li...ume_script
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
outleradam Wrote:that "convoluted" script didn't use xbmc to shut down lirc, it shut down XBMCs interperater, LIRC itself, then restarted the low level drivers and brought it all back up.
That lirc stop and start might work on some setups, but not mine.
Btw.. that script is included in XBMC svn. if XBMC svn isn't working, that script wont.

Interesting. Your script shuts down the XBMC interpreter, then shuts down LIRC, then shuts down low level drivers. What "low level" drivers are you speaking of? The kernel modules? If XBMC suspends and restarts fine without the LIRC issue, why does the "interpreter" need to be shut down?
Reply
The script is right here http://wiki.xbmc.org/?title=Automatic_li...ume_script

yes, the kernel modules. Interperater needs to be shut down to resync with lirc once it comes back up. Also, on my setup, the power button is the S3 resume button and the last command is stored at the usb device until sent to a receiver. So that's the most opportune time to kill that resume/suspend command.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
Dear All

Anyone was able to use lirc after the resume on Natty?



L.
Reply
lupick Wrote:Dear All

Anyone was able to use lirc after the resume on Natty?



L.

I'm having problem with this to again....

http://forum.xbmc.org/showthread.php?p=8...post872524

/Söder
Vero 4K with unRAID server and mysql (mariadb)
Reply
  • 1
  • 5
  • 6
  • 7
  • 8
  • 9(current)

Logout Mark Read Team Forum Stats Members Help
lirc and resume0