From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 18 09:51:39 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 65BA5F37; Wed, 18 Jun 2014 09:51:39 +0000 (UTC) Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 165522D4F; Wed, 18 Jun 2014 09:51:39 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id l6so1283198oag.28 for ; Wed, 18 Jun 2014 02:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=c5FR/pv5FZvHHO02+aZeLhJdKqkep7LRuUaC3bTCcJQ=; b=Z2ilYijD+pFzOYcfiZj7R4JJzcXjXNgjspf5DFY6PGlw2Ps8obcSNaNAbnk3/tm9BH mRxxZ3nzs/V8MMm8B9npQUS+tne2aZq3zoHHCuEGp89tcBcQXk4FhWfsmAnD3OU08450 iUnTT35L6oJNYjjrJhLgZ8YxtYwX8iqVFQwyP4uNai8/KX02AYW4wChMImXO/Lhcie99 SQ3tVQn7kdFfWHVGWcoS40S8MmB1hKv0ae9g6kIC4isCM9OIVJnTSaL7kBQLaxKSMOqW +oWMd3u8JynSwVVEQtkB7gbVn8KRomdmOpbWyTpNiMPGPSS95vFItJFgJTpomBKTXD3q 7oYQ== MIME-Version: 1.0 X-Received: by 10.60.73.39 with SMTP id i7mr755460oev.51.1403085098327; Wed, 18 Jun 2014 02:51:38 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.75.207 with HTTP; Wed, 18 Jun 2014 02:51:38 -0700 (PDT) In-Reply-To: <20140618.152826.81987615.iwasaki@freebsd.org> References: <20140617002905.GW31367@funkthat.com> <20140618.152826.81987615.iwasaki@freebsd.org> Date: Wed, 18 Jun 2014 11:51:38 +0200 X-Google-Sender-Auth: KhjdIgN-vSpYllSt0v9GkkAzZYk Message-ID: Subject: Re: sysctl hw.acpi.acline From: CeDeROM To: Mitsuru IWASAKI Content-Type: text/plain; charset=UTF-8 Cc: Anthony Jenkins , freebsd-hackers@freebsd.org, freebsd-acpi@freebsd.org, Armin Gruner 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: Wed, 18 Jun 2014 09:51:39 -0000 On Wed, Jun 18, 2014 at 8:28 AM, Mitsuru IWASAKI wrote: >> There is no information in the ACPI Manual that the OID's are optional >> and may not exist in some cases. This is exactly the problem, an >> undefined and undocumented situation. Maybe its just worth putting a >> note :-) > > OK, how about adding the following line? > ---- > Note that this OID exists only if there is a ACPI Device ID "ACPI0003" in ACPI Namespace of the system. > ---- Hello Mitsuru! :-) I wanted to ask the list and make sure, in general, if OID can be optional/missing depending on the hardware capabilities. It looks like things are like that - some other OID are missing as well depending on the hardware. I think one general remark could be put into acpi and sysctl manual pages, something like: "Note that some OID will be available only if given hardware supports them, on a different hardware these will be missing which means that feature is not supported." > Unfortunately, UPS is not covered by ACPI specification. I think that > new OID would be needed in generic place (not under hw.acpi) in order > to get the state of power sources. > In that case, hw.acpi.battery should be moved to new place too. I thought acline would be such place - it is even specified in the manual (unlike battery) :-) Now I know assumption must be made that is acline oid is not available then we have a dekstop. But I dont really like assumptions, thats why I prefered to ask first :-) Thank you! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info