From owner-freebsd-acpi@FreeBSD.ORG Sun Jul 11 14:46:37 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C86516A4CE for ; Sun, 11 Jul 2004 14:46:37 +0000 (GMT) Received: from mpb4.plala.or.jp (c156253.vh.plala.or.jp [210.150.156.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 818D443D41 for ; Sun, 11 Jul 2004 14:46:36 +0000 (GMT) (envelope-from t-ogawa@triaez.kaisei.org) Received: from solder.dyndns.org ([220.221.88.1]) by mpb4.plala.or.jp with SMTP id <20040711144632.KZJY19724.mpb4.plala.or.jp@solder.dyndns.org> for ; Sun, 11 Jul 2004 23:46:32 +0900 Received: (qmail 71001 invoked from network); 11 Jul 2004 14:46:31 -0000 Received: from localhost (HELO gandalf.middle.earth) (127.0.0.1) by localhost with SMTP; 11 Jul 2004 14:46:31 -0000 Date: Sun, 11 Jul 2004 23:46:31 +0900 Message-ID: <868ydq61q0.wl.t-ogawa@triaez.kaisei.org> From: OGAWA Takaya To: Takahashi Yoshihiro In-Reply-To: <20040711.182654.59665900.nyan@jp.FreeBSD.org> References: <20040711.182654.59665900.nyan@jp.FreeBSD.org> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-2022-JP cc: acpi@FreeBSD.org cc: njl@FreeBSD.org Subject: Re: Panasonic acpi driver X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 14:46:37 -0000 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@triaez.kaisei.org