From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from psa.adit.fi ([217.112.250.17]:51658 "EHLO psa.adit.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295Ab0BBPwG (ORCPT ); Tue, 2 Feb 2010 10:52:06 -0500 Message-ID: <4B684AA5.8040107@adit.fi> Date: Tue, 02 Feb 2010 17:54:13 +0200 From: Pekka Sarnila MIME-Version: 1.0 To: Antti Palosaari CC: Jiri Slaby , Jiri Kosina , Pekka Sarnila , linux-media@vger.kernel.org, pb@linuxtv.org, js@linuxtv.org Subject: Re: dvb-usb-remote woes [was: HID: ignore afatech 9016] References: <1263415146-26321-1-git-send-email-jslaby@suse.cz> <4B5EFD69.4080802@adit.fi> <4B671C31.3040902@qvantel.com> <4B672EB8.3010609@suse.cz> <4B674637.8020403@iki.fi> In-Reply-To: <4B674637.8020403@iki.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Ok, that was it, I had the old firmware. Now it works with the patch. I can now see that the afateck driver does not use the HID interface/endpoint (1/83) at all, but vendor specific bulk endpoint (0/81). The fact that manufacturers have started to more more use the usb vendor class instead of the HID class is probably partly a consequence of HID specification being poorly designed. Oh, well. More work for driver writers. Anyway, I'm still of the opinion that the ir-to-code translate should be per remote controller not per tv-stick (ideally loaded by kernel from the userspace table, and easily modifiable by userspace program). All in all the remote controller stack is IMHO a real mess: different level translates (in kernel and in user space), different user program interfaces (keyboard with or without the special keys (many programs recognize only the standard keyboard keys), lircd direct, lircd/dcop). Really easiest is to modify kernel to get what you want. For average user the task of getting remote to do what they want is close to mission impossible. Hope someone would do something about this. Pekka Antti Palosaari wrote: > On 02/01/2010 09:42 PM, Jiri Slaby wrote: > >> On 02/01/2010 07:28 PM, Jiri Kosina wrote: >> >>> On Mon, 1 Feb 2010, Pekka Sarnila wrote: >>> >>>> I pulled few days ago latest >>>> >>>> >>>> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git >>>> >>>> and compiled it. Everything works fine including the tv-stick and the >>>> remote. However I get: >>>> >>>> <3>af9015: command failed:255 >>>> <3>dvb-usb: error while querying for an remote control event. >> >> >> Yes, I saw this quite recently too. For me it appears when it is booted >> up with the stick in. It's still to be fixed. > > > I suspect you are using old firmware, 4.65.0.0 probably, that does not > support remote polling and thus this 255 errors seen. > > regards > Antti