[linux-dvb] IR for Afatech 901x
pjama at optusnet.com.au
Tue May 20 03:05:07 CEST 2008
> yes, I fixed one bug that has killed remote. Now it works again.
>> I got, compiled and installed the latest (although there's a NEW one
>> 4 minutes old) code 737994f33e83 to see if there's any action for my IR
>> remote bundled with my DigitalNow TinyTwin USB stick. I'm running
>> mythbuntu 8.04
OK just for fun I've now got, compiled and installed 884d9a07c4e1.
> Probably there is wrong ir-table loaded to the device by the driver.
> Ir-table in device and ir-codes from remote should match. Otherwise it
> will not work.
How do I confirm this? Should there be something in dmesg?
>> I'm not even sure if I'm on the right track here but entries like the
>> following in dmesg got me excited!
>> input: IR-receiver inside an USB DVB receiver as
>> dvb-usb: schedule remote query interval to 150 msecs.
>> dvb-usb: DigitalNow TinyTwin DVB-T Receiver successfully initialized and
> Yes, thats correct. AF9015 implements also HID-remote but I have never
> got it working. I think it could be due to hw bug. Luckily there is
> other way to read remote - polling from the driver.
So based on the following dmesg extract I should use input7 which equates
to /dev/input/event7 ?
[ 33.019604] input: Afatech DVB-T 2 as
[ 33.032972] input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T 2] on
[ 33.038411] input: HID 0430:0100 as
[ 33.048961] input,hidraw1: USB HID v1.00 Mouse [HID 0430:0100] on
[ 33.054403] input: HID 0430:0005 as
[ 33.068909] input,hidraw2: USB HID v1.00 Keyboard [HID 0430:0005] on
[ 33.068930] usbcore: registered new interface driver usbhid
[ 33.068936] /build/buildd/linux-2.6.24/drivers/hid/usbhid/hid-core.c:
v2.6:USB HID core driver
[ 47.868646] mxl500x_attach: MXL500x tuner succesfully attached
[ 47.868732] input: IR-receiver inside an USB DVB receiver as
[ 47.889081] dvb-usb: schedule remote query interval to 150 msecs.
[ 47.889090] dvb-usb: DigitalNow TinyTwin DVB-T Receiver successfully
initialized and connected.
[ 47.889094] af9015_init:
[ 47.889097] af9015_init_endpoint: USB speed:3
[ 47.944449] af9015_download_ir_table:
[ 48.215278] usbcore: registered new interface driver dvb_usb_af9015
>> I'm not having ANY luck extracting any life out of IR though:
>> # sudo irrecord -d
>> irrecord - application for recording IR-codes for usage with lirc
>> Copyright (C) 1998,1999 Christoph Bartelmus(lirc at bartelmus.de)
>> irrecord: could not get file information for
>> irrecord: default_init(): No such file or directory
>> irrecord: could not init hardware (lircd running ? --> close it, check
>> Same story with /dev/input/event7, I've turned lirc off and irw just
>> refuses to connect.
>> Is there anything I should try or anything I can test?
> I just tested using...
> [root at localhost ~]# hexdump -v -e '"\t" "0x" 1/1 "%02x " "\n"' <
What's this do in the grand scheme of things? I get no output what so ever
and it returns straight to the prompt.
> [root at localhost ~]# av7110_evtest /dev/input/by-path/pci-1-5--event-ir
> Input driver version is 1.0.0
> Input device ID: bus 0x3 vendor 0x15a4 product 0x9016 version 0x200
> Input device name: "IR-receiver inside an USB DVB receiver"
> Supported events:
> Event type 0 (Reset)
> Event code 0 (Reset)
> Event code 1 (Key)
> Event type 1 (Key)
> Event code 2 (1)
> Event code 3 (2)
> Event code 4 (3)
> Event code 5 (4)
> Event code 6 (5)
> Event code 7 (6)
> Event code 8 (7)
> Event code 9 (8)
> Event code 10 (9)
> Event code 11 (0)
> Event code 113 (Mute)
> Event code 114 (VolumeDown)
> Event code 115 (VolumeUp)
> Event code 116 (Power)
> Event code 354 (Goto)
> Event code 372 (Zoom)
> Event code 402 (ChannelUp)
> Event code 403 (ChannelDown)
> Testing ... (interrupt to exit)
This looks promising....
$ evtest /dev/input/event7
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x13d3 product 0x3226 version 0x200
Input device name: "IR-receiver inside an USB DVB receiver"
Event type 0 (Reset)
Event code 0 (Reset)
Event code 1 (Key)
Event type 1 (Key)
Event code 2 (1)
Event code 3 (2)
Event code 4 (3)
Event code 5 (4)
Event code 6 (5)
Event code 7 (6)
Event code 8 (7)
Event code 9 (8)
Event code 10 (9)
Event code 11 (0)
Event code 113 (Mute)
Event code 114 (VolumeDown)
Event code 115 (VolumeUp)
Event code 116 (Power)
Event code 354 (Goto)
Event code 372 (Zoom)
Event code 402 (ChannelUp)
Event code 403 (ChannelDown)
Testing ... (interrupt to exit)
> Remember that the HID one does not work at all.
evtest gives me a somewhat extended output from event1.
I'm not actually "at" my PC right now os I can't see what button presses
on the remote do ATM.
So based on the above which device do I use for lirc? /dev/input/event7
(or more stable link to same)?
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the linux-dvb