LinHES Forums http://forums.linhes.org/ |
|
lirc_serial with grey hauppauge remote? http://forums.linhes.org/viewtopic.php?f=6&t=2410 |
Page 1 of 1 |
Author: | beamland [ Tue Sep 14, 2004 9:52 am ] |
Post subject: | lirc_serial with grey hauppauge remote? |
Hello everyone Tried to find a solution in the mythtv and lirc archives as well as in the forums but nothing really helped me. Maybe I just didn't find it? I have a backend with 2 capture cards (1 PVR350, 1 PVR250). Both came with the grey remote. Now I setup a frontend only box without any capture card. Everything works fine, even PIP (using ivtv-0.1.10-pre2-ck100z), except that I can't get the grey hauppauge remote to work with a homebrew ir receiver using the lirc_serial driver. I managed to load the lirc driver correctly (recompiled lirc-0.7.0pre4 in /usr/src/lirc-0.7.0pre4) and when doing some tests with mode2 I can see some signals being captured on the console. But when trying to use irw or irrecord it doesn't recognize anything and after 10 seconds irrecord exists. Thus I'm unable to use any of my 2 grey hauppauge remotes with lirc_serial. lsmod gives me: Code: Module Size Used by Tainted: P input 3200 0 (autoclean) lirc_i2c 4448 0 (autoclean) (unused) saa7127 8132 0 (autoclean) (unused) nvidia 4586252 6 (autoclean) tveeprom 6016 0 (autoclean) (unused) apm 9544 1 (autoclean) ivtv 773888 2 (autoclean) msp3400 20224 2 (autoclean) saa7115 7776 0 (autoclean) (unused) tuner 12712 2 (autoclean) i2c-algo-bit 7048 2 (autoclean) [ivtv] i2c-core 12452 0 (autoclean) [lirc_i2c saa7127 tveeprom msp3400 saa7115 tuner i2c-algo-bit] videodev 6016 14 (autoclean) [ivtv] nfsd 66576 8 (autoclean) lockd 46512 1 (autoclean) [nfsd] sunrpc 68480 1 (autoclean) [nfsd lockd] lirc_serial 7296 1 lirc_dev 8592 2 [lirc_i2c lirc_serial] serial 44708 0 (autoclean) autofs4 9332 0 (unused) af_packet 14632 0 (unused) snd-mixer-oss 12248 0 snd-intel8x0 18924 0 snd-ac97-codec 49328 0 [snd-intel8x0] gameport 1356 0 [snd-intel8x0] snd-pcm 56132 0 [snd-intel8x0] snd-timer 14660 0 [snd-pcm] snd-mpu401-uart 3328 0 [snd-intel8x0] snd-rawmidi 13504 0 [snd-mpu401-uart] snd-seq-device 3792 0 [snd-rawmidi] snd 31940 0 [snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device] snd-page-alloc 4812 0 [snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-rawmidi snd-seq-device snd] soundcore 3524 1 [snd] agpgart 42852 3 forcedeth 9292 1 usb-ohci 19048 0 (unused) usbcore 59980 0 [usb-ohci] rtc 7432 0 ext3 65604 2 jbd 47952 2 [ext3] cat /var/log/lircd gives (more lines inside from previous days but really none with any error or warnings): Code: Sep 12 10:51:59 mythtvmbe lircd 0.7.0pre4: lircd(serial) ready
Sep 12 10:52:11 mythtvmbe lircd 0.7.0pre4: accepted new client on /dev/lircd I know irrecord (and my homebrew ir serial receiver) works correctly, because when taking one of my non-hauppauge remotes it recognizes its ir signals without a problem. Anyone came across this issue already and willing to share its solution? Or is the grey hauppauge remote simply not built for lirc_serial? Thanks a lot! |
Author: | Xsecrets [ Tue Sep 14, 2004 9:59 am ] |
Post subject: | |
hauppage remotes use a special signal type R35 or something like that. It is in the mythtv docs, and has been discussed on this board before too, now the only way I've heard it discussed is trying to use a different remote with the hauppage receiver, but I would imagine any receiver would have to accept that type of input to work with the remote since the opposite is true, however I know VERY little about ir. |
Author: | beamland [ Tue Sep 14, 2004 12:20 pm ] |
Post subject: | |
uups... I'm sorry, wanted to say that not irw works but mode2! Messed things up. Corrected that in my own post above. So my question is now: what do I have to do to get irw and then irrecord to recognize my hauppauge remote commands? Tests with other non-hauppauge remotes work... but I'd like to use one of my hauppauge remotes. |
Author: | cesman [ Tue Sep 14, 2004 1:54 pm ] |
Post subject: | |
What X is trying to say is that due to the protocol the remote uses, you may not be anble to use with a serial receiver. He's probably right, usually is... |
Author: | gr8nash [ Tue Sep 14, 2004 1:55 pm ] |
Post subject: | |
The haupauge remote works great with the homebrew IR reciever.. i would go through my STEP-by-step procedure, and either re-do it, or see what step you missed. i have used that copy and paste walkthrough 2 times on knopmyth systems before i posted it. it works. Its in the howto section. |
Author: | Xsecrets [ Tue Sep 14, 2004 2:20 pm ] |
Post subject: | |
I wouldn't give up based on what I said though. like I said I know absolutely nothing about ir, just a speculation that problems one direction might present themselves in the other, however it could all be a driver thing. |
Author: | beamland [ Wed Sep 15, 2004 1:37 am ] |
Post subject: | |
Thanks all, I really appreciate you're telling me that it should work. Now, gr8nash, I suppose you mean the LIRCHowTo on the wiki pages (http://knoppmythwiki.homelinux.org/inde ... =LIRCHowTo)? Ok, I re-tried it once again... Was already done: - installed kernel sources - make oldconfig - make dep - unpacked lirc-0.7.0pre4.tar.bz2 in /usr/src - cd /usr/src/lirc-0.7.0pre4 Then did this (as root): - cat /proc/tty/driver/serial to find out port and irq of ttyS0 - ./setup.sh - have choosen home-brew and set io = 03f8 / irq = 4 in driver config - have selected "Compile tools for X-Windows" in Software config - saved config & run configure, then did "make" and "make install" - have commented out "serial" in /etc/modules - have changed /etc/modutils/lirc to reflect lirc_serial instead of lirc_i2c - ran update-modules and depmod -a - edited /etc/init.d/bootmisc.sh and added these lines at the end: Code: <snip> setserial /dev/ttyS0 uart none modprobe lirc_serial #/usr/local/sbin/lircd --> commented out because lircd was already started (as a simple "ps ax | grep lirc" showed me) /usr/local/sbin/lircmd </snip> - rebooted As said before, when testing with mode2, lirc seems to recognize my hauppauge remote signals but still not irw and not irrecord. So I tried it a second time. The one and only difference: besides having selected "Compile tools for X-Windows" in software config I also selected "Enable dynamic codes" there! And guess what? It works now! Maybe you want to put this one into the LIRCHowTo? However, the default lirc.conf file installed by knoppmyth did not work... I had to irrecord a new lirc.conf. Well, anyway, here's my lirc.conf for grey hauppauge remote working with lirc_serial: Code: begin remote
name myremote.conf bits 13 flags RC5|CONST_LENGTH eps 30 aeps 100 one 925 849 zero 925 849 plead 970 gap 114301 toggle_bit 2 begin codes OFF 0x00000000000017FD GO 0x00000000000017FB 1 0x00000000000017C1 2 0x00000000000017C2 3 0x00000000000017C3 4 0x00000000000017C4 5 0x00000000000017C5 6 0x00000000000017C6 7 0x00000000000017C7 8 0x00000000000017C8 9 0x00000000000017C9 0 0x00000000000017C0 BACK/EXIT 0x00000000000017DF MENU 0x00000000000017CD CH+ 0x00000000000017E0 OK 0x00000000000017E5 CH- 0x00000000000017E1 VOL- 0x00000000000017D1 VOL+ 0x00000000000017D0 RED 0x00000000000017CB GREEN 0x00000000000017EE YELLOW 0x00000000000017F8 BLUE 0x00000000000017E9 MUTE 0x00000000000017CF BLANK 0x00000000000017CC FULL 0x00000000000017FC REW 0x00000000000017F2 PLAY 0x00000000000017F5 FFW 0x00000000000017F4 RECORD 0x00000000000017F7 STOP 0x00000000000017F6 PAUSE 0x00000000000017F0 REPLAY 0x00000000000017E4 SKIP 0x00000000000017DE end codes end remote Hope this helps someone else coming across the same questions/issues... Thanks |
Author: | gr8nash [ Wed Sep 15, 2004 10:43 am ] |
Post subject: | |
Quote: Thanks all, I really appreciate you're telling me that it should work. you tell me, what im suppose to say, when i have done 4 times now what you did, NEVER had a problem.. using the SAME hardware. Should we NOT respond to your post.. As an IT man for many years, When im stuck it is VERY helpful for someone to tell me.. "It does work, ive done it", even if thats all they can tell me. Then at least you know.. 1) if he did it so can I. 2) Im not trying to do somthing that cant be done (ie using a remote that WONT work with the receiver). So despite your ungrateful attidute all of us were helping. ![]() Quote: Thanks all, I really appreciate you're telling me that it should work. Now, gr8nash, I suppose you mean the LIRCHowTo on the wiki pages (http://knoppmythwiki.homelinux.org/inde ... =LIRCHowTo)? some helpful person put then walkthrough i did, on the wiki.. its also in our howto section. Quote: So I tried it a second time. The one and only difference: besides having selected "Compile tools for X-Windows" in software config I also selected "Enable dynamic codes" there!
And guess what? It works now! Maybe you want to put this one into the LIRCHowTo? Well i would, however i never had to do that, and im not sure what it does.. But i am very glad it worked for you. ![]() |
Author: | beamland [ Wed Sep 15, 2004 12:20 pm ] |
Post subject: | |
![]() ![]() ![]() gr8nash wrote: you tell me, what im suppose to say, when i have done 4 times now what you did, NEVER had a problem.. using the SAME hardware. Should we NOT respond to your post.. As an IT man for many years, When im stuck it is VERY helpful for someone to tell me.. "It does work, ive done it", even if thats all they can tell me. Then at least you know.. 1) if he did it so can I. 2) Im not trying to do somthing that cant be done (ie using a remote that WONT work with the receiver). So despite your ungrateful attidute all of us were helping. ![]() It seems that my english knowledge wasn't good and clear enough to explain in my words what I wanted to say: "thanks for your help!". So please apologize if it looked like I was ungrateful... I really didn't want to criticize your (and others) help in any way! I read again my own post and I still don't see the "ungrateful parts" of it. What's wrong with it when saying "... I really appreciate you're telling me that it should work."? Maybe I'm just blind? Maybe I just don't understand what my wording means to others? gr8nash wrote: Well i would, however i never had to do that, and im not sure what it does.. But i am very glad it worked for you.
Well, I'll give it one more try to re-compile and install lirc-0.7.0pre4 without the "Enable dynamic codes"... just to see if it still works. if yes, then I'll be a person who solved a problem without knowing what was wrong before. |
Author: | beamland [ Thu Sep 23, 2004 9:53 am ] |
Post subject: | |
beamland wrote: Well, I'll give it one more try to re-compile and install lirc-0.7.0pre4 without the "Enable dynamic codes"... just to see if it still works. if yes, then I'll be a person who solved a problem without knowing what was wrong before.
A bit late but anyway... just wanted to know it and thought others might be interested in the results: In short: I got lirc to work even without having to enable this "Enalbe dynamic codes" option during ./setup.sh of lirc. What I did to check it (hope this was the right way)? Code: cd /usr/src/lirc-0.7.0pre4
make clean ./setup.sh make make install shutdown -r now Apologies to everyone for this thread... ![]() So just forget this thread, go over to the wiki lirc howto (http://knoppmythwiki.homelinux.org/index.php?page=LIRCHowTo) and you should be done. BTW: I really love MythTV and especially KnoppMyth. Two projects with great people and a great community are doing an excellent work here ![]() |
Author: | gr8nash [ Thu Sep 23, 2004 10:16 am ] |
Post subject: | |
the thing about posting in a forum, is that while you know what you meant by "thanks for saying it should work" we cant tell if that sarcastic or meaningful. So you have to be careful how you word stuff. And we need to extend the benefit of the doubt to people posting. No harm done, glad its working now. ![]() |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |