From: Yaron <li...@fr...> - 2009-05-31 05:18:24
|
Hi there! I'm one of the many people turning an old Mac Mini into a media center PC. So far everything works. Even lirc with the little Apple remote. The one problem, though, is that the Apple remote only has 6 buttons. That's not enough buttons! I was using a universal remote in Hauppauge mode with my old media center PC, and I was wondering if I could somehow get lirc to see the Hauppauge codes though the Mac Mini IR reciever. When I run mode2, it doesn't see any remote control codes from, well, any remote except the Apple one. I tried to make a Frankenstein lircd.conf, combining the configs for the Man Mini reciever and the Hauppauge codes, but that didn't work either (I know, shocking). Can this be done in any way? I can universal-remote any remote, it doesn't have to be a Hauppauge one, but I definitely need more than 6 buttons (: TIA! -Yaron -- |
From: <li...@ba...> - 2009-05-31 09:46:41
|
Hi! Yaron "li...@fr..." wrote: > I'm one of the many people turning an old Mac Mini into a media center PC. > So far everything works. Even lirc with the little Apple remote. > > The one problem, though, is that the Apple remote only has 6 buttons. > That's not enough buttons! [...] > Can this be done in any way? I can universal-remote any remote, it doesn't > have to be a Hauppauge one, but I definitely need more than 6 buttons (: There's a trick. But you need a universal remote that can learn new codes. The Apple remote has only 6 buttons, but it can be programmed to send up to 256 different code sets. Check your manual or google to find out how. Currently the lircd config file will accept all code sets using the ignore_mask setting. What you have to do is to: 1. program 6 buttons of your universal remote to the 6 Apple remote buttons 2. change the code set of the Apple remote 3. program the next 6 buttons of your univeral remote to the new codes, etc. until you have programmed all buttons of your univeral remote 4. then create a lircd.conf with irrecord for the univeral remote. Christoph |
From: Yaron <li...@fr...> - 2009-06-01 05:39:26
|
Hey there, On Sun, 31 May 2009, Christoph Bartelmus wrote: > There's a trick. But you need a universal remote that can learn new codes. > The Apple remote has only 6 buttons, but it can be programmed to send up > to 256 different code sets. Ok, I've spent several hours googling, and all I find is that the remote can change IDs, not actual codes... I don't know if I'm missing something or not. I did change the ID but lirc still sees the exact same codes being generated (and I did check on a Mac to make sure the remote ID did indeed change). Am I missing something with that? As in, do you know of cases where people have managed to do this? (: -Yaron -- |
From: <li...@ba...> - 2009-06-01 09:36:21
|
Hi! Yaron "li...@fr..." wrote: >> There's a trick. But you need a universal remote that can learn new codes. >> The Apple remote has only 6 buttons, but it can be programmed to send up >> to 256 different code sets. > Ok, I've spent several hours googling, and all I find is that the remote > can change IDs, not actual codes... Code and ID means the same here. > I don't know if I'm missing something > or not. I did change the ID but lirc still sees the exact same codes being > generated (and I did check on a Mac to make sure the remote ID did indeed > change). If you create a new config file, usually you will only see the change in the pre_data. > Am I missing something with that? As in, do you know of cases where people > have managed to do this? (: This solution actually was posted here before. Christoph |
From: Yaron <li...@fr...> - 2009-06-01 14:58:38
|
Hey there! On Mon, 1 Jun 2009, Christoph Bartelmus wrote: > If you create a new config file, usually you will only see the change in > the pre_data. So i have to use irrecord to create the config file, or rather files, and then combine theminto one file? If so, my problem now becomes that irrecord segfaults ): -Yaron -- |
From: <li...@ba...> - 2009-06-01 16:41:15
|
Hi! Yaron "li...@fr..." wrote: >> If you create a new config file, usually you will only see the change in >> the pre_data. > So i have to use irrecord to create the config file, or rather files, and > then combine theminto one file? No, you need to follow the procedure that I described already. > If so, my problem now becomes that irrecord segfaults ): Which version and when doing what? Christoph |
From: Yaron <li...@fr...> - 2009-06-01 16:54:59
|
Hey there, On Mon, 1 Jun 2009, Christoph Bartelmus wrote: > No, you need to follow the procedure that I described already. Oh yeah. (: >> If so, my problem now becomes that irrecord segfaults ): > Which version and when doing what? lirc 0.8.4a. irrecord actually says it isn't seeing any data. I might be giving it the wrong device name... for some reason I'm assuming it's /dev/lircd... there's no device listed in /etc/lirc/hardware.conf. I tried all the /dev/input/event?? but none of them come back as lirc devices. -Yaron -- |
From: <li...@ba...> - 2009-06-01 17:24:28
|
Hi! Yaron "li...@fr..." wrote: [...] >> No, you need to follow the procedure that I described already. > Oh yeah. (: Means what? >>> If so, my problem now becomes that irrecord segfaults ): >> Which version and when doing what? > lirc 0.8.4a. > > irrecord actually says it isn't seeing any data. So does it segfault or does it exit with an error message? Quote that error message. > I might be giving it the > wrong device name... for some reason I'm assuming it's /dev/lircd... > there's no device listed in /etc/lirc/hardware.conf. I tried all the > /dev/input/event?? but none of them come back as lirc devices. Usually the macmini receiver registers as /dev/usb/hiddev0 which is used by default if you don't provide any device to irrecord. Christoph |
From: Yaron <li...@fr...> - 2009-06-01 17:37:55
|
Hey there, On Mon, 1 Jun 2009, Christoph Bartelmus wrote: >>> No, you need to follow the procedure that I described already. >> Oh yeah. (: > Means what? Means I re-read your original email and remembered what you said (: > So does it segfault or does it exit with an error message? > Quote that error message. When I run it with no arguments (except output filename) it goes: irrecord: could not get file information for /dev/lirc ...which makes sense, since there isn't one. When I tell it to use /dev/usb/hiddev0, it says: irrecord: could not get hardware features irrecord: this device driver does not support the new LIRC interface irrecord: major number of /dev/usb/hiddev0 is 180 irrecord: LIRC major number is 61 irrecord: check if /dev/usb/hiddev0 is a LIRC device irrecord: could not init hardware (lircd running ? --> close it, check permissions) When I run it with /dev/lircd, it DOES try - it gives all the instructions/warnings/Press ENTER to continue, then it just sits there and eventually goes: irrecord: no data for 10 secs, aborting irrecord: gap not found, can't continue I will note though that irw DOES show results, and the remote DOES work in mythtv! More interesting is when I run mode2 - the only device it'll run with is /dev/lircd, and then when I press a button it goes: space 3158064 space 3158064 pulse 6633272 space 3158328 space 3158048 pulse 4279376 space 7356704 pulse 6251884 space 3486001 mode2: error reading from /dev/lircd mode2: Success readdata() failed So it sees data and then dies?.... -Yaron -- |
From: <li...@ba...> - 2009-06-01 17:46:41
|
Hi! Yaron "li...@fr..." wrote: [...] >> So does it segfault or does it exit with an error message? >> Quote that error message. > When I run it with no arguments (except output filename) it goes: You have to tell irrecord which driver to use: --driver=macmini Christoph |
From: Yaron <li...@fr...> - 2009-06-01 20:32:54
|
Hey there, On Mon, 1 Jun 2009, Christoph Bartelmus wrote: > You have to tell irrecord which driver to use: --driver=macmini Hah! That's working. Ok, I'll go mess with that for a while. Thanks! -Yaron -- |
From: Yaron <li...@fr...> - 2009-06-01 20:40:00
|
Hey there, On Sun, 31 May 2009, Christoph Bartelmus wrote: > There's a trick. But you need a universal remote that can learn new codes. Holy hell that worked. THANKS!!! -Yaron -- |
From: Yaron <li...@fr...> - 2009-06-01 05:37:06
|
On Sun, 31 May 2009, Torgeir Veimo wrote: > Are you using the linux input system to get the remote codes? In that > case, then the remote codes are hard coded in the kernel module, so > it's not possible without patching the kernel module source and > recompiling. Honestly I'm just using the lirc that came with mythbuntu. I've built lirc from source before, but I don't know how to mix-and-match codes. irw/mode2 don't actually see anything being received when I use a non-apple remote. Don't know if that matters... -Yaron -- |