Panasonic acpi driver

OGAWA Takaya t-ogawa at triaez.kaisei.org
Sun Jul 11 07:46:37 PDT 2004


Thank you for taking care of the code, Takahashi-san.

At Sun, 11 Jul 2004 18:26:54 +0900 (JST),
Takahashi Yoshihiro wrote:
> I have written the acpi_panasonic driver which is based on ogawa's
> driver.  It only supports LCD brightness control and sound mute, but
> currently the devd(8) daemon is not required anymore.

It is not a problem if the driver emits acpi events to devd for
other key events (mixer control etc.) nevertheless.  We can let
devd(8) do them in those cases.  I once had a version which do
mixer control within the kernel via NDINIT() and VOP_IOCTL() but
it was a real mess.

> http://home.jp.freebsd.org/~nyan/patches/acpi_panasonic.diff.gz

Mostly good...
> +#define	HKEY_LCD_BRIGHTNESS_SHIFT	(5 - HKEY_LCD_BRIGHTNESS_BITS)
>                                                ^ Did you mean '8' here?
On my CF-R1N it must be 8.  The object seems to have 8bit range
but I only used higher 4bits because I just don't want to hit the
key ~255 times to turn off the LCD light.

----------
おがわ たかや
t-ogawa at triaez.kaisei.org


More information about the freebsd-acpi mailing list