You are not logged in.

#1 2009-04-30 20:53:31

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Help restarting lirc modules at resume (waking up from suspend)

Hello everyone,

I'm 99.9% done getting my damned arch/xbmc/htpc setup and have run into a problem.

My remote stops working if I suspend the computer.
After some reading around on the great ol' google, I think I've found the answer:

after Suspend the remote was gone since the module was loaded
again after resume and was not recognised as /dev/lirc0 bit /dev/lirc1.

solution: a little script in /etc/pm/sleep.d/ which unloads the module
properly which will free the /dev/lirc0 device and then reloads the
module which will recreate /dev/lirc0 and then start lircd.

--quoted from a random post on the xbmc forums.

Unfortunately all the scripts I've found are written specifically for Ubuntu, and well, I'm a bit slow.

Any chance someone can help me get something whipped up?
Please?

Offline

#2 2009-05-18 09:11:06

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: Help restarting lirc modules at resume (waking up from suspend)

Hmm, which script exactly do you mean? It's basically the same with any linux distro...

Offline

#3 2009-11-30 19:54:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,671
Website

Re: Help restarting lirc modules at resume (waking up from suspend)

@op - did you ever figure out your problem?  I too am noticing this: lircd stops working after a resume from suspend -- even if I manually modprobe the modules and do a /etc/rc.d/lircd restart

Last edited by graysky (2009-11-30 20:07:33)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2009-11-30 20:02:14

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: Help restarting lirc modules at resume (waking up from suspend)

I never did get this working, mostly becuase my htpc died and I quit caring.  However, I'll soon be replacing it and I'm sure I'll run into the same problem again.

Offline

#5 2009-11-30 20:07:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,671
Website

Re: Help restarting lirc modules at resume (waking up from suspend)

I found this on the xbmc wiki: http://xbmc.org/wiki/?title=Create_a_resume_script but it seems to be written for ubuntu.

Last edited by graysky (2009-11-30 20:08:55)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2010-10-20 18:05:14

kailua
Member
Registered: 2010-05-27
Posts: 13

Re: Help restarting lirc modules at resume (waking up from suspend)

you could simply create the file /etc/pm/config.d/modules and write in it

SUSPEND_MODULES="lirc_atiusb"

or whatever your kernelmodule for your remote is. this unloads the kernelmodule before suspend and reloads it on resume.

Offline

Board footer

Powered by FluxBB