Imon and suspend to ram

View: New views
1 Messages — Rating Filter:   Alert me  

Imon and suspend to ram

by Xaero-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm trying to use my imon 0038 remote with hibernate-scripts and suspend to ram.
I made some scripts to unload all irexec, irxevent, lircd processes, and to unload/load lirc modules before/after suspension

If I suspend manually (in the console) all works fine, but If I suspend using irexec with a remote's button, it seems that modules are not correcly unloaded: indeed after resuming lircd is crashed
( sometimes I get

Sep 22 03:43:38 media lircd: could not open /dev/lirc1
Sep 22 03:43:38 media lircd: default_init(): No such device or address

, and sometimes

Sep 22 03:28:44 media lircd: could not open /dev/lirc1
Sep 22 03:28:44 media lircd: default_init(): Device or resource busy

(or the same with lirc0: the imon 0038 has 2 devices..)

Finally, if I try to unload the modules manually, I get "device or resource busy", if I use rmmod -f I get a kernel exception...

Suggestions?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
LightInTheBox - Buy quality products at wholesale price!