From owner-freebsd-acpi@freebsd.org Wed Sep 14 04:07:35 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA7F8BD80DE for ; Wed, 14 Sep 2016 04:07:35 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id BE4D7AF5; Wed, 14 Sep 2016 04:07:35 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id BD3B71462; Wed, 14 Sep 2016 04:07:35 +0000 (UTC) Date: Wed, 14 Sep 2016 04:07:35 +0000 From: Alexey Dokuchaev To: Michael Gmelin Cc: freebsd-acpi@freebsd.org Subject: Re: Patches to acpi_hp Message-ID: <20160914040735.GA18792@FreeBSD.org> References: <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> <4A4A0EF6.1080800@bindone.de> <25cb30906300943k4871313ao69595498c1758730@mail.gmail.com> <4A4A4C19.6000407@bindone.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4A4C19.6000407@bindone.de> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 04:07:35 -0000 On Tue, Jun 30, 2009 at 07:32:09PM +0200, Michael Gmelin wrote: > Can you send me the output you get when kldloading acpi_hp + the output > of cat /dev/wmistat0. It's possible that your laptop doesn't support CMI. > ... > it seems like your model doesn't support this feature, sorry. Hi Michael, What exactly indicates proper CMI support? I have a problem with acpi_hp(4) on ProBook 645 G1 (infamous ``driver bug: Unable to set devclass (class: ppc devname: (unknown))'' error), but it looks like all GUIDs listed inside the `acpi_hp.c' are there: $ cat /dev/wmistat0 | egrep '95F24279|5FB7F034|2D114B49' {5FB7F034-2C63-45E9-BE91-3D44E2C707E4} 1 NO WMAA NO NO AA {95F24279-4D7B-4334-9387-ACCDC67EF61C} 1 NO NO NO 0x80+ - {2D114B49-2DFB-4130-B8FE-4A3C09E75133} 247 NO NO NO NO BC Despite that "driver bug" message, /dev/hpcmi gets created, but reading it yields just a bunch (247 of them, like the number above) of blank lines, and issuing various sysctl(8) calls also does not work properly. $ sysctl dev.acpi_hp.0.hdd_temperature dev.acpi_hp.0.hdd_temperature: 4 <-- ??? what units are these? # sysctl dev.acpi_hp.0.wlan_enabled=1 dev.acpi_hp.0.wlan_enabled: 0 sysctl: dev.acpi_hp.0.wlan_enabled=1: Interrupted system call ./danfe From owner-freebsd-acpi@freebsd.org Thu Sep 15 15:12:23 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD276BDBA7F for ; Thu, 15 Sep 2016 15:12:23 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id CE966F16 for ; Thu, 15 Sep 2016 15:12:21 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: (qmail 13315 invoked by uid 89); 15 Sep 2016 15:05:38 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@194.97.158.70) by mail.grem.de with ESMTPA; 15 Sep 2016 15:05:38 -0000 Date: Thu, 15 Sep 2016 17:05:36 +0200 From: Michael Gmelin To: Alexey Dokuchaev Cc: freebsd-acpi@freebsd.org Subject: Re: Patches to acpi_hp Message-ID: <20160915170536.7b525e32@bsd64.grem.de> In-Reply-To: <20160914040735.GA18792@FreeBSD.org> References: <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> <4A4A0EF6.1080800@bindone.de> <25cb30906300943k4871313ao69595498c1758730@mail.gmail.com> <4A4A4C19.6000407@bindone.de> <20160914040735.GA18792@FreeBSD.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2016 15:12:23 -0000 On Wed, 14 Sep 2016 04:07:35 +0000 Alexey Dokuchaev wrote: > On Tue, Jun 30, 2009 at 07:32:09PM +0200, Michael Gmelin wrote: > > Can you send me the output you get when kldloading acpi_hp + the > > output of cat /dev/wmistat0. It's possible that your laptop > > doesn't support CMI. ... > > it seems like your model doesn't support this feature, sorry. > > Hi Michael, > > What exactly indicates proper CMI support? I have a problem with > acpi_hp(4) on ProBook 645 G1 (infamous ``driver bug: Unable to set > devclass (class: ppc devname: (unknown))'' error), but it looks like > all GUIDs listed inside the `acpi_hp.c' are there: > > $ cat /dev/wmistat0 | egrep '95F24279|5FB7F034|2D114B49' > {5FB7F034-2C63-45E9-BE91-3D44E2C707E4} 1 NO WMAA NO NO AA > {95F24279-4D7B-4334-9387-ACCDC67EF61C} 1 NO NO NO 0x80+ - > {2D114B49-2DFB-4130-B8FE-4A3C09E75133} 247 NO NO NO NO BC > > Despite that "driver bug" message, /dev/hpcmi gets created, but > reading it yields just a bunch (247 of them, like the number above) > of blank lines, and issuing various sysctl(8) calls also does not > work properly. > > $ sysctl dev.acpi_hp.0.hdd_temperature > dev.acpi_hp.0.hdd_temperature: 4 <-- ??? what units > are these? # sysctl dev.acpi_hp.0.wlan_enabled=1 > dev.acpi_hp.0.wlan_enabled: 0 > sysctl: dev.acpi_hp.0.wlan_enabled=1: Interrupted system call > Unfortunately my memory on this is pretty spotty at this point, so I would probably start at reading this again: http://h20331.www2.hp.com/Hpsub/downloads/cmi_whitepaper.pdf I still have the laptop around I used to write it, so I could test patches if necessary. Your best bet is probably to check if Linux supports your model and if yes, figure out what's wrong with our driver. -michael -- Michael Gmelin From owner-freebsd-acpi@freebsd.org Fri Sep 16 05:53:06 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C164DBDB175 for ; Fri, 16 Sep 2016 05:53:06 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B4E68B6F; Fri, 16 Sep 2016 05:53:06 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id B3BE016A3; Fri, 16 Sep 2016 05:53:06 +0000 (UTC) Date: Fri, 16 Sep 2016 05:53:06 +0000 From: Alexey Dokuchaev To: Michael Gmelin Cc: freebsd-acpi@freebsd.org Subject: Re: Patches to acpi_hp Message-ID: <20160916055306.GA49332@FreeBSD.org> References: <4A4A01F3.1080004@bindone.de> <25cb30906300525j650a601cr77f0740f56168e53@mail.gmail.com> <4A4A05FA.8000305@bindone.de> <25cb30906300537y5fae18afo7c34d5fda170fff3@mail.gmail.com> <25cb30906300554u4ef7e638naa0dfe51bac3e83f@mail.gmail.com> <4A4A0EF6.1080800@bindone.de> <25cb30906300943k4871313ao69595498c1758730@mail.gmail.com> <4A4A4C19.6000407@bindone.de> <20160914040735.GA18792@FreeBSD.org> <20160915170536.7b525e32@bsd64.grem.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160915170536.7b525e32@bsd64.grem.de> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 05:53:06 -0000 On Thu, Sep 15, 2016 at 05:05:36PM +0200, Michael Gmelin wrote: > Unfortunately my memory on this is pretty spotty at this point, so I > would probably start at reading this again: > > http://h20331.www2.hp.com/Hpsub/downloads/cmi_whitepaper.pdf Nice, thanks for the link. > I still have the laptop around I used to write it, so I could test > patches if necessary. Your best bet is probably to check if Linux > supports your model and if yes, figure out what's wrong with our driver. Sounds like a plan, will investigate. ./danfe