From owner-acpi-jp@jp.FreeBSD.org Fri Sep 12 12:22:07 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h8C3M7w97623;
	Fri, 12 Sep 2003 12:22:07 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id h8C3M6w97605
	for <acpi-jp@jp.FreeBSD.org>; Fri, 12 Sep 2003 12:22:06 +0900 (JST)
	(envelope-from qhwt@myrealbox.com)
Received: from me qhwt@smtp-send.myrealbox.com [220.13.16.99]
	by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision:   3.39  $ on Novell NetWare
	via secured & encrypted transport (TLS);
	Thu, 11 Sep 2003 21:22:05 -0600
From: qhwt@myrealbox.com
To: acpi-jp@jp.FreeBSD.org
Message-ID: <20030912032204.GA35220@myrealbox.com>
References: <1061343265.951.17.camel@scorpio.eco.imp.mx> <20030910225648.3228b607.aizu@navi.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ"
Content-Disposition: inline
In-Reply-To: <20030910225648.3228b607.aizu@navi.org>
User-Agent: Mutt/1.5.4i
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 12 Sep 2003 12:22:04 +0900
X-Sequence: acpi-jp 2662
Subject: [acpi-jp 2662] Re: TOSHIBA HCI driver on ACPI.
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: qhwt@myrealbox.com
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030902


--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello.

On Wed, Sep 10, 2003 at 10:56:48PM +0900, Hiroyuki Aizu wrote:
> Hi.
> 
> I wrote TOSHIBA HCI driver base on ACPI. I was tested on Libretto L5 series. 
> This driver should work with other TOSHIBA.
> And this driver works as loadable module.
> 
> This driver has a remarkable improvement that you can control with Fn+? keys.
> 
> Features
> Fn+Esc Force keep running to fan
> Fn+F   Force keep running to fan
> Fn+F2  Same as push sleep button
>        (You should set hw.acpi.sleep_button_state=S3)
> Fn+F5  VGA Output Switch (LCD->CRT->Both->None)
> Fn+F6  LCD Brightness decrease
> Fn+F7  LCD Brightness increase
> Fn+F8  LCD Backlight on/off
> 
> 
> Of cource, you can control these feature with sysctl.
> 
> # sysctl hw.acpi.toshiba
> hw.acpi.toshiba.force_fan: 0
> hw.acpi.toshiba.video_output: 1
> hw.acpi.toshiba.lcd_brightness_leve: 6
> hw.acpi.toshiba.lcd_backlight: 1
> 
> 
> 1. Extract acpi_toshiba.tar.gz at /usr/src/sys
> 2. apply files.diff
> 3. re-compile kernel
> 4. install kernel
> 5. add  acpi_toshiba_load="YES" to /boot/loader.conf
>    or load acpi_toshiba at boot time.
> 
> Please try this driver and test report welcome.

Great! This patch works fine on my Dynabook SS 3500, except setting
force_fan won't work;
# sysctl hw.acpi.toshiba.force_fan=0
hw.acpi.toshiba.force_fan: 1 -> 1

maybe because it's not implemented on this hardware.

Attached patch is needed to compile your code for impatients who's
running 4-STABLE, which requires you to compile acpi module in the kernel.
I'm not sure about the value for ACPI_TOSHIBA, but it seems to be
working so far.

BTW, does HCI have something to do with CPU throttling? According to
the output from acpidump, both duty_offset and duty_width are zero,
so I have no hw.acpi.cpu's with my SS 3500. I really need to find
a way to stop Dynabook from burning my lap.

Thanks!

--mP3DRpeJDSE+ciuQ
Content-Type: application/x-gunzip
Content-Disposition: attachment; filename="toshiba-hci.diff.gz"
Content-Transfer-Encoding: base64

H4sICGI3YT8CA3Rvc2hpYmEtaGNpLmRpZmYAbZBdb4IwFIav4VecZDcgw7XFTcWYyIhGE78i
ml02DIo22YCU4pbsz49apluyc0Gb0+ftKY/ruhAnJT/HonsyCIGgPgJByGs+fm/oEwQuasp0
HOcXiAlErNQgwr7n+R5uwckEXOx590/gqKUPk4kJdynLeM6MINwu6Ha3CadRtNkZBvpECPcu
ub/Mfj7drYJlSwz+IWbBWp8SpB/4N7+J5ovnoCWIzpvw0DEBOhAWeSXjXFaQFQJSnmVMsFwC
zyUToi4lvBcpe6ugrlgKH1yeLv9OIyYXuRQrdWjZXdNt7VFZVCf+GneTbiH40XhpUsoPRkoj
GfiNWOXqavEWMGaCa5YAxv7jwO/1NatE9odYiVTL4CJSVcrOPGFUqs1Ityop6kTqq6sikwnc
qqO7SYOajmpofYd1uF9s1nS/C8KpZSWnWEDHturGQSkFlTalWZ0nlNoj07kOhjFYP/PtWBzb
+e2I5vSya4kjk7SMlVn9KJW02wTPwLqmxrA+LJc2fJnfW3EPfJACAAA=

--mP3DRpeJDSE+ciuQ--
