From owner-acpi-jp@jp.FreeBSD.org Thu Aug 28 03:55:40 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h7RItes85827;
	Thu, 28 Aug 2003 03:55:40 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from hermes.home.paeps.cx (postfix@hermes.home.paeps.cx [2001:ab8:2007:10:20c:6eff:fe4b:23f])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet6 id h7RItca85819
	for <acpi-jp@jp.FreeBSD.org>; Thu, 28 Aug 2003 03:55:39 +0900 (JST)
	(envelope-from philip@home.paeps.cx)
Received: by hermes.home.paeps.cx (Postfix, from userid 1001)
	id D0FDF50; Wed, 27 Aug 2003 20:55:34 +0200 (CEST)
From: Philip Paeps <philip@paeps.cx>
To: acpi-jp@jp.FreeBSD.org
Message-ID: <20030827185534.GJ632@hermes.home.paeps.cx>
Mail-Followup-To: acpi-jp@jp.FreeBSD.org
References: <20030821133049.GB654@hermes.nixsys.be> <20030827070545.GC628@hermes.nixsys.be> <20030827105413.W31602@root.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030827105413.W31602@root.org>
X-Date-in-Rome: ante diem VI Kalendas Septembres MMDCCLVI ab Urbe Condida
X-PGP-Fingerprint: FA74 3C27 91A6 79D5 F6D3 FC53 BF4B D0E6 049D B879
X-Message-Flag: Get a proper mailclient!  Mutt: <http://www.mutt.org/>
User-Agent: Mutt/1.5.4i
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 27 Aug 2003 20:55:34 +0200
X-Sequence: acpi-jp 2615
Subject: [acpi-jp 2615] Re: Asus L3H notebook issues
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: philip@paeps.cx
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030821

On 2003-08-27 10:59:38 (-0700), Nate Lawson <nate@root.org> wrote:
> On Wed, 27 Aug 2003, Philip Paeps wrote:
> > On 2003-08-21 15:30:51 (+0200), Philip Paeps <philip+freebsd@paeps.cx> wrote:
> > > I have an Asus L3500H notebook on which I've installed FreeBSD-CURRENT.
> > > Most things are working rather well, as I expected, but there are some
> > > ACPI issues bothering me.  Perhaps someone can help me :-)
> >
> > The issues in my original mail still aren't solved, so feel free,
> 
> I haven't had a chance to look at it yet.

When you get a chance.  It's not urgent, it's just little things that 'irk' me
a bit :-)

> > but I've since started working on a driver for the 'extra' things my
> > laptop implements through ACPI (mail led, wifi led, hot keys,...).
> 
> Great!  I don't have an ASUS or Toshiba laptop so I can't port the Linux
> driver for these extra features.  

I should have a relatively working implementation at some point over the
weekend.  I've got most of the things on my laptop working now, except for the
display switching and the volume.  

Having looked at the ACPI bits from some other laptops recently, it appears as
though a lot of them are implementing leds and hotkeys in much the same way as
Asus is doing it.  I'm making my driver 'general' enough so it should be able
to deal with brands !Asus as well.

> Is that what you're using for the reference?

Yes, though I'm being careful about not 'referencing' it so much that it might
be mistaken as a 'derived work' and force me to put it under the GPL.  I've
taken their information about the different models of laptops and that's about
it.

> > Currently, I've just put my code under sys/dev/acpica and hooked it up in
> > the Makefile in sys/modules/acpi.  That works fine, but it makes the acpi
> > module somewhat larger for everyone, not just Asus-owners.  I would
> > therefore like to turn it into a loadable module in its own right, but I
> > haven't been able to find any documentation on loading modules depending
> > on ACPI.  Should this 'Just Work' [tm], or are there any problems I'm
> > likely to run into?  Pointers would be helpful :-)
> 
> Here's an example from fxp which depends on the miibus module:
> MODULE_DEPEND(fxp, miibus, 1, 1, 1);
> DRIVER_MODULE(miibus, fxp, miibus_driver, miibus_devclass, 0, 0);

Looks simple enough.  I'll have a go at that later tonight or on the bus to
work tomorrow morning :-)

Cheers,

 - Philip

-- 
Philip Paeps                                          Please don't CC me, I am
                                                       subscribed to the list.

  BOFH Excuse #12:
    dry joints on cable plug
