From owner-freebsd-questions@FreeBSD.ORG Tue Jan 13 17:03:46 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 26AFD1065691 for ; Tue, 13 Jan 2009 17:03:46 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id CF82D8FC24 for ; Tue, 13 Jan 2009 17:03:45 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan-a.emsphone.com [199.67.51.107]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n0DH3hOx008497 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jan 2009 11:03:43 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n0DH3hUI012589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jan 2009 11:03:43 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n0DH3gPf012588; Tue, 13 Jan 2009 11:03:42 -0600 (CST) (envelope-from dan) Date: Tue, 13 Jan 2009 11:03:41 -0600 From: Dan Nelson To: michael Message-ID: <20090113170341.GE57874@dan.emsphone.com> References: <496839E2.1020808@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <496839E2.1020808@gmail.com> X-OS: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Tue, 13 Jan 2009 11:03:43 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 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 17:03:46 -0000 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. -- Dan Nelson dnelson@allantgroup.com