[mythtv-users] Getting lirc working
Jon
jon at sd-6.org
Sat Mar 17 04:21:08 UTC 2007
Angus wrote:
> Jon wrote:
>> Angus wrote:
>>
>>> Jon wrote:
>>>
>>>> Angus wrote:
>>>>
>>>>
>>>>> Jon wrote:
>>>>>
>>>>>
>>>>>> It sounds like your remote does not repeat keypresses. Does it have a
>>>>>> LED? If so, does it continue flashing as you hold the button down? If
>>>>>> not you can use a digital camera pointed at the ir transmitter to confirm.
>>>>>>
>>>>>>
>>>>>>
>>>>> Digital camera, eh?
>>>>>
>>>>>
>>>> Digital cameras are sensitive to IR light.
>>>>
>>>>
>>>>> Well, as an addendum, after pushing several keys for a while out of
>>>>> frustration, it finally registered a "gap". So I went through the
>>>>> process of testing every key, and you can imagine my frustration when I
>>>>> finished and found every key was coded as 0x0. Here's the less
>>>>> vacuous-looking part of the config file:
>>>>> bits 0
>>>>> eps 30
>>>>> aeps 100
>>>>>
>>>>> one 0 0
>>>>> zero 0 0
>>>>> pre_data_bits 32
>>>>> pre_data 0x800100A7
>>>>> gap 339993
>>>>> toggle_bit 0
>>>>>
>>>>> Now what do I try?
>>>>>
>>>>>
>>>> Have you read http://www.linuxtv.org/v4lwiki/index.php/Remote_controllers
>>>>
>>>>
>>> Yes, I have.
>>>
>>>
>>>> Specifically,
>>>> saa7134: Most cards need only the saa7134 driver, but a few need the
>>>> ir-kbd-i2c helper. Boards known to require ir-kbd-i2c include the Upmost
>>>> Purple TV and the latest "i-series" Pinnacle PCTV boards (110i, 50i)
>>>>
>>>>
>>> And I've been asking what that means over at v4l, but I haven't
>>> gotten any response.
>>>
>> It means you may need to modprobe ir-kdc-i2c before it will work. You
>>
>
> Ah, yes. But that module loads automatically with saa7134.
> http://www.mythtv.org/wiki/index.php/KWorld_Global_TV_Terminator#Remote
> also says that I might need a patch for that, which is apparently got
> something to do with v4l, but I can't been able to get anyone there to
> help me with that yet.
>
>> might see if you can use the linux input interface instead of lirc.
>> Open xev and press a few buttons on the remote to see if they register.
>>
>
> I did, and the results were not remarkable. Anything I pressed
> returned this:
> KeyPress event, serial 28, synthetic NO, window 0x1e00001,
> root 0x45, subw 0x0, time 959597, (-218,-78), root:(400,300),
> state 0x0, keycode 177 (keysym 0x0, NoSymbol), same_screen YES,
> XLookupString gives 0 bytes:
> XmbLookupString gives 0 bytes:
> XFilterEvent returns: False
>
> KeyRelease event, serial 31, synthetic NO, window 0x1e00001,
> root 0x45, subw 0x0, time 959645, (-218,-78), root:(400,300),
> state 0x0, keycode 177 (keysym 0x0, NoSymbol), same_screen YES,
> XLookupString gives 0 bytes:
> XFilterEvent returns: False
>
> Except for the "time" field, this is exactly what was returned with
> every key I pressed. I get the feeling that means it isn't working here
> either.
>
I suspect your remote is not supported by the driver yet. If you are
feeling adventurous, see the section titled "How to add remote control
support to a card" at the url above. I once added support for a cx88
based card before, it's not very difficult.
>>
>>>> Otherwise, you might try the linuxtv mailing list.
>>>>
>>>>
>>> I might as well try there now.
>>>
>>>
>>>>>> Angus wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I'm trying to use the remote through lirc, but help and documentation is
>>>>>>> scarce. I have a KWorld Global Terminator TV card (saa7134-based) with a
>>>>>>> built-in IR. The cat /proc/bus/input/devices for which gives:
>>>>>>> I: Bus=0001 Vendor=1131 Product=0000 Version=0001
>>>>>>> N: Name="saa7134 IR (V-Stream Studio TV "
>>>>>>> P: Phys=pci-0000:01:07.0/ir0
>>>>>>> S: Sysfs=/class/input/input2
>>>>>>> H: Handlers=kbd event2
>>>>>>> B: EV=100003
>>>>>>> B: KEY=2c0814 100004 0 0 0 4 2008000 2090 2001 1e0000 4400 0 ffc
>>>>>>> FWIW. I've been trying irrecord -H dev/input -d /dev/input/event2
>>>>>>> lirc.conf but when I follow the instructions to hold down a key, I see a
>>>>>>> period, then eventually: irrecord: gap not found, can't continue. I've
>>>>>>> also tried pushing several buttons. As long as I keep doing that I get
>>>>>>> more periods, but if I stop, it quits and complains about an absent gap.
>>>>>>> What do I do?
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> mythtv-users mailing list
>>>>>>> mythtv-users at mythtv.org
>>>>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> mythtv-users mailing list
>>>>>> mythtv-users at mythtv.org
>>>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> mythtv-users mailing list
>>>>> mythtv-users at mythtv.org
>>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>>
>>>>>
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users at mythtv.org
>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list