Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760939AbXH3AbS (ORCPT ); Wed, 29 Aug 2007 20:31:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754986AbXH3AbJ (ORCPT ); Wed, 29 Aug 2007 20:31:09 -0400 Received: from nz-out-0506.google.com ([64.233.162.229]:35659 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754539AbXH3AbH (ORCPT ); Wed, 29 Aug 2007 20:31:07 -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:references; b=nHJYhuf1z5Px1bvgdvW1C7ugmlmNF2I1dOnFORaAJOE35ma9pjeuTmo4p+83RCWMh9Sf173u8rkFbuwRcZJiSmHQmj+qE6zb/VAFCZ920EY+K0cm5FormVdfuVdpN7yH4OlhEMijNEqUcYqRC08sMgwSOvC9CDHu0MZyxC3I7xI= Message-ID: <41840b750708291731w3fb5e673k3c1283e4a2fa82f0@mail.gmail.com> Date: Wed, 29 Aug 2007 20:31:04 -0400 From: "Shem Multinymous" To: "Henrique de Moraes Holschuh" Subject: Re: [Hdaps-devel] [PATCH 2.6.23-rc2] hwmon: HP Mobile Data Protection System 3D ACPI driver (resend) Cc: "Yan Burman" , hdaps-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, "Pavel Machek" In-Reply-To: <20070829233024.GA7433@khazad-dum.debian.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5807_8854363.1188433864989" References: <1186831562.6452.10.camel@localhost> <20070825102512.GA5850@ucw.cz> <46D01420.3070400@gmail.com> <20070827171107.GA15647@khazad-dum.debian.net> <46D5A742.8090201@gmail.com> <20070829233024.GA7433@khazad-dum.debian.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 13801 Lines: 198 ------=_Part_5807_8854363.1188433864989 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/29/07, Henrique de Moraes Holschuh wrote: > On Wed, 29 Aug 2007, Yan Burman wrote: > HDAPS with input device support is quite new. hdapsd was patched to talk to > it, too. I suppose we should port the input device support to the driver > in-tree just so that we get it in tree as well. Sounds like an useful > reason to bother with in-tree hdaps. Not that it will save much power with > the in-tree driver, but at least it will be widely available from there. In case they'll be of help for such porting, the relevant hdaps patches from my tp_smapi patch series are attached. > > I agree that the sys interface is probably not the best choice, but the > > accelerometer data should provide not only position, but also generate > > an event when it detects > > that it's falling. From what I understood hdaps does not have that info, > > You can generate events on input devices, but I am not sure that's the best > way to go about it for this. Things that block on read until an interrupt > happens might work better. You can do the latter via another (4th) input device. > I'd suggest an accelerometer sysfs interface, that we implement in hdaps > (in and out-of-tree), ams and hpmdp. One input device for joystick > emulation (optional), one input device with accelerometer data in mg or ug, Is any of the accelerometer drivers currently capable of computing the physical acceleration? Also, is there an issue of linear vs. angular acceleration? > and an optional one with the raw accelerometer data. Before or after axis inversion/swapping? The tp_smapi hdaps driver (losslessly) inverts the raw data too, to avoid duplication of model-specific orientation logic. > unless someone wants to implement their own free-fall algorithms instead of > using whatever is in the firmware). The term "free-fall" is dangerously misleading, for the reasons explained in the IBM APS whitepaper. Shem ------=_Part_5807_8854363.1188433864989 Content-Type: text/x-patch; name="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch"; filename="0001-hdaps-Add-ID-fields-to-the-hdaps-joystick-emulation.patch" X-Attachment-Id: f_f5yia558 aGRhcHM6IEFkZCBJRCBmaWVsZHMgdG8gdGhlIGhkYXBzIGpveXN0aWNrLWVtdWxhdGlvbiBpbnB1 dCBkZXZpY2UKCk1pbm9yIEFCSSBicmVhazogdGhlIGlucHV0IGRldiBuYW1lIGNoYW5nZXMgZnJv bSAiaGRhcHMiIHRvIGEgbW9yZQptZWFuaW5nZnVsICJUaGlua1BhZCBIREFQUyBqb3lzdGljayBl bXVsYXRpb24iLCBmb2xsb3dpbmcKRG9jdW1lbnRhdGlvbi9pbnB1dC9pbnB1dC1wcm9ncmFtbWlu Zy50eHQuIFRoZQpidXMvdmVuZG9yL3Byb2R1Y3QvdmVyc2lvbiBoYXZlIGJlZW4gY29vcmRpbmF0 ZWQgd2l0aCB0aGUgbWFpbnRhaW5lcgpvZiB0aGlua3BhZF9hY3BpICh0aGUgb3RoZXIgdXNlciBv ZiB0aGlzIGJ1cy92ZW5kb3IgbmFtZXNwYWNlKS4KClNpZ25lZC1vZmYtYnk6IFNoZW0gTXVsdGlu eW1vdXMgPG11bHRpbnltb3VzQGdtYWlsLmNvbT4KLS0tCiBkcml2ZXJzL2h3bW9uL2hkYXBzLmMg fCAgIDE3ICsrKysrKysrKysrKysrLS0tCiAxIGZpbGVzIGNoYW5nZWQsIDE0IGluc2VydGlvbnMo KyksIDMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZHJpdmVycy9od21vbi9oZGFwcy5jIGIv ZHJpdmVycy9od21vbi9oZGFwcy5jCmluZGV4IGFkOTJjMGEuLjQyM2YzNDggMTAwNjQ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NfcGFyYW1zKGhkYXBzX2lkZXYsIEFCU19YLAotLSAKMS41LjIuNAoK ------=_Part_5807_8854363.1188433864989 Content-Type: text/x-patch; name="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch"; filename="0002-hdaps-Add-a-2nd-input-device-for-raw-accelerometer.patch" X-Attachment-Id: f_f5yiai5i aGRhcHM6IEFkZCBhIDJuZCBpbnB1dCBkZXZpY2UgZm9yIHJhdyBhY2NlbGVyb21ldGVyIGRhdGEK ClRoZSBjdXJyZW50IGludGVyZmFjZSB1c2VkIGZvciByZWFkaW5nIHRoZSBIREFQUyBhY2NlbGVy b21ldGVyCnJlcXVpcmVzIHVzZXJzcGFjZSBkYWVtb25zIHRvIHBvbGwgYSBzeXNmcyBhdHRyaWJ1 dGUuIFRoaXMgY2F1c2VzCmludGVycnVwdHMgb24gdGlja2xlc3Mga2VybmVscywgYW5kIGludHJv ZHVjZXMgYSBwaGFzZSBkaWZmZXJlbmNlCmJldHdlZW4gdGhlIHVzZXJzcGFjZS0+a2VybmVsIHBv bGxpbmcgYW5kIGtlcm5lbC0+aGFyZHdhcmUgcG9sbGluZy4KClRvIHNvbHZlIHRoaXMs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m9pZCBfX2V4aXQgaGRhcHNfZXhpdCh2b2lkKQogewogCWRlbF90aW1lcl9z eW5jKCZoZGFwc190aW1lcik7CisJaW5wdXRfdW5yZWdpc3Rlcl9kZXZpY2UoaGRhcHNfaWRldl9y YXcpOwogCWlucHV0X3VucmVnaXN0ZXJfZGV2aWNlKGhkYXBzX2lkZXYpOwogCWhkYXBzX2Rldmlj ZV9zaHV0ZG93bigpOyAvKiBpZ25vcmUgZXJyb3JzLCBlZmZlY3QgaXMgbmVnbGlnaWJsZSAqLwog CXN5c2ZzX3JlbW92ZV9ncm91cCgmcGRldi0+ZGV2LmtvYmosICZoZGFwc19hdHRyaWJ1dGVfZ3Jv dXApOwotLSAKMS41LjIuNAoK ------=_Part_5807_8854363.1188433864989-- - 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/