From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 16 22:16:40 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55D52992 for ; Mon, 16 Jun 2014 22:16:40 +0000 (UTC) Received: from nm13.access.bullet.mail.bf1.yahoo.com (nm13.access.bullet.mail.bf1.yahoo.com [216.109.114.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D65FC243F for ; Mon, 16 Jun 2014 22:16:39 +0000 (UTC) Received: from [66.196.81.164] by nm13.access.bullet.mail.bf1.yahoo.com with NNFMP; 16 Jun 2014 22:10:10 -0000 Received: from [98.138.226.244] by tm10.access.bullet.mail.bf1.yahoo.com with NNFMP; 16 Jun 2014 22:10:10 -0000 Received: from [127.0.0.1] by smtp115.sbc.mail.ne1.yahoo.com with NNFMP; 16 Jun 2014 22:10:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1402956610; bh=t5Zi3B/lh/booZzBRP2Fzyk/ARFQBtUTnnM276IFi5Y=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=XVk57plZpJDGakUynvwOYECgBpqDewNMVAiMHnal7PIQo3UVSD6qeMt0ybc2EfjZF69x9t1C6ldfiSKp7IaFUZhOsLcCKTfUsavdZWB2/L4SNiPyptcW9KB83ICcgq6OnfV/f2OGgtjCc3XLZhdCY1UrH/9kvwtuRVklAIB0Ihw= X-Yahoo-Newman-Id: 217920.74373.bm@smtp115.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: y7WElrUVM1kJx19oxi4sCwYcAcKLhvQwj.aezwpm1m2D7DZ Yd0u6NZv4V4xGqFb6yH24X2boWd00Cc7b01iJRpvAh8jnEObvGdX8ogtJ6uz O3bb5zlpGyJ_zT2wAayKVoAW_T0HJ9Kwo0DPjvCE.7Fruss7Ra8ZrxrNwieK LbsgAnYcvG8xLo2Klr5a4rDB7OVqC.WTBgX4xxFgYOMjjH3cHwoCSIXRhgjr 3kTiuGRFjjYtaQFGaFoW.NeZpBV.pQPBSlYCzNCbhJ_PiomyqdmcyYhvq6eG k7bwws7VtA7jVtT03DijNmm1vw.wASpJKFnhJA9AvO5HhX53DY1UBt1cGjIt 68LckRzum_u18ETVpVFIVKx11c4g9qtnuBua5Tcxli6Xb.WtJrPPiRVZyYCA uQN8fH6Ul4SHylIwc7nY9yhzmHfFWh5vmhhGD1AZKsPgrWvkXZ0LQzmGbAsf FanPm3Bu8E24G4l6K2ClhUNMB6tOumOZNWtanVU0j9moD7AvSmBHh2hWjhsq kGkdvNTDZhxbycTkK.DMdUWZ41_g52AfYloGwuegg8C4n7g-- X-Yahoo-SMTP: OKD1keCswBBTAmAF1s00hLyKW3wE3YfSK0Eazl6b4VZG4LTqJxg- X-Rocket-Received: from [64.100.76.53] (Anthony.B.Jenkins@64.100.76.53 with plain [98.138.84.52]) by smtp115.sbc.mail.ne1.yahoo.com with SMTP; 16 Jun 2014 22:10:10 +0000 UTC Message-ID: <539F6B3F.2000308@att.net> Date: Mon, 16 Jun 2014 18:10:07 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: CeDeROM , Armin Gruner , freebsd-hackers@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: sysctl hw.acpi.acline References: <539F56E9.8070809@muc.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 16 Jun 2014 22:30:20 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 22:16:40 -0000 On 06/16/2014 17:43, CeDeROM wrote: > On Mon, Jun 16, 2014 at 10:43 PM, Armin Gruner wrote: >> it's actually "hw.acpi.battery.state" >> (the man page is indeed stale) >> The value of hw.acpi.battery.state >> 0 means: on AC power >> 1 means: on battery >> 2 means: charging > Hey Armin :-) The same situation here on a desktop I get: > > root@hexagon:~ # sysctl hw.acpi.battery.state > sysctl: unknown oid 'hw.acpi.battery.state': No such file or directory > root@hexagon:~ # uname -a > FreeBSD hexagon 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 > 18:31:10 UTC 2014 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > Tanks! :-) > Tomek > The absence of hw.acpi.battery and child oids probably implies there is no battery and the system may be assumed to be on line (A/C) power. Anthony