From: Len Brown <lenb@kernel.org>
To: jamey.hicks@nokia.com, linux-acpi@vger.kernel.org,
Matthew Garrett <mjg59@srcf.ucam.org>
Subject: Re: WMI vs Linux
Date: Wed, 28 Mar 2007 22:49:55 -0400 [thread overview]
Message-ID: <200703282249.55965.lenb@kernel.org> (raw)
In-Reply-To: <AD1781A3B7BFE44DA675CBF72E984D9902D1E144@daebe102.NOE.Nokia.com>
On Wednesday 28 March 2007 17:55, Jamey wrote:
>
> The patch was designed for the HP TC1100 tablet computer. It has a
> builtin Wifi module whose power supply is controlled via WMI. The state
> is persistent across reboots, but I was not happy needing to have a
> Windows partition just to turn Wifi and Bluetooth on and off. Actually,
> I did not care about Bluetooth but I wanted to ensure Wifi was on. That
> part of the driver seems to work.
>
> Also, I could not find a good way to detect that it was a TC1100.
yeah, this is a problem -- as it stands (stood) the driver binds
as a generic WMI driver...
> Perhaps it should probe for PNP0C14 and the WACF005 and unload itself if
> those are not both present. Given the total lack of response I got when
> I sent that patch to LKML, I was quite amused to find it running on all
> sorts of machines because it was picked up by some distributions (e.g.,
> Mandrake, Ubuntu).
It is no longer possible to shock me with what some distros ship...
> And because of the aforementioned lack of
> identifiers, the driver stays loaded on all sorts of machines.
> Fortunately it is rather small. If you have any suggestions, I'm willing
> to update it.
>
> I would pretty much have to agree that WMI is unfriendly. I had the
> spec for WMI for some of the HP laptops, NC4000 I think, but I couldn't
> really do much with it. The NC4000 ACPI seemed to be totally different
> from the TC1100 one.
>
> But I guess this driver is one instance where Linux is able to use the
> WMI stuff.
Well, you did more with WMI than I thought would be possible on Linux.
I think at a minimum, we should have a small driver upstream that
binds on PNP0C14, spits out a message that the system has Windows
proprietary firmware extensions, and acts as a place where folks
who care about WMI them can try to hack together something useful...
> Matthew wrote:
> It would be helpful to export as much WMI information as possible - we
> can supply information to utilise it via HAL, which would at least
> provide support for doing things like poking the wireless and bluetooth
> hardware on the old HP tablets.
>
> I agree that WMI functionality is generally a bad sign, but where we can
> drive it I think we probably should be.
Well, if you think you can do something useful with it...
My only request is that the source not live in drivers/acpi/ --
I'd rather it live with the platform specific drivers that use ACPI,
eg. drivers/misc/wmi.c You think?
> > ps. while you're at it, what is the WACF005 Wacom Digitizer device also in the patch --
> > I don't see that upstream either.
>
> It's handled by 8250_pnp.c now.
good to know.
So, do we have a volunteer to cobble together an upstream wmi.c?
thanks,
-Len
next parent reply other threads:[~2007-03-29 2:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AD1781A3B7BFE44DA675CBF72E984D9902D1E144@daebe102.NOE.Nokia.com>
2007-03-29 2:49 ` Len Brown [this message]
2007-03-28 19:44 WMI vs Linux Len Brown
2007-03-28 22:17 ` Matthew Garrett
2007-03-29 2:58 ` Joshua Wise
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703282249.55965.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=jamey.hicks@nokia.com \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.