Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2009 13:23:14 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Nathan Whitehorn <nwhitehorn@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r193159 - head/sys/powerpc/powermac
Message-ID:  <200906011323.15189.jhb@freebsd.org>
In-Reply-To: <4A23FB40.1050405@freebsd.org>
References:  <200905311002.n4VA2K6c037776@svn.freebsd.org> <200906010822.19951.jhb@freebsd.org> <4A23FB40.1050405@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 01 June 2009 12:01:04 pm Nathan Whitehorn wrote:
> John Baldwin wrote:
> > On Sunday 31 May 2009 6:02:20 am Nathan Whitehorn wrote:
> >   
> >> Author: nwhitehorn
> >> Date: Sun May 31 10:02:20 2009
> >> New Revision: 193159
> >> URL: http://svn.freebsd.org/changeset/base/193159
> >>
> >> Log:
> >>   Provide an analogous sysctl to hw.acpi.acline (dev.pmu.0.acline) to
> >>   determine whether the computer is plugged in to mains power.
> >>     
> >
> > I wonder if it would be a good idea to introduce a 
> > platform-independent 'acline' sysctl?  Something like 'hw.acline'?  For now 
> > we could simply have these devices create it.  We could do something fancier 
> > where AC adapter drivers register with a centralized thingie at some point 
> > and it exports a global setting that is true so long as at least one adapter 
> > is online.  I'm not sure that level of complexity is warranted until we have 
> > platforms with multiple AC lines exposed to the OS though.
> >   
> That would be nice, and easy to implement, though the existing one 
> should be kept for a while for compatibility. In the longer term, pmu(4) 
> also provides an ACPI-alike interface to battery status under dev.pmu.*, 
> which it would likewise be good to report in a platform-independent way.

Yes, the existing names would have to stay around for a while for compatability.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906011323.15189.jhb>