Hi Jarod,

 Patch works. It was quote easy with some googlling to build the module outside 
of the kernel. 
 
 so for anyone reading I am running 3.3rc2 downloaded and installed from 
mainline. 

 mkdir test 
 cd test 
 sudo vim imon.c (went to master kernel git and got the original imon.c file) 
and pasted it into my new imon.c file in the test directory. check that the 
permissions are the same. 

 downloaded your patch from above and renamed it imon.patch.

 patch -p1 imon.c imon.patch

 created a makefile (check to make sure you have the modules directory)

 ls -d /lib/modules/$(uname -r)/build

 and for me that returned

 /lib/modules/3.3.0-030300rc2-generic-pae/build

 sudo vim Makefile and added the following

 obj-m += imon.o
 
all:
        make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
 
clean:
        make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

 save file and run make

 then ls

 will list your newly built imon.ko

 sudo /etc/initd/lirc/stop
 sudo/etc/init.d/LCdd stop
 sudo rmmod imon

 no rename the current imon.ko to imon.bk -check my syntax could be
wrong

 sudo mv /lib/modules/3.3.0-030300rc2-generic-
pae/kernel/drivers/media/rc/imon.ko /lib/modules/3.3.0-030300rc2
-generic-pae/kernel/drivers/media/rc/imon.bk

 now copy the new imon.ko file to the proper directory - again check my sysntax.
 
 sudo cp imon.ko 
/lib/modules/3.3.0-030300rc2-generic-pae/kernel/drivers/media/rc/

 and finally fire up and test it all.

 sudo modprobe imon 
 sudo /etc/init.d lirc start 
 sudo/etc/init.d/LCDd start

 irw (IT WORKS)

 rebooted the system it works from cold boot and did a suspend resume
cycle and it works. Thanks Jarod.

 I am attaching the imon.ko built against 3.3rc2 if anyone else has
issues they can just copy the file and will not need to perform the
above. Cool I just figured out how to build modules and patch them
against a .deb installed mainline kernel.

** Attachment added: "This is the patched file needed to fix the problem ready 
to use as a module"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/925524/+attachment/2711620/+files/imon.ko

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/925524

Title:
  10.04 11.04 11.10 imon lirc not responding on boot work after suspend
  resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/925524/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to