From owner-freebsd-acpi@FreeBSD.ORG Tue Jun 30 13:11:39 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6995C10656CC for ; Tue, 30 Jun 2009 13:11:39 +0000 (UTC) (envelope-from freebsdusb@bindone.de) Received: from mail.bindone.de (mail.bindone.de [80.190.134.51]) by mx1.freebsd.org (Postfix) with SMTP id D60418FC18 for ; Tue, 30 Jun 2009 13:11:38 +0000 (UTC) (envelope-from freebsdusb@bindone.de) Received: (qmail 86223 invoked by uid 89); 30 Jun 2009 13:11:37 -0000 Received: from unknown (HELO ufo.bindone.de) (mg@bindone.de@87.152.174.104) by mail.bindone.de with ESMTPA; 30 Jun 2009 13:11:37 -0000 Message-ID: <4A4A0EF6.1080800@bindone.de> Date: Tue, 30 Jun 2009 15:11:18 +0200 From: Michael Gmelin User-Agent: Thunderbird 2.0.0.17pre (X11/20090202) MIME-Version: 1.0 To: chflags@gmail.com References: <4A46018B.90709@bindone.de> <4A49E9F4.5010803@bindone.de> <25cb30906300423q2d61bbf6t6bb42f6c362fef2e@mail.gmail.com> <25cb30906300441y4eb862abk9e12313d6b257354@mail.gmail.com> <4A49FD78.90405@bindone.de> <25cb30906300503g4e11290xd18818238c5a4bb3@mail.gmail.com> <4A4A01F3.1080004@bindone.de> <25cb30906300525j650a601cr77f0740f56168e53@mail.gmail.com> <4A4A05FA.8000305@bindone.de> <25cb30906300537y5fae18afo7c34d5fda170fff3@mail.gmail.com> <25cb30906300554u4ef7e638naa0dfe51bac3e83f@mail.gmail.com> In-Reply-To: <25cb30906300554u4ef7e638naa0dfe51bac3e83f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: Patches to acpi_hp X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2009 13:11:40 -0000 Kevin Foo wrote: > On Tue, Jun 30, 2009 at 8:37 PM, Kevin Foo wrote: > >> Hi Michael, >> >> I'm currently exploring it. So far, it was good on HP compaq presario V3400 >> both i386 and amd64 arch, >> >> # sysctl dev.acpi_hp.0.bt_enabled=1 >> >> dmesg :- >> ugen0: > addr 2> on uhub0 >> >> # sysctl dev.acpi_hp.0.bt_enabled=0 >> >> dmesg :- >> ugen0: at uhub0 port 4 (addr 2) disconnected >> ugen0: detached >> >> Thanks! >> >> -- >> Regards >> Kevin Foo > > > > Michael, > > Controlling via sysctl works well so far. The hpcmi device is missing > though. Perhaps I missed any patch for that? > > zeus# cat /dev/hpcmi > cat: /dev/hpcmi: No such file or directory > > zeus# sysctl -a | grep dev.acpi > dev.acpi.0.%desc: HPQOEM SLIC-MPC > dev.acpi.0.%driver: acpi > dev.acpi.0.%parent: nexus0 > dev.acpi_sysresource.0.%desc: System Resource > dev.acpi_sysresource.0.%driver: acpi_sysresource > dev.acpi_sysresource.0.%location: handle=\_SB_.PCI0.LPC0.MBRD > dev.acpi_sysresource.0.%pnpinfo: _HID=PNP0C02 _UID=31 > dev.acpi_sysresource.0.%parent: acpi0 > dev.acpi_sysresource.1.%desc: System Resource > dev.acpi_sysresource.1.%driver: acpi_sysresource > dev.acpi_sysresource.1.%location: handle=\_SB_.PCI0.LPC0.PMIO > dev.acpi_sysresource.1.%pnpinfo: _HID=PNP0C02 _UID=3 > dev.acpi_sysresource.1.%parent: acpi0 > dev.acpi_sysresource.2.%desc: System Resource > dev.acpi_sysresource.2.%driver: acpi_sysresource > dev.acpi_sysresource.2.%location: handle=\_SB_.PCI0.SYS0 > dev.acpi_sysresource.2.%pnpinfo: _HID=PNP0C02 _UID=1 > dev.acpi_sysresource.2.%parent: acpi0 > dev.acpi_timer.0.%desc: 24-bit timer at 3.579545MHz > dev.acpi_timer.0.%driver: acpi_timer > dev.acpi_timer.0.%location: unknown > dev.acpi_timer.0.%pnpinfo: unknown > dev.acpi_timer.0.%parent: acpi0 > dev.acpi_ec.0.%desc: Embedded Controller: GPE 0x1 > dev.acpi_ec.0.%driver: acpi_ec > dev.acpi_ec.0.%location: handle=\_SB_.PCI0.EC0_ > dev.acpi_ec.0.%pnpinfo: _HID=PNP0C09 _UID=0 > dev.acpi_ec.0.%parent: acpi0 > dev.acpi_hpet.0.%desc: High Precision Event Timer > dev.acpi_hpet.0.%driver: acpi_hpet > dev.acpi_hpet.0.%location: unknown > dev.acpi_hpet.0.%pnpinfo: unknown > dev.acpi_hpet.0.%parent: acpi0 > dev.acpi_lid.0.%desc: Control Method Lid Switch > dev.acpi_lid.0.%driver: acpi_lid > dev.acpi_lid.0.%location: handle=\_SB_.LID0 > dev.acpi_lid.0.%pnpinfo: _HID=PNP0C0D _UID=0 > dev.acpi_lid.0.%parent: acpi0 > dev.acpi_lid.0.wake: 1 > dev.acpi_button.0.%desc: Sleep Button > dev.acpi_button.0.%driver: acpi_button > dev.acpi_button.0.%location: handle=\_SB_.SLPB > dev.acpi_button.0.%pnpinfo: _HID=PNP0C0E _UID=0 > dev.acpi_button.0.%parent: acpi0 > dev.acpi_button.0.wake: 1 > dev.acpi_button.1.%desc: Power Button > dev.acpi_button.1.%driver: acpi_button > dev.acpi_button.1.%location: handle=\_SB_.PWRB > dev.acpi_button.1.%pnpinfo: _HID=PNP0C0C _UID=0 > dev.acpi_button.1.%parent: acpi0 > dev.acpi_video.0.%desc: ACPI video extension > dev.acpi_video.0.%driver: acpi_video > dev.acpi_video.0.%parent: vgapci0 > dev.acpi_tz.0.%desc: Thermal Zone > dev.acpi_tz.0.%driver: acpi_tz > dev.acpi_tz.0.%location: handle=\_TZ_.TZS0 > dev.acpi_tz.0.%pnpinfo: _HID=none _UID=0 > dev.acpi_tz.0.%parent: acpi0 > dev.acpi_tz.1.%desc: Thermal Zone > dev.acpi_tz.1.%driver: acpi_tz > dev.acpi_tz.1.%location: handle=\_TZ_.TZS1 > dev.acpi_tz.1.%pnpinfo: _HID=none _UID=0 > dev.acpi_tz.1.%parent: acpi0 > dev.acpi_acad.0.%desc: AC Adapter > dev.acpi_acad.0.%driver: acpi_acad > dev.acpi_acad.0.%location: handle=\_SB_.PCI0.EC0_.ADP1 > dev.acpi_acad.0.%pnpinfo: _HID=ACPI0003 _UID=0 > dev.acpi_acad.0.%parent: acpi0 > dev.acpi_perf.0.%driver: acpi_perf > dev.acpi_perf.0.%parent: cpu0 > dev.acpi_perf.1.%driver: acpi_perf > dev.acpi_perf.1.%parent: cpu1 > dev.acpi_wmi.0.%desc: ACPI-WMI mapping > dev.acpi_wmi.0.%driver: acpi_wmi > dev.acpi_wmi.0.%location: handle=\_SB_.WMID > dev.acpi_wmi.0.%pnpinfo: _HID=PNP0C14 _UID=0 > dev.acpi_wmi.0.%parent: acpi0 > dev.acpi_hp.0.%desc: HP ACPI-WMI Mapping > dev.acpi_hp.0.%driver: acpi_hp > dev.acpi_hp.0.%location: handle=\_SB_.QLBD > dev.acpi_hp.0.%pnpinfo: _HID=HPQ0006 _UID=0 > dev.acpi_hp.0.%parent: acpi0 > dev.acpi_hp.0.wlan_enabled: 1 > dev.acpi_hp.0.wlan_radio: 1 > dev.acpi_hp.0.wlan_on_air: 1 > dev.acpi_hp.0.wlan_enable_if_radio_on: 0 > dev.acpi_hp.0.wlan_disable_if_radio_off: 0 > dev.acpi_hp.0.bt_enabled: 0 > dev.acpi_hp.0.bt_radio: 1 > dev.acpi_hp.0.bt_on_air: 0 > dev.acpi_hp.0.bt_enable_if_radio_on: 0 > dev.acpi_hp.0.bt_disable_if_radio_off: 0 > dev.acpi_hp.0.wwan_enabled: 0 > dev.acpi_hp.0.wwan_radio: 0 > dev.acpi_hp.0.wwan_on_air: 0 > dev.acpi_hp.0.wwan_enable_if_radio_on: 0 > dev.acpi_hp.0.wwan_disable_if_radio_off: 0 > dev.acpi_hp.0.als_enabled: 4 > dev.acpi_hp.0.display: 1 > dev.acpi_hp.0.hdd_temperature: 4 > dev.acpi_hp.0.is_docked: 4 > dev.acpi_hp.0.cmi_detail: 0 > > zeus# sysctl dev.acpi_hp.0.cmi_detail=7 > dev.acpi_hp.0.cmi_detail: 0 -> 7 > Can you send me the output you get when kldloading acpi_hp + the output of cat /dev/wmistat. In addition the output of acpidump -dt would be useful. It's possible that your laptop doesn't support CMI.