From owner-freebsd-questions@FreeBSD.ORG Tue Jan 13 18:35:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEFBF1065674 for ; Tue, 13 Jan 2009 18:35:54 +0000 (UTC) (envelope-from michael.copeland@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 8FE408FC31 for ; Tue, 13 Jan 2009 18:35:53 +0000 (UTC) (envelope-from michael.copeland@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so29827qwb.7 for ; Tue, 13 Jan 2009 10:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=S9ZG0SKIs1Uhq0b+xfAlWEE7JvR44h4s0fQxH1VqY9U=; b=kYZjzjsR1jKhGqxk8ukRB7JVomx8tM/F1t6zqhhDV8T1lTXZ+5WRiXBRIS4q25ZRKe aUhjg32jjr4cMmxtmeCb3mlgwjEPCgQJZKupkg2FoulvBOv7BibWKBHgjoBRfE9M3Mfs KuFSh3dRxfzP98h2yrqQfGHfde5JWY0z+MOsc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=gnMPCuFP313al7l/NZhWKx7tgM0EclxNDZb42i3sNpp5r2OnbySTJh3I1QIm3xHdsT vf9Uf2NG+k7rLFqvQhqxWtFZWmXWPCecPj5iFR/r5QL4AVy9lRTY/l29fr2Lmb6awINp Gb2Zye5e5fEC2rsDOGtty4d1N45vWD4s1zbog= Received: by 10.214.129.12 with SMTP id b12mr20933247qad.184.1231871753389; Tue, 13 Jan 2009 10:35:53 -0800 (PST) Received: from ?192.168.1.104? (adsl-074-245-053-043.sip.jax.bellsouth.net [74.245.53.43]) by mx.google.com with ESMTPS id 7sm3077852ywo.0.2009.01.13.10.35.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jan 2009 10:35:52 -0800 (PST) Message-ID: <496CDEFF.1070905@gmail.com> Date: Tue, 13 Jan 2009 13:35:43 -0500 From: Michael Copeland User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Dan Nelson References: <496839E2.1020808@gmail.com> <20090113170341.GE57874@dan.emsphone.com> In-Reply-To: <20090113170341.GE57874@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: laptop battery + i2c bus reprogramming X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2009 18:35:55 -0000 Dan Nelson wrote: > In the last episode (Jan 10), michael said: > >> several of my laptop batteries(L-ION) have an i2c bus to the eeprom >> inside the case. is it possible to reprogram or reset a battery i >> have repacked from within freebsd or will i need to do this with the >> available windows programs? >> what i'm asking is if freebsd actually supports sending of data over >> the i2c bus from userland. >> > > The iic driver seems to provide ioctls for userland manipulation; as > long as you know what to send (and assuming the kernel driver finds the > i2c chip), it should work. > > I noticed the same things, but I wasn't sure if any of the real ground work had been done. I've been replacing the cells in my batteries for a while now because I get 40-60% more gain from home built compared to new batteries from the manufacturer. I'm just tired of the licensing from the software I was using because it limits how many eeproms you can re flash.