Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756305AbXFLNcE (ORCPT ); Tue, 12 Jun 2007 09:32:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756059AbXFLNbw (ORCPT ); Tue, 12 Jun 2007 09:31:52 -0400 Received: from ug-out-1314.google.com ([66.249.92.172]:55867 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756212AbXFLNbv (ORCPT ); Tue, 12 Jun 2007 09:31:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K8hqK+kdLz9T7X0eQcKH7DXLHoioAXJgrfPPfg5yQyyOQ0VewVG/MC2J6wgs9juanUKI1tJeXcW5OrTjmyprESuFWnZGNl38rJKab4/rwkz6ZSKVPZ9eBRL/CJDtaVVuiEM1in7jiL2oe8bTaajcQSboqDh5/E7pa6qexVKx1RQ= Message-ID: Date: Tue, 12 Jun 2007 14:31:49 +0100 From: "Renato Golin" To: "Dmitry Torokhov" Subject: Re: joydev.c and saitek cyborg evo force Cc: "Jiri Kosina" , linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 38 On 12/06/07, Dmitry Torokhov wrote: > We need to find out why you see [-127, 127] range, because if joydev > would see [0, 4096] range it would perform automatic correction and > map values like this: > > c0: 2048, c1: 2048, c2: 262144, c3: 262144 Hi Dmitry, That's the values I got *after* calibration. Before, because the correction is set to a small signed value, it corrects wrongly and report a random mix of signed and unsigned values when moving in one direction... > Which is fine as far as I can see. What utility did you use that > reported [-127; 127] range? At joydev_connect, the last parameter "input_dev" reports me that range (dev->absmax[i] and dev->absmin[i]). When I turned on HID_DEBUG it reported [0, 4096] for both axis 0 and 1, which is correct so it must be between HID and joydev. My point is that the auto-calibration could automagically solve all range problems in all devices by zeroing the range and adapting the ranges afterwards. If it can affect other devices as well as joysticks, the calibration could happen in HID instead of joydev. cheers, --renato Reclaim your digital rights, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/