From owner-freebsd-mobile@FreeBSD.ORG Tue Aug 31 21:27:19 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F139316A4CE for ; Tue, 31 Aug 2004 21:27:19 +0000 (GMT) Received: from sasami.jurai.net (sasami.jurai.net [69.17.104.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B21143D1D for ; Tue, 31 Aug 2004 21:27:19 +0000 (GMT) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (winter@sasami.jurai.net [69.17.104.113]) by sasami.jurai.net (8.13.1/8.13.1) with ESMTP id i7VLR7lr005500; Tue, 31 Aug 2004 17:27:10 -0400 (EDT) (envelope-from winter@jurai.net) Date: Tue, 31 Aug 2004 17:27:07 -0400 (EDT) From: "Matthew N. Dodd" To: Bruce M Simpson In-Reply-To: <20040830204729.GA860@empiric.icir.org> Message-ID: <20040831172403.A4214@sasami.jurai.net> References: <20040830004037.GB83747@thought.org> <20040830192333.7e090f13.torfinn.ingolfsen@broadpark.no> <20040830204729.GA860@empiric.icir.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sasami.jurai.net [69.17.104.113]); Tue, 31 Aug 2004 17:27:15 -0400 (EDT) cc: freebsd-mobile@freebsd.org Subject: Re: xbatt or other indicators for the Thinkpad 600E? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 21:27:20 -0000 On Mon, 30 Aug 2004, Bruce M Simpson wrote: > On Mon, Aug 30, 2004 at 07:23:33PM +0200, Torfinn Ingolfsen wrote: >> The Linux people have tpctl (http://tpctl.sourceforge.net/), and I >> vaguely remember that somebody started a similar project for FreeBSD, >> but I don't think it was ever finished. > > I did a quick hack to dump out these registers from userland. From what > I've read of the acpi stuff for ThinkPads, this frobs the same register > space. I'm more comfortable going with that. The 'smapi' BIOS driver provides an interface and I have a read only utility that can pull info: ftp://ftp.jurai.net/users/winter/smapi.tar.gz I wasn't able to get 'write' functions to work; instant reboot. Since the laptop I was testing against (560E) isn't usable anymore I haven't played with it recently. I'd love it if someone was able to find the problem. -- 10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00