From owner-freebsd-mobile@FreeBSD.ORG Tue Nov 23 08:44:34 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 9877316A4CE for ; Tue, 23 Nov 2004 08:44:34 +0000 (GMT) Received: from seed.net.tw (sn13.seed.net.tw [139.175.54.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4387743D3F for ; Tue, 23 Nov 2004 08:44:34 +0000 (GMT) (envelope-from plasma@ms9.hinet.net) Received: from [221.169.25.179] (port=48215 helo=mis.ezplay.tv) by seed.net.tw with esmtp (Seednet 4.23:1) id 1CWWHm-0006KW-TB; Tue, 23 Nov 2004 16:44:32 +0800 Received: from localhost (localhost [127.0.0.1]) by mis.ezplay.tv (Postfix) with ESMTP id E5C774BD1194; Tue, 23 Nov 2004 16:44:29 +0800 (CST) Received: from home.ezplay.tv (home.ezplay.tv [61.222.213.139]) by mis.ezplay.tv (Postfix) with ESMTP id 3A94B4BD11E6; Tue, 23 Nov 2004 16:43:51 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by home.ezplay.tv (Postfix) with ESMTP id 2F3DF1AC3; Tue, 23 Nov 2004 16:43:50 +0800 (CST) Received: from me (mis.ezplay.tv [61.222.213.138]) by home.ezplay.tv (Postfix) with SMTP id 916C01C19B; Tue, 23 Nov 2004 16:42:17 +0800 (CST) Received: (nullmailer pid 71779 invoked by uid 1001); Tue, 23 Nov 2004 06:59:35 -0000 Date: Tue, 23 Nov 2004 14:59:35 +0800 From: plasma To: Robert Blacquiere Message-ID: <20041123065935.GB20758@plasmanb.plasma.idv.tw> References: <20041122084814.GA1358@plasmanb.plasma.idv.tw> <20041122100701.GE33509@bombur.guldan.demon.nl> <20041122121210.GA857@plasmanb.plasma.idv.tw> <20041122122827.GH33509@bombur.guldan.demon.nl> <20041122144407.GA821@plasmanb.plasma.idv.tw> <20041122184414.GL33509@bombur.guldan.demon.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041122184414.GL33509@bombur.guldan.demon.nl> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by AMaViS snapshot-20020222 with Pahud hack X-Virus-Scanned: by AMaViS 0.3.12 cc: freebsd-mobile@freebsd.org Subject: Re: [speedstep] Testers wanted 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, 23 Nov 2004 08:44:34 -0000 On Mon, Nov 22, 2004 at 07:44:14PM +0100, Robert Blacquiere wrote: > On Mon, Nov 22, 2004 at 10:44:07PM +0800, plasma wrote: > > It seemds to me that ichctrl is not able to see your battery when ac > > is pulled. Please provide me more information: > > > > * Output of 'uname -a'. > > FreeBSD bifur.guldan.demon.nl 5.3-STABLE FreeBSD 5.3-STABLE #1: Wed Nov 10 10:40:52 CET 2004 \ > robert@bifur.guldan.demon.nl:/usr/obj/usr/src/sys/bifur i386 > > > * You're using ACPI or APM? > > I'me using ACPI > > > * 'sysctl -a | grep -i acline' when AC is plugged and pulled. > robert@bifur$ sysctl hw.acpi.acline > hw.acpi.acline: 1 > > pulling ac out... > robert@bifur$ sysctl hw.acpi.acline > hw.acpi.acline: 0 > > > > * 'apm | grep AC' when AC is plugged and pulled. > > robert@bifur$ apm | grep AC > AC Line status: on-line > > pulling out ac > robert@bifur$ apm | grep AC > AC Line status: off-line This is strange. I copy-n-paste the code that checks AC line status from apm, so ichctrl should do if apm works. Estctrl uses hw.acpi.acline to check AC line status. But I notice ichist doesn't rely on neither ACPI nor APM, so I decide to check AC line through /dev/apm since it's available in both configurations. > It seems i get also a lot of: > rtc: 100 > kern.hz: Timing will be inaccurate, please increase hz. > > when using the ichctrl ... > > Probably due to the fact the clock freq is changed... Are you using vmware? I think rtc module is needed to run vmware. It barks if HZ is not high enough. Estctrl checks kern.cp_time twice a second. Since ichctrl is derived from estctrl, it does so too. I'm not sure if HZ has anything to do with it here. In my kernel config, I set HZ to 1500. This is because I used vmware before, and rtc barked all the time. :p ichctrl 0.1 is released. It's at http://svn.ntcu.net/~plasma/ichctrl-0.1.tar.gz. The length is 2532, and md5 8ba185c774af55235277d2cf8a1cbaba. Maybe you wanna give it try? > If you need more info i'me willing to help Sorry, your problem really beats me. I have no clue what's going on. Maybe I should write a version which uses hw.acpi.acline to test AC line status for you. plasma