Good to hear Mike!  Infrared can be a fun one to troubleshoot.  I had a problem just last night where my remote stopped working.  I grabbed some "freshly recharged batteries" and my remote still did not work.  I finally found that my rechargeable batteries would not charge anymore...  New batteries and all was good.  It was very helpful to be able to get my mythtv remote from the basement and verify this. 




On Sat, Feb 7, 2009 at 12:23 PM, Mike Klein <mikeklein@vxappliance.com> wrote:
My problem reminds me of time 20 years ago when burning in new netware
systems...got a batch of 10 bad maxstor drives...near killed myself over
the weekend questioning sanity.

Well at point I was ready for bullet...decided to clear my head at a
friend's house...who happens to have ubuntu system I burned over Vista
(a 20" acer laptop beast).

I plugged in his dongle...started lirc (config'd for newer mce remote)
...started irw...and everything works as spec'd.

I hammered his remote and it just doesn't quit...so my friend...I'm
taking YOUR REMOTE HOME WITH ME!!!

And everything works fine at home. My older usbmce dongle doesn't seem
to perform up to snuff under ubuntu (but is flawless under mce) and I've
tried both kinds of mce drivers.

Well...just going to standardize on newer ir/mce2 bundle as this works
flawlessly...fun times!


mike


Mike Klein wrote:
> Ran with strace until hanging (a few presses only this time) and output
> is mostly garbage to me...nothing interesting I can see.
>
> I notice that lircd (when run via strace) will dump to stdout on each
> keypress...but irw is silent when things get hung up...and again my MS
> usb ir trx will blink on each keypress...only lirc/irw are silent.
>
>
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 799762}, NULL) = 0
> gettimeofday({1233814791, 799792}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, {0, 100000}) = 1 (in [8], left {0, 100000})
> gettimeofday({1233814791, 799861}, NULL) = 0
> read(8, "\342I\1\0", 4)                 = 4
> gettimeofday({1233814791, 799918}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 799979}, NULL) = 0
> gettimeofday({1233814791, 800008}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, {0, 100000}) = 1 (in [8], left {0, 100000})
> gettimeofday({1233814791, 800078}, NULL) = 0
> read(8, "\364\1\0\1", 4)                = 4
> gettimeofday({1233814791, 800136}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 800197}, NULL) = 0
> gettimeofday({1233814791, 800224}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 800287}, NULL) = 0
> gettimeofday({1233814791, 800314}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 800376}, NULL) = 0
> read(8, "\342I\1\0", 4)                 = 4
> gettimeofday({1233814791, 800432}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, {0, 100000}) = 1 (in [8], left {0, 100000})
> gettimeofday({1233814791, 800499}, NULL) = 0
> read(8, "\364\1\0\1", 4)                = 4
> gettimeofday({1233814791, 800556}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 800619}, NULL) = 0
> gettimeofday({1233814791, 800646}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 800709}, NULL) = 0
> gettimeofday({1233814791, 800736}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL)  = 1 (in [8])
> gettimeofday({1233814791, 800799}, NULL) = 0
> read(8, "\342I\1\0", 4)                 = 4
> gettimeofday({1233814791, 800859}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, {0, 100000}) = 1 (in [8], left {0, 100000})
> gettimeofday({1233814791, 800931}, NULL) = 0
> read(8, "\364\1\0\1", 4)                = 4
> gettimeofday({1233814791, 800988}, NULL) = 0
> select(9, [4 5 7 8], NULL, NULL, NULL^C <unfinished ...>
> lircd-0.8.3[10553]: caught signal
> mklein@father:~$
>
>
>
>
> Mike Klein wrote:
>
>> I got a spurt of 30 recognized presses (woohoo) and then lircd is back
>> to its old tricks...and top shows no abnormal cpu spike/usage. Cpu stays
>> at like 1-2%.
>>
>> mklein@father:~$ lsmod | grep lirc
>> lirc_mceusb            16992  1
>> lirc_dev               20020  1 lirc_mceusb
>> usbcore               149360  4 lirc_mceusb,ehci_hcd,uhci_hcd
>>
>> I am merely plugging in mce usb ir trx (or leave it in during reboot),
>> letting default lirc daemon run (with mce/motorola as remotes) and run
>> 'irw' with no params as /dev/lirc0 is my default.
>>
>> mklein@father:~$ ls -ld /dev/lir*
>> crw-rw---- 1 root root 61, 0 2009-02-04 22:03 /dev/lirc0
>> srw-rw-rw- 1 root root     0 2009-02-04 22:03 /dev/lircd
>> srw-rw-rw- 1 root root     0 2009-02-04 22:03 /dev/lircd1
>>
>> Here you can see my irw run until it/lirc hangs...
>>
>> mklein@father:~$ irw
>> 00000000000053fe 00 ADOWN DCT2000
>> 00000000000053fe 00 ADOWN DCT2000
>> 00000000000053fe 00 ADOWN DCT2000
>> 000000000000d3f6 00 AUP DCT2000
>> 00000000000013f9 00 ARIGHT DCT2000
>> 00000000000093f1 00 ALEFT DCT2000
>> 00000000000077f8 00 OK DCT2000
>> 00000000000037fc 00 LAST DCT2000
>> 000000000000b7f4 00 EXIT DCT2000
>> 0000000000004ff3 00 VOL+ DCT2000
>> 0000000000008ffb 00 VOL- DCT2000
>> 000000000000cffd 00 CH- DCT2000
>> 0000000000002ff5 00 CH+ DCT2000
>> 00000000000057fa 00 FAV DCT2000
>> 0000000000000ff7 00 MUTE DCT2000
>> 0000000000007ff0 00 1 DCT2000
>> 000000000000bff8 00 2 DCT2000
>> 0000000000003ff4 00 3 DCT2000
>> 000000037ff07bb8 00 Music mceusb
>> 000000037ff07bb8 01 Music mceusb
>> 000000037ff07bb8 02 Music mceusb
>> 000000037ff07bb5 00 Videos mceusb
>> 000000037ff07bb9 00 TV mceusb
>> 000000037ff07bb6 00 Pictures mceusb
>> 000000037ff07bb6 01 Pictures mceusb
>> 000000037ff07bb6 00 Pictures mceusb
>> 000000037ff07bb6 01 Pictures mceusb
>> 000000037ff07bb6 02 Pictures mceusb
>> 000000037ff07bb5 00 Videos mceusb
>> ^C
>>
>>
>> mike
>>
>> Matt Nelson wrote:
>>
>>
>>> I looked at my xorg.conf and I have UseEvents set to on/true:
>>>
>>> Section "Device"
>>>     Identifier     "Videocard0"
>>>     Driver         "nvidia"
>>>     #NEW
>>>     Option         "UseEvents" "true"
>>>     Option         "XvmcUsesTextures" "false" # necessary for color
>>> Chromakey OSD)
>>>     Option         "NVAGP" "1"                # some users report 2 or
>>> 3 works better
>>> EndSection
>>>
>>>
>>> I guess you could run in init3 and see if everything works...
>>>
>>> On Wed, Feb 4, 2009 at 7:00 PM, Mike Klein <mikeklein@vxappliance.com
>>> <mailto:mikeklein@vxappliance.com>> wrote:
>>>
>>>     The rub is...there's nothing questionable in
>>>     dmesg/daemon/messages...app
>>>     works then gets bogged down and is slow to respond.
>>>
>>>     I have all required kernel modules loaded (lirc_dev, lirc_mceusb,
>>>     lirc_mceusb2, ??) otherwise irw would never respond as it does...for a
>>>     few presses.
>>>
>>>     I actually got lead from Ubuntu forums that my problem <may> be due to
>>>     Nvidia driver...fellow had same exact problems. Will be testing
>>>     tonight.
>>>
>>>     <quote>
>>>     ...for some reason X.org would shoot up to using 100% CPU
>>>     intermittently
>>>     which would delay processing from LIRC. HAd to add the "UseEvents"
>>>     "on"
>>>     Option to my xorg nvidia device section which solved this problem
>>>     on all
>>>     my nvidia frontends....
>>>     <quote/>
>>>
>>>     Nvidia is common denominator across all computers I'm testing.
>>>
>>>     I will be very happy to have this fixed...lirc is only issue now
>>>     with my
>>>     server.
>>>
>>>
>>>     mike
>>>
>>>     Matt Nelson wrote:
>>>     > You can run a strace on lircd and see if it gives you any
>>>     direction as
>>>     > to what is wrong.
>>>     >
>>>     > If that does not help if you will give use some more verbose
>>>     output of
>>>     > what you are typing, and what you are getting back that would help.
>>>     > Also if you can show us what modules are loaded, ie:
>>>     >
>>>     > # lsmod | egrep -i "ir|mce"
>>>     > dm_mirror              60617  0
>>>     > dm_mod                 99737  2 dm_mirror,dm_multipath
>>>     > lirc_mceusb2           45572  1
>>>     > lirc_dev               46408  1 lirc_mceusb2
>>>     >
>>>     >
>>>     > These are the modules I have loaded for my mce ir receiver.
>>>      Also post
>>>     > anything if you see anything that is questionable in your
>>>     > /var/log/lircd, or appropriate logs.
>>>     >
>>>     >
>>>     >
>>>     > On Tue, Feb 3, 2009 at 10:46 PM, Mike Klein
>>>     <mikeklein@vxappliance.com <mailto:mikeklein@vxappliance.com>
>>>     > <mailto:mikeklein@vxappliance.com
>>>     <mailto:mikeklein@vxappliance.com>>> wrote:
>>>     >
>>>     >     Tested on yet another box...an older Toshiba P25-S609 laptop
>>>     which
>>>     >     I had
>>>     >     working perfect with lirc a year or more ago.
>>>     >
>>>     >     Same problem (with mceusb2 and iguanaIR)...lirc works for a few
>>>     >     keypresses and then hangs...only waking back up 10sec later
>>>     for a
>>>     >     press
>>>     >     or two and then hanging again.
>>>     >
>>>     >     So I've tested ubuntu-current lirc in addition to building
>>>     latest from
>>>     >     source...
>>>     >     Against 2 different IR dongles (mceusb and iguanaIR)
>>>     >     On 4 different machines (piii-500, tabletpc, P25-s609 and
>>>     Quadcore
>>>     >     server)
>>>     >     All running ubuntu 8.10.
>>>     >
>>>     >     Throw me a bone guys please...what can I do to troubleshoot
>>>     >     further? As
>>>     >     I state below...dmesg and logs are clean and running lirc in
>>>     >     foreground
>>>     >     shows nada.
>>>     >
>>>     >
>>>     >     mike
>>>     >
>>>     >     Mike Klein wrote:
>>>     >     > A bit more info.
>>>     >     >
>>>     >     > Testing with msoft old usb receiver usb dongle and
>>>     remote...and a
>>>     >     > completely different system. This is a quadcore w/ubuntu 8.10
>>>     >     32-bit,
>>>     >     > 4gb, ...
>>>     >     >
>>>     >     > The dongle registers as:
>>>     >     >
>>>     >     > Jan 30 21:03:41 father kernel: [ 3742.496907] usb 5-1: new
>>>     full
>>>     >     speed
>>>     >     > USB device using uhci_hcd and address 2
>>>     >     > Jan 30 21:03:41 father kernel: [ 3742.738582] usb 5-1:
>>>     >     configuration #1
>>>     >     > chosen from 1 choice
>>>     >     > Jan 30 21:03:41 father kernel: [ 3742.741095] lirc_dev:
>>>     >     > lirc_register_plugin: sample_rate: 80
>>>     >     >
>>>     >     > Same symptoms but I can get more presses out until it
>>>     fails (like
>>>     >     > 10-15). After waiting 5-20 secs I can get a few more
>>>     presses in
>>>     >     (shown
>>>     >     > via irw) before it seems to hang.
>>>     >     >
>>>     >     > Nothing in dmesg/daemons.log/messages.
>>>     >     >
>>>     >     > I am using latest ubuntu version of lirc/modules and
>>>     building for
>>>     >     > remote=usb mce old and transmitter = usb2/motorola as I have a
>>>     >     Comcast
>>>     >     > digital cable box.
>>>     >     >
>>>     >     > I have successfully built lirc in the past and had none of
>>>     these
>>>     >     issues.
>>>     >     > Now it's starting to be the hangup in my linuxmce plans.
>>>     >     >
>>>     >     >
>>>     >     > mike
>>>     >     >
>>>     >     > Mike Klein wrote:
>>>     >     >
>>>     >     >> Any ideas of what my cause failure after a few presses?
>>>     Nada in
>>>     >     >> logs/dmesg/etc.
>>>     >     >>
>>>     >     >> I've just built-out my core/mythbackend and lirc will be
>>>     kind of
>>>     >     >> important to overall solution.
>>>     >     >>
>>>     >     >>
>>>     >     >> mike
>>>     >     >>
>>>     >     >> Mike Klein wrote:
>>>     >     >>
>>>     >     >>
>>>     >     >>> I have a tx1410us tabletpc running ubuntu 8.10 32-bit.
>>>     >     >>>
>>>     >     >>> I have used stock lirc from distro and 8.4.a...and with both
>>>     >     mceusb
>>>     >     >>> dongles and iguanaIR prototype.
>>>     >     >>>
>>>     >     >>> Using mode2 or iguana's diagnostics don't show anything
>>>     out of the
>>>     >     >>> ordinary...and they continue to work.
>>>     >     >>>
>>>     >     >>> It's lircd that seems to fail after just a few presses.
>>>     >     >>>
>>>     >     >>> I've looked for extra debug output/etc. but can't find
>>>     anything.
>>>     >     >>>
>>>     >     >>> This equipment works flawlessly under Vista or XP MCE.
>>>     >     >>>
>>>     >     >>> I will try under Windows with WinLIRC perhaps just for
>>>     >     laughs...but this
>>>     >     >>> can't be my permanent solution.
>>>     >     >>>
>>>     >     >>>
>>>     >     >>> mike
>>>     >     >>>
>>>     >     >>>
>>>     >     >>>
>>>     >     >>>
>>>     >     >>
>>>     >
>>>     ------------------------------------------------------------------------------
>>>     >     >> This SF.net email is sponsored by:
>>>     >     >> SourcForge Community
>>>     >     >> SourceForge wants to tell your story.
>>>     >     >> http://p.sf.net/sfu/sf-spreadtheword
>>>     >     >>
>>>     >     >>
>>>     >     >
>>>     >     >
>>>     >
>>>     ------------------------------------------------------------------------------
>>>     >     > This SF.net email is sponsored by:
>>>     >     > SourcForge Community
>>>     >     > SourceForge wants to tell your story.
>>>     >     > http://p.sf.net/sfu/sf-spreadtheword
>>>     >     >
>>>     >
>>>     >
>>>     ------------------------------------------------------------------------------
>>>     >     Create and Deploy Rich Internet Apps outside the browser with
>>>     >     Adobe(R)AIR(TM)
>>>     >     software. With Adobe AIR, Ajax developers can use existing
>>>     skills
>>>     >     and code to
>>>     >     build responsive, highly engaging applications that combine the
>>>     >     power of local
>>>     >     resources and data with the reach of the web. Download the Adobe
>>>     >     AIR SDK and
>>>     >     Ajax docs to start building applications
>>>     >     today-http://p.sf.net/sfu/adobe-com
>>>     >
>>>     >
>>>
>>>
>>>
>>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code to
>> build responsive, highly engaging applications that combine the power of local
>> resources and data with the reach of the web. Download the Adobe AIR SDK and
>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>>
>>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>