From owner-freebsd-acpi@FreeBSD.ORG Mon Aug 7 11:09:38 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 C233716A4DD for ; Mon, 7 Aug 2006 11:09:38 +0000 (UTC) (envelope-from arungnair@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB0F43D45 for ; Mon, 7 Aug 2006 11:09:37 +0000 (GMT) (envelope-from arungnair@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so1361888nfe for ; Mon, 07 Aug 2006 04:09:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RTV32yzo4pDktwW8hCdieHuTcoGvs8XTeesVXdKsXARvCv31nZwPU6G4Y0L2q2cdbZUu+BqU5C/SP0uB2Vz6uef80IIhrGCtMwHspWppSiNtO8l0G0DONSWLXOyShfyoGMJ4iFEReEx5gDGqXxyoDaV+0f+ZfnTpqdcKWPhWnmg= Received: by 10.78.193.5 with SMTP id q5mr2352460huf; Mon, 07 Aug 2006 04:09:36 -0700 (PDT) Received: by 10.78.183.18 with HTTP; Mon, 7 Aug 2006 04:09:36 -0700 (PDT) Message-ID: <3fa7d6a0608070409i6d524daao37c6fcdb4d9c5bef@mail.gmail.com> Date: Mon, 7 Aug 2006 16:39:36 +0530 From: "Arun G Nair" To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: IBM ThinkPAD R51 2887 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: Mon, 07 Aug 2006 11:09:38 -0000 Hi, I have a fairly new ThinkPad R51. I can't get ACPI working on it. In console when i do 'acpiconf -s 3' it suspends (monitor goes blank) and Fn+F4 resumes (monitor lights up) but the console is frozen. I can't type anything. I have to do a manual reboot after that. Am running FreeBSD 6.1 RELEASE. Has anyone got ACPI working on R51 (2887) ? Any help is appreciated. TIA. -Arun -- ...Keep Smiling... From owner-freebsd-acpi@FreeBSD.ORG Mon Aug 7 11:19:46 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 EC17F16A4DE for ; Mon, 7 Aug 2006 11:19:46 +0000 (UTC) (envelope-from arungnair@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60F8D43D46 for ; Mon, 7 Aug 2006 11:19:46 +0000 (GMT) (envelope-from arungnair@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so35633uge for ; Mon, 07 Aug 2006 04:19:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o1MXQrPfBhCzLF4mFTVo5FFcY1+f7T0JI/c4xrODH6wxjk5YFQvmHka0vS8jEct3DDsTdkdxqZQlLgtfDUpIRlW2lEZ13n4C/IgJwacuASyFAA4hv2uNqCYqvclh6+8ddSj7sJs8f+JuEa8KeCaQLRB1MM4CKGtplbA+QGJTLg0= Received: by 10.78.132.12 with SMTP id f12mr2342795hud; Mon, 07 Aug 2006 04:19:44 -0700 (PDT) Received: by 10.78.183.18 with HTTP; Mon, 7 Aug 2006 04:19:39 -0700 (PDT) Message-ID: <3fa7d6a0608070419j653317a2r244c09f187d2859e@mail.gmail.com> Date: Mon, 7 Aug 2006 16:49:39 +0530 From: "Arun G Nair" To: freebsd-acpi@freebsd.org In-Reply-To: <3fa7d6a0608070409i6d524daao37c6fcdb4d9c5bef@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3fa7d6a0608070409i6d524daao37c6fcdb4d9c5bef@mail.gmail.com> Subject: Re: IBM ThinkPAD R51 2887 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: Mon, 07 Aug 2006 11:19:47 -0000 Forgot to post the acpidump - http://rootshell.be/~arun/tmp/thinkpad.r51.free61.asl $ sysctl hw.acpi hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.reset_video: 1 hw.acpi.cpu.cx_supported: C1/1 C2/1 C3/85 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% 0.00% 0.00% hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.tz0.temperature: 55.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 86.5C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 94.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.battery.life: 100 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.acline: 1 From owner-freebsd-acpi@FreeBSD.ORG Mon Aug 7 11:36:55 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 7A26616A505 for ; Mon, 7 Aug 2006 11:36:55 +0000 (UTC) (envelope-from arungnair@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42B0843D45 for ; Mon, 7 Aug 2006 11:36:54 +0000 (GMT) (envelope-from arungnair@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so40315uge for ; Mon, 07 Aug 2006 04:36:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NriAAQhHmoI8EETj/mVo4yWBz7R5Fe77iDOOreGc3qtrxLwknJdcpMdoTNA/e4SS9BdZGC8tZYDps0+farEQ/OsJs0EViasL2nJWezdXWkX5BfDqbRWEPEerOby1Z/N4Fm6X2snJKHVFAlJCRQ5gFZbiSk+97HPi/43RzQlTmeM= Received: by 10.78.132.12 with SMTP id f12mr2356345hud; Mon, 07 Aug 2006 04:36:53 -0700 (PDT) Received: by 10.78.183.18 with HTTP; Mon, 7 Aug 2006 04:36:53 -0700 (PDT) Message-ID: <3fa7d6a0608070436u51f4f210m2db891df825a63e@mail.gmail.com> Date: Mon, 7 Aug 2006 17:06:53 +0530 From: "Arun G Nair" To: freebsd-acpi@freebsd.org In-Reply-To: <3fa7d6a0608070419j653317a2r244c09f187d2859e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3fa7d6a0608070409i6d524daao37c6fcdb4d9c5bef@mail.gmail.com> <3fa7d6a0608070419j653317a2r244c09f187d2859e@mail.gmail.com> Subject: Re: IBM ThinkPAD R51 2887 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: Mon, 07 Aug 2006 11:36:55 -0000 Hi, I got suspend/resume to work in console mode with acpi_video_load="YES" in /boot/loader.conf and hw.acpi.reset_video=0 and hw.sysacons.sc_no_suspend_vtswitch=1 in /etc/sysctl.conf . I got it from the archives. But when I start X, after a suspend-resume from console, my mouse is stuck. From owner-freebsd-acpi@FreeBSD.ORG Mon Aug 7 11:50:16 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 82D5416A4E7 for ; Mon, 7 Aug 2006 11:50:16 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from ns2.pil.dk (ns2.pil.dk [195.41.47.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12EDA43D49 for ; Mon, 7 Aug 2006 11:50:02 +0000 (GMT) (envelope-from henrik@brixandersen.dk) Received: from osgiliath.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by ns2.pil.dk (Postfix) with ESMTP id 4478B7BA381 for ; Mon, 7 Aug 2006 13:50:00 +0200 (CEST) Received: by osgiliath.brixandersen.dk (Postfix, from userid 1000) id A6DD3ED0; Mon, 7 Aug 2006 13:49:59 +0200 (CEST) Date: Mon, 7 Aug 2006 13:49:59 +0200 From: Henrik Brix Andersen To: freebsd-acpi@freebsd.org Message-ID: <20060807114959.GA32613@osgiliath.opasia.dk> Mail-Followup-To: freebsd-acpi@freebsd.org References: <3fa7d6a0608070409i6d524daao37c6fcdb4d9c5bef@mail.gmail.com> <3fa7d6a0608070419j653317a2r244c09f187d2859e@mail.gmail.com> <3fa7d6a0608070436u51f4f210m2db891df825a63e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <3fa7d6a0608070436u51f4f210m2db891df825a63e@mail.gmail.com> X-PGP-Key: http://dev.gentoo.org/~brix/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.11 Subject: Re: IBM ThinkPAD R51 2887 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: Mon, 07 Aug 2006 11:50:16 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 07, 2006 at 05:06:53PM +0530, Arun G Nair wrote: > I got suspend/resume to work in console mode with > acpi_video_load=3D"YES" in /boot/loader.conf and hw.acpi.reset_video=3D0 > and hw.sysacons.sc_no_suspend_vtswitch=3D1 in /etc/sysctl.conf . I got > it from the archives. But when I start X, after a suspend-resume from > console, my mouse is stuck. Did you try setting hint.psm.0.flags=3D"0x2000" in /boot/device.hints? Regards, Brix --=20 Henrik Brix Andersen --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: GnuPG signed iD8DBQFE1yjmv+Q4flTiePgRAmHOAJ0S+E4loTB3xHO+zVEWsuf3T1Ix7gCgohLg 8yiXEoIBSouKOKWAeNEoQQw= =zEq5 -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From owner-freebsd-acpi@FreeBSD.ORG Mon Aug 7 11:56:34 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 1206216A4DD for ; Mon, 7 Aug 2006 11:56:34 +0000 (UTC) (envelope-from arungnair@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72A7243D45 for ; Mon, 7 Aug 2006 11:56:33 +0000 (GMT) (envelope-from arungnair@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so1377479nfe for ; Mon, 07 Aug 2006 04:56:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZTRupLqODxLMVDgp8Qt+LYn9s5QDOw1IT3oYsp17TaN5M3viS7kNuhDngLmUgkhN5zrOtVr46sOLOzmaiF9Ljb+RkbhusBzq5SXcJj7Z2HkmoJ3Yc966nwbYcK/5/JXaaN0AfkSd/8F0ISIUwvRLDSZBg3h0vPY3CNi9dp4dg7o= Received: by 10.78.147.3 with SMTP id u3mr2361729hud; Mon, 07 Aug 2006 04:56:32 -0700 (PDT) Received: by 10.78.183.18 with HTTP; Mon, 7 Aug 2006 04:56:32 -0700 (PDT) Message-ID: <3fa7d6a0608070456k105a52em540707f24785136e@mail.gmail.com> Date: Mon, 7 Aug 2006 17:26:32 +0530 From: "Arun G Nair" To: freebsd-acpi@freebsd.org In-Reply-To: <20060807114959.GA32613@osgiliath.opasia.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3fa7d6a0608070409i6d524daao37c6fcdb4d9c5bef@mail.gmail.com> <3fa7d6a0608070419j653317a2r244c09f187d2859e@mail.gmail.com> <3fa7d6a0608070436u51f4f210m2db891df825a63e@mail.gmail.com> <20060807114959.GA32613@osgiliath.opasia.dk> Subject: Re: IBM ThinkPAD R51 2887 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: Mon, 07 Aug 2006 11:56:34 -0000 Hi, Ah..it worked. Thanx for that tip. :) But after setting the above things, I get an error while starting X (EE) GARTInit: Unable to open /dev/agpgart (No such file or directory) although X starts without any problems. Also I see these on console after I get out of X can't re-use a leaf (directional_scrolls)! can't re-use a leaf (low_speed_threshold)! can't re-use a leaf (min_movement)! can't re-use a leaf (squelch_level)! Any ideas ? BTW already had hw.psm.synaptics_support="1" in /boot/loader.conf. On 8/7/06, Henrik Brix Andersen wrote: > On Mon, Aug 07, 2006 at 05:06:53PM +0530, Arun G Nair wrote: > > I got suspend/resume to work in console mode with > > acpi_video_load="YES" in /boot/loader.conf and hw.acpi.reset_video=0 > > and hw.sysacons.sc_no_suspend_vtswitch=1 in /etc/sysctl.conf . I got > > it from the archives. But when I start X, after a suspend-resume from > > console, my mouse is stuck. > > Did you try setting hint.psm.0.flags="0x2000" in /boot/device.hints? > > Regards, > Brix From owner-freebsd-acpi@FreeBSD.ORG Mon Aug 7 18:09:54 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 3A2A216A4DD; Mon, 7 Aug 2006 18:09:54 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE8B043DDB; Mon, 7 Aug 2006 18:08:35 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k77I8O9A029720; Mon, 7 Aug 2006 13:08:24 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44D781AA.3000508@centtech.com> Date: Mon, 07 Aug 2006 13:08:42 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Bruno Ducrot References: <44B6401F.8050507@centtech.com> <44B641F2.2020500@centtech.com> <32884.69.93.78.27.1152831695.squirrel@69.93.78.27> <34247.69.93.78.27.1152835592.squirrel@69.93.78.27> <39062.69.93.78.27.1152857140.squirrel@69.93.78.27> <20060715183804.GN17014@poupinou.org> <46050.69.93.78.27.1153011683.squirrel@69.93.78.27> <20060716032130.GP17014@poupinou.org> In-Reply-To: <20060716032130.GP17014@poupinou.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1639/Mon Aug 7 08:34:09 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: ch to fix this Re: Dell/acpi_video hw.acpi.video.out0 is probably a bug, and an important one. Re: Dell laptops 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: Mon, 07 Aug 2006 18:09:54 -0000 On 07/15/06 22:21, Bruno Ducrot wrote: > On Sat, Jul 15, 2006 at 09:01:23PM -0400, john@utzweb.net wrote: >>> Hi John, >> Hello Bruno >> >>> On Fri, Jul 14, 2006 at 02:05:40AM -0400, john@utzweb.net wrote: >>>> acpi_video.c expects the lcd to be identified as 0x0110, but my Dell >>>> Latitude C400 (and probably others) id's the lcd at 0x0400: >>>> >>>> Device (LCD) >>>> { >>>> Method (_ADR, 0, NotSerialized) >>>> { >>>> Return (0x0400) >>>> } >>>> >>>> >>>> so, acpi_video needs to account for this. >>>> >>>> >>>> got this sorted, and now the display turns back on, here's the patch, i >>>> already send-pr'd it >>> Youre somewhat right, but your patch is wrong. >> Thankyou for taking interest and reviewing my analysis and patch. >> >> I would beg to differ with your assertions concerning the patch's >> correctness, because the operation you mention below is handled a few >> lines above the patch. >> >>> Actually you have to check if ((adr & 0x0400) == 0x0400). >> the & occurs at the top of the switch, here's the destroy case: > > But with the *WRONG* mask. It used to be 0xffff with ACPI v2, but > shall now be 0x0f00 with ACPI v3. > > If for example the _ADR is 0x0401, then your patch won't work. Same > if for example the _ADR is 0x0101, which identify a CRT monitor, etc. > > The only one value that must be kept for backward compatility is > (adr & 0xffff) == 0x0110 which is for an internal Flat Panel, instead > of a CRT monitor if we take the new specification into account without > this very specific value. > > BTW I compiled and found some stupid mistakes. I also changed my DSDT > such that I'm pretty sure it will work for you, and for others where > the _ADR may be 0x04xx as well. > > Please consider that one: > > Index: acpi_video.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/acpica/acpi_video.c,v > retrieving revision 1.12 > diff -u -p -r1.12 acpi_video.c > --- acpi_video.c 20 Dec 2005 22:42:16 -0000 1.12 > +++ acpi_video.c 16 Jul 2006 03:11:24 -0000 > @@ -110,9 +110,12 @@ static void vo_set_device_state(ACPI_HAN > > /* _DOD and subdev's _ADR */ > #define DOD_DEVID_MASK 0xffff > +#define DOD_DEVID_TYPE 0x0f00 > #define DOD_DEVID_MONITOR 0x0100 > -#define DOD_DEVID_PANEL 0x0110 > #define DOD_DEVID_TV 0x0200 > +#define DOD_DEVID_DIGITAL 0x0300 > +#define DOD_DEVID_PANEL 0x0400 > +#define DOD_DEVID_PANEL_COMPAT 0x0110 > #define DOD_BIOS (1 << 16) > #define DOD_NONVGA (1 << 17) > #define DOD_HEAD_ID_SHIFT 18 > @@ -409,27 +412,37 @@ acpi_video_vo_init(UINT32 adr) > struct acpi_video_output_queue *voqh; > > ACPI_SERIAL_ASSERT(video); > - switch (adr & DOD_DEVID_MASK) { > - case DOD_DEVID_MONITOR: > - desc = "CRT monitor"; > - type = "crt"; > - voqh = &crt_units; > - break; > - case DOD_DEVID_PANEL: > + if ((adr & DOD_DEVID_MASK) == DOD_DEVID_PANEL_COMPAT) { > desc = "LCD panel"; > type = "lcd"; > voqh = &lcd_units; > - break; > - case DOD_DEVID_TV: > - desc = "TV"; > - type = "tv"; > - voqh = &tv_units; > - break; > - default: > - desc = "unknown output"; > - type = "out"; > - voqh = &other_units; > - } > + } else > + switch (adr & DOD_DEVID_TYPE) { > + case DOD_DEVID_MONITOR: > + desc = "CRT monitor"; > + type = "crt"; > + voqh = &crt_units; > + break; > + case DOD_DEVID_DIGITAL: > + desc = "Digital monitor"; > + type = "crt"; > + voqh = &crt_units; > + break; > + case DOD_DEVID_PANEL: > + desc = "LCD panel"; > + type = "lcd"; > + voqh = &lcd_units; > + break; > + case DOD_DEVID_TV: > + desc = "TV"; > + type = "tv"; > + voqh = &tv_units; > + break; > + default: > + desc = "unknown output"; > + type = "out"; > + voqh = &other_units; > + } > > n = 0; > vn = vp = NULL; > @@ -553,19 +566,25 @@ acpi_video_vo_destroy(struct acpi_video_ > if (vo->vo_levels != NULL) > AcpiOsFree(vo->vo_levels); > > - switch (vo->adr & DOD_DEVID_MASK) { > - case DOD_DEVID_MONITOR: > - voqh = &crt_units; > - break; > - case DOD_DEVID_PANEL: > + if ((vo->adr & 0xffff) == DOD_DEVID_PANEL_COMPAT) > voqh = &lcd_units; > - break; > - case DOD_DEVID_TV: > - voqh = &tv_units; > - break; > - default: > - voqh = &other_units; > - } > + else > + switch (vo->adr & DOD_DEVID_TYPE) { > + case DOD_DEVID_MONITOR: > + voqh = &crt_units; > + break; > + case DOD_DEVID_DIGITAL: > + voqh = &crt_units; > + break; > + case DOD_DEVID_PANEL: > + voqh = &lcd_units; > + break; > + case DOD_DEVID_TV: > + voqh = &tv_units; > + break; > + default: > + voqh = &other_units; > + } > STAILQ_REMOVE(voqh, vo, acpi_video_output, vo_unit.next); > free(vo, M_ACPIVIDEO); > } > > > Cheers, > Did this ever get committed? If so, MFC'ed? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Tue Aug 8 01:35:03 2006 Return-Path: X-Original-To: acpi@freebsd.org 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 70CF916A4DA for ; Tue, 8 Aug 2006 01:35:03 +0000 (UTC) (envelope-from nate@root.org) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEC5143D7B for ; Tue, 8 Aug 2006 01:34:59 +0000 (GMT) (envelope-from nate@root.org) X-ORBL: [71.139.3.149] Received: from [10.0.5.51] (ppp-71-139-3-149.dsl.snfc21.pacbell.net [71.139.3.149]) by ylpvm29.prodigy.net (8.13.7 out spool5000 dk/8.13.7) with ESMTP id k781Ydw8016894 for ; Mon, 7 Aug 2006 21:34:40 -0400 Message-ID: <44D7EA2F.7010401@root.org> Date: Mon, 07 Aug 2006 18:34:39 -0700 From: Nate Lawson User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [Fwd: cvs commit: src/sys/dev/acpica acpi_dock.c] 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, 08 Aug 2006 01:35:03 -0000 If you have a docking device, please load acpi_dock.ko and test this change. -------- Original Message -------- Subject: cvs commit: src/sys/dev/acpica acpi_dock.c Date: Tue, 8 Aug 2006 01:33:17 +0000 (UTC) From: Nate Lawson To: njl@FreeBSD.ORG njl 2006-08-08 01:33:03 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_dock.c Log: Remove the global dock variable. Each dock device should be able to function independently. This change is not only load-tested since I don't have hardware that supports acpi_dock. Clean up comments and a name a few constants. Revision Changes Path 1.4 +33 -38 src/sys/dev/acpica/acpi_dock.c -- Nate From owner-freebsd-acpi@FreeBSD.ORG Tue Aug 8 08:12:28 2006 Return-Path: X-Original-To: acpi@freebsd.org 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 B7B1716A4E5; Tue, 8 Aug 2006 08:12:28 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59B4143D49; Tue, 8 Aug 2006 08:12:27 +0000 (GMT) (envelope-from vova@sw.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GAMhO-0000hF-K3; Tue, 08 Aug 2006 12:12:26 +0400 From: Vladimir Grebenschikov To: current Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Tue, 08 Aug 2006 12:12:25 +0400 Message-Id: <1155024745.2601.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: acpi@freebsd.org Subject: ACPI power source detection 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, 08 Aug 2006 08:12:28 -0000 Hi Something broken with ACPI power profiles on recent (yesterday) 7-CURRENT Below configuration, that always works fine for me, now lead to instant screen brightness blinking while activity. # cat /etc/devd/acpi_power.conf notify 20 { match "system" "ACPI"; match "subsystem" "ACAD"; action "/usr/local/etc/acpi_power $notify"; action "/etc/rc.d/power_profile $notify"; }; # cat /usr/local/etc/acpi_power #!/bin/sh case "$1" in 0x01) sysctl dev.acpi_sony.0.brightness=8 ;; 0x00) sysctl dev.acpi_sony.0.brightness=2 ;; esac Any hints about this case ? -- Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com From owner-freebsd-acpi@FreeBSD.ORG Wed Aug 9 19:29:24 2006 Return-Path: X-Original-To: acpi@freebsd.org 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 A9B6D16A4DD; Wed, 9 Aug 2006 19:29:24 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 134B843D46; Wed, 9 Aug 2006 19:29:23 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost.int.ru [127.0.0.1] (may be forged)) by mp2.macomnet.net (8.13.7/8.13.3) with ESMTP id k79JTLcp005313; Wed, 9 Aug 2006 23:29:22 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Wed, 9 Aug 2006 23:29:21 +0400 (MSD) From: Maxim Konovalov To: Vladimir Grebenschikov In-Reply-To: <1155024745.2601.2.camel@localhost> Message-ID: <20060809232722.C4889@mp2.macomnet.net> References: <1155024745.2601.2.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: acpi@freebsd.org, current Subject: Re: ACPI power source detection 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: Wed, 09 Aug 2006 19:29:24 -0000 On Tue, 8 Aug 2006, 12:12+0400, Vladimir Grebenschikov wrote: > Hi > > Something broken with ACPI power profiles on recent (yesterday) > 7-CURRENT > > Below configuration, that always works fine for me, now lead to instant > screen brightness blinking while activity. > > # cat /etc/devd/acpi_power.conf > notify 20 { > match "system" "ACPI"; > match "subsystem" "ACAD"; > action "/usr/local/etc/acpi_power $notify"; > action "/etc/rc.d/power_profile $notify"; > }; > > # cat /usr/local/etc/acpi_power > #!/bin/sh > > case "$1" in > 0x01) > sysctl dev.acpi_sony.0.brightness=8 > ;; > 0x00) > sysctl dev.acpi_sony.0.brightness=2 > ;; > esac > > Any hints about this case ? IIRC you have the same notebook I do (sony pcg505bx). The config above works fine for me on week old -current. Will try fresh -current in a couple of days. -- Maxim Konovalov From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 10 04:46:02 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 C7D9016A4DE for ; Thu, 10 Aug 2006 04:46:02 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id F333A43D46 for ; Thu, 10 Aug 2006 04:46:01 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=[192.168.0.18]) by publicd.ub.mng.net with esmtpa (Exim 4.61 (FreeBSD)) (envelope-from ) id 1GB2Qc-00062b-LP; Thu, 10 Aug 2006 13:45:54 +0900 Message-ID: <44DABA02.80108@micom.mng.net> Date: Thu, 10 Aug 2006 13:45:54 +0900 From: Ganbold User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: acpi suspend/resume problem in Dell D620 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: Thu, 10 Aug 2006 04:46:02 -0000 Hi, # uname -an FreeBSD devil.micom.mng.net 6.1-STABLE FreeBSD 6.1-STABLE #7: Tue Aug 8 12:52:48 ULAST 2006 tsgan@devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL i386 dmesg: http://www.mnbsd.org/ftp/d620_dmesg.txt acpidump: http://www.mnbsd.org/ftp/d620.asl # sysctl hw.acpi hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: S3 hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 1 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_supported: C1/1 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% hw.acpi.acline: 1 hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 hw.acpi.video.tv0.active: 0 hw.acpi.video.crt0.active: 0 hw.acpi.video.out0.active: 0 hw.acpi.video.out1.active: 0 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 57.5C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 126.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 When I try to suspend the system, it suspends (acpiconf -s 3), but when I try to resume it panics: ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! ioapic_suspend: not implemented! panic: pmap_invalidate_page: interrupts disabled cpuid = 0 KDB: enter: panic Is it known problem? How do I make resume work with acpi? I'm willing to test any patches. Booting without ACPI stops with fatal trap: http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027471.html thanks, Ganbold From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 10 04:57:12 2006 Return-Path: X-Original-To: freebsd-acpi@FreeBSD.org 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 B385F16A4DE for ; Thu, 10 Aug 2006 04:57:12 +0000 (UTC) (envelope-from jodyaloha@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 152EA43D49 for ; Thu, 10 Aug 2006 04:57:11 +0000 (GMT) (envelope-from jodyaloha@gmail.com) Received: by nf-out-0910.google.com with SMTP id c31so382117nfb for ; Wed, 09 Aug 2006 21:57:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=nrGcbmWngoIC4xVrloiKwpsmiFeKoO69Gwk1+2Te5ntr0UZvQn97yA5xV1ZD8HouazLBF69h+yANYzwx5zJ6WYi7GOiM9+M/p53f41MfY87Z2TmwYQlNFWGogH7ehEmNoi+vnv1kVTUZi7bCCoDhoW3RpHp1eOqR92rLpd6HKXc= Received: by 10.82.132.4 with SMTP id f4mr260770bud; Wed, 09 Aug 2006 21:57:10 -0700 (PDT) Received: by 10.82.127.19 with HTTP; Wed, 9 Aug 2006 21:57:10 -0700 (PDT) Message-ID: <88a7d7740608092157l42969564o369e3ddcecb770e6@mail.gmail.com> Date: Wed, 9 Aug 2006 18:57:10 -1000 From: "Jody Morgan" To: freebsd-acpi@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Help 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: Thu, 10 Aug 2006 04:57:12 -0000 Hi, I tried to install a Windows 98SE driver for a Scandisk Mini Cruizer flash drive. In the process my computer now does not boot up correctly. Under the Systems Properties there is a yellow circled exclamation point next to: Advanced Configuration and Power Interface (ACPI) BIOS Under General it states: Device Status: Windows could not load the driver for this device because the computer is reporting 2 ACPI.Sys bus types. (Code 2) Contact your computer manufacturer to get an updated BIOS for your computer. I have an Intel Desktop Board D845GVAD2. I'm not sure what to do next. My computer no longer "sees" the CDrom drive, so I can't use the initial "Intel Express Installer CD". The computer is not connected to the internet. It can see the "A" flappy drive. Thanks for your help! Jody From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 10 09:16:20 2006 Return-Path: X-Original-To: acpi@freebsd.org 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 EDE5016A4E0; Thu, 10 Aug 2006 09:16:20 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1DB43D49; Thu, 10 Aug 2006 09:16:19 +0000 (GMT) (envelope-from vova@sw.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GB6eF-00013d-U7; Thu, 10 Aug 2006 13:16:15 +0400 From: Vladimir Grebenschikov To: Maxim Konovalov In-Reply-To: <20060809232722.C4889@mp2.macomnet.net> References: <1155024745.2601.2.camel@localhost> <20060809232722.C4889@mp2.macomnet.net> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 10 Aug 2006 13:16:14 +0400 Message-Id: <1155201374.1526.19.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: acpi@freebsd.org, current Subject: Re: ACPI power source detection 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: Thu, 10 Aug 2006 09:16:21 -0000 =F7 =D3=D2, 09/08/2006 =D7 23:29 +0400, Maxim Konovalov =D0=C9=DB=C5=D4: > > Something broken with ACPI power profiles on recent (yesterday) > > 7-CURRENT > > > > Below configuration, that always works fine for me, now lead to instant > > screen brightness blinking while activity. > IIRC you have the same notebook I do (sony pcg505bx).=20 not same, pcg-Z1WA > The config above works fine for me on week old -current. Will try fresh = -current > in a couple of days. Problem was solved for me, it is hardware problem, looks like 16V wire from power supply has something like bad (not broken!) contact - lid on power connector lights, everything seems work ok, but ACPI reports AC multiple AC connections/disconnections (many times per second). If I place wire in another configuration - everything works ok. Sorry for false alert. I'll repair power supply cord. --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 10 09:25:09 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 60B7F16A4DF for ; Thu, 10 Aug 2006 09:25:09 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from elise.stf.rewt.org.uk (elise.stf.rewt.org.uk [82.152.108.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA15943D46 for ; Thu, 10 Aug 2006 09:25:08 +0000 (GMT) (envelope-from joe@joeholden.co.uk) Received: from [85.118.152.249] (ot-1002.operatelecom.com [85.118.152.249] (may be forged)) (authenticated bits=0) by elise.stf.rewt.org.uk (8.13.7/8.13.4) with ESMTP id k7A9PkFL037050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Aug 2006 10:25:49 +0100 (BST) (envelope-from joe@joeholden.co.uk) Message-ID: <44DAFB5D.9080308@joeholden.co.uk> Date: Thu, 10 Aug 2006 10:24:45 +0100 From: Joe Holden Organization: joe@joeholden.co.uk User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Jody Morgan References: <88a7d7740608092157l42969564o369e3ddcecb770e6@mail.gmail.com> In-Reply-To: <88a7d7740608092157l42969564o369e3ddcecb770e6@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: Help 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: Thu, 10 Aug 2006 09:25:09 -0000 Jody Morgan wrote: > Hi, > > I tried to install a Windows 98SE driver for a Scandisk Mini Cruizer > flash > drive. > > In the process my computer now does not boot up correctly. > > Under the Systems Properties there is a yellow circled exclamation point > next to: Advanced Configuration and Power Interface (ACPI) BIOS > > Under General it states: Device Status: > > Windows could not load the driver for this device because the computer is > reporting 2 ACPI.Sys bus types. (Code 2) > Contact your computer manufacturer to get an updated BIOS for your > computer. > > I have an Intel Desktop Board D845GVAD2. > > I'm not sure what to do next. My computer no longer "sees" the CDrom > drive, > so I can't use the initial "Intel Express Installer CD". The computer is > not connected to the internet. It can see the "A" flappy drive. > > Thanks for your help! > > Jody > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" *feeds the troll* Ta, J From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 10 10:29:59 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 0E48116A4DE; Thu, 10 Aug 2006 10:29:59 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61E6343D45; Thu, 10 Aug 2006 10:29:58 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1GB7nH-0003Mt-00; Thu, 10 Aug 2006 12:29:39 +0200 Date: Thu, 10 Aug 2006 12:29:39 +0200 To: Eric Anderson Message-ID: <20060810102939.GA4945@poupinou.org> References: <44B641F2.2020500@centtech.com> <32884.69.93.78.27.1152831695.squirrel@69.93.78.27> <34247.69.93.78.27.1152835592.squirrel@69.93.78.27> <39062.69.93.78.27.1152857140.squirrel@69.93.78.27> <20060715183804.GN17014@poupinou.org> <46050.69.93.78.27.1153011683.squirrel@69.93.78.27> <20060716032130.GP17014@poupinou.org> <44D781AA.3000508@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44D781AA.3000508@centtech.com> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: ch to fix this Re: Dell/acpi_video hw.acpi.video.out0 is probably a bug, and an important one. Re: Dell laptops 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: Thu, 10 Aug 2006 10:29:59 -0000 On Mon, Aug 07, 2006 at 01:08:42PM -0500, Eric Anderson wrote: > On 07/15/06 22:21, Bruno Ducrot wrote: > >On Sat, Jul 15, 2006 at 09:01:23PM -0400, john@utzweb.net wrote: > >>>Hi John, > >>Hello Bruno > >> > >>>On Fri, Jul 14, 2006 at 02:05:40AM -0400, john@utzweb.net wrote: > >>>>acpi_video.c expects the lcd to be identified as 0x0110, but my Dell > >>>>Latitude C400 (and probably others) id's the lcd at 0x0400: > >>>> > >>>>Device (LCD) > >>>> { > >>>> Method (_ADR, 0, NotSerialized) > >>>> { > >>>> Return (0x0400) > >>>> } > >>>> > >>>> > >>>>so, acpi_video needs to account for this. > >>>> > >>>> > >>>>got this sorted, and now the display turns back on, here's the patch, i > >>>>already send-pr'd it > >>>Youre somewhat right, but your patch is wrong. > >>Thankyou for taking interest and reviewing my analysis and patch. > >> > >>I would beg to differ with your assertions concerning the patch's > >>correctness, because the operation you mention below is handled a few > >>lines above the patch. > >> > >>> Actually you have to check if ((adr & 0x0400) == 0x0400). > >>the & occurs at the top of the switch, here's the destroy case: > > > >But with the *WRONG* mask. It used to be 0xffff with ACPI v2, but > >shall now be 0x0f00 with ACPI v3. > > > >If for example the _ADR is 0x0401, then your patch won't work. Same > >if for example the _ADR is 0x0101, which identify a CRT monitor, etc. > > > >The only one value that must be kept for backward compatility is > >(adr & 0xffff) == 0x0110 which is for an internal Flat Panel, instead > >of a CRT monitor if we take the new specification into account without > >this very specific value. > > > >BTW I compiled and found some stupid mistakes. I also changed my DSDT > >such that I'm pretty sure it will work for you, and for others where > >the _ADR may be 0x04xx as well. > > > >Please consider that one: > > > >Index: acpi_video.c > >=================================================================== > >RCS file: /home/ncvs/src/sys/dev/acpica/acpi_video.c,v > >retrieving revision 1.12 > >diff -u -p -r1.12 acpi_video.c > >--- acpi_video.c 20 Dec 2005 22:42:16 -0000 1.12 > >+++ acpi_video.c 16 Jul 2006 03:11:24 -0000 > >@@ -110,9 +110,12 @@ static void vo_set_device_state(ACPI_HAN > > > > /* _DOD and subdev's _ADR */ > > #define DOD_DEVID_MASK 0xffff > >+#define DOD_DEVID_TYPE 0x0f00 > > #define DOD_DEVID_MONITOR 0x0100 > >-#define DOD_DEVID_PANEL 0x0110 > > #define DOD_DEVID_TV 0x0200 > >+#define DOD_DEVID_DIGITAL 0x0300 > >+#define DOD_DEVID_PANEL 0x0400 > >+#define DOD_DEVID_PANEL_COMPAT 0x0110 > > #define DOD_BIOS (1 << 16) > > #define DOD_NONVGA (1 << 17) > > #define DOD_HEAD_ID_SHIFT 18 > >@@ -409,27 +412,37 @@ acpi_video_vo_init(UINT32 adr) > > struct acpi_video_output_queue *voqh; > > > > ACPI_SERIAL_ASSERT(video); > >- switch (adr & DOD_DEVID_MASK) { > >- case DOD_DEVID_MONITOR: > >- desc = "CRT monitor"; > >- type = "crt"; > >- voqh = &crt_units; > >- break; > >- case DOD_DEVID_PANEL: > >+ if ((adr & DOD_DEVID_MASK) == DOD_DEVID_PANEL_COMPAT) { > > desc = "LCD panel"; > > type = "lcd"; > > voqh = &lcd_units; > >- break; > >- case DOD_DEVID_TV: > >- desc = "TV"; > >- type = "tv"; > >- voqh = &tv_units; > >- break; > >- default: > >- desc = "unknown output"; > >- type = "out"; > >- voqh = &other_units; > >- } > >+ } else > >+ switch (adr & DOD_DEVID_TYPE) { > >+ case DOD_DEVID_MONITOR: > >+ desc = "CRT monitor"; > >+ type = "crt"; > >+ voqh = &crt_units; > >+ break; > >+ case DOD_DEVID_DIGITAL: > >+ desc = "Digital monitor"; > >+ type = "crt"; > >+ voqh = &crt_units; > >+ break; > >+ case DOD_DEVID_PANEL: > >+ desc = "LCD panel"; > >+ type = "lcd"; > >+ voqh = &lcd_units; > >+ break; > >+ case DOD_DEVID_TV: > >+ desc = "TV"; > >+ type = "tv"; > >+ voqh = &tv_units; > >+ break; > >+ default: > >+ desc = "unknown output"; > >+ type = "out"; > >+ voqh = &other_units; > >+ } > > > > n = 0; > > vn = vp = NULL; > >@@ -553,19 +566,25 @@ acpi_video_vo_destroy(struct acpi_video_ > > if (vo->vo_levels != NULL) > > AcpiOsFree(vo->vo_levels); > > > >- switch (vo->adr & DOD_DEVID_MASK) { > >- case DOD_DEVID_MONITOR: > >- voqh = &crt_units; > >- break; > >- case DOD_DEVID_PANEL: > >+ if ((vo->adr & 0xffff) == DOD_DEVID_PANEL_COMPAT) > > voqh = &lcd_units; > >- break; > >- case DOD_DEVID_TV: > >- voqh = &tv_units; > >- break; > >- default: > >- voqh = &other_units; > >- } > >+ else > >+ switch (vo->adr & DOD_DEVID_TYPE) { > >+ case DOD_DEVID_MONITOR: > >+ voqh = &crt_units; > >+ break; > >+ case DOD_DEVID_DIGITAL: > >+ voqh = &crt_units; > >+ break; > >+ case DOD_DEVID_PANEL: > >+ voqh = &lcd_units; > >+ break; > >+ case DOD_DEVID_TV: > >+ voqh = &tv_units; > >+ break; > >+ default: > >+ voqh = &other_units; > >+ } > > STAILQ_REMOVE(voqh, vo, acpi_video_output, vo_unit.next); > > free(vo, M_ACPIVIDEO); > > } > > > > > >Cheers, > > > > > Did this ever get committed? If so, MFC'ed? > > Not yet. I thought to add more acpi 3.0 stuff onto acpi_video first, but it might be better indeed to first commit those bits first. Actually this will be the patch written by Hiroki Sato (see PR 100271). -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 10 13:48:58 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 50EC716A503 for ; Thu, 10 Aug 2006 13:48:58 +0000 (UTC) (envelope-from jamesfrancistoy@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAAF143D49 for ; Thu, 10 Aug 2006 13:48:56 +0000 (GMT) (envelope-from jamesfrancistoy@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so630123nfe for ; Thu, 10 Aug 2006 06:48:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RmZhrBwySIhzuTHhd/fm+vf4j88YjJUwaw0Sv3BEFuOlJpjuz/Y6sJiSAsFgt5nCJ8q0PwOergRI2ab3F7Gtr4vxFb4M5mTyBvphI3bfePRXmqFcxXQ7khEY4k6nfZ02KWtYLt7QdeUT8+PnGEYDYKAIDLD+7PCIDXHz2na7Z/4= Received: by 10.78.123.4 with SMTP id v4mr1282827huc; Thu, 10 Aug 2006 06:48:46 -0700 (PDT) Received: by 10.78.50.18 with HTTP; Thu, 10 Aug 2006 06:48:46 -0700 (PDT) Message-ID: <9f8af95f0608100648o22bd6a53n68fc73d004cfd58c@mail.gmail.com> Date: Thu, 10 Aug 2006 09:48:46 -0400 From: "james toy" To: freebsd-acpi@freebsd.org In-Reply-To: <9f8af95f0608100648h459f9721r1268cad5f8d1154a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <88a7d7740608092157l42969564o369e3ddcecb770e6@mail.gmail.com> <44DAFB5D.9080308@joeholden.co.uk> <9f8af95f0608100648h459f9721r1268cad5f8d1154a@mail.gmail.com> Subject: Fwd: Re: Re: Help 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: Thu, 10 Aug 2006 13:48:58 -0000 ---------- Forwarded message ---------- From: james toy Date: 10-Aug-2006 09:48 Subject: Re: Re: Help To: Joe Holden is this person serious? On 10/08/06, Joe Holden wrote: > Jody Morgan wrote: > > Hi, > > > > I tried to install a Windows 98SE driver for a Scandisk Mini Cruizer > > flash > > drive. > > > > In the process my computer now does not boot up correctly. > > > > Under the Systems Properties there is a yellow circled exclamation point > > next to: Advanced Configuration and Power Interface (ACPI) BIOS > > > > Under General it states: Device Status: > > > > Windows could not load the driver for this device because the computer is > > reporting 2 ACPI.Sys bus types. (Code 2) > > Contact your computer manufacturer to get an updated BIOS for your > > computer. > > > > I have an Intel Desktop Board D845GVAD2. > > > > I'm not sure what to do next. My computer no longer "sees" the CDrom > > drive, > > so I can't use the initial "Intel Express Installer CD". The computer is > > not connected to the internet. It can see the "A" flappy drive. > > > > Thanks for your help! > > > > Jody > > _______________________________________________ > > freebsd-acpi@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" > *feeds the troll* > > Ta, > J > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" > -- ___ -jt -- ___ -jt From owner-freebsd-acpi@FreeBSD.ORG Fri Aug 11 02:47:34 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 592BA16A4DF for ; Fri, 11 Aug 2006 02:47:34 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D47243D64 for ; Fri, 11 Aug 2006 02:47:30 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=[192.168.0.18]) by publicd.ub.mng.net with esmtpa (Exim 4.61 (FreeBSD)) (envelope-from ) id 1GBN3X-000Djg-2q; Fri, 11 Aug 2006 11:47:27 +0900 Message-ID: <44DBEFBE.3070100@micom.mng.net> Date: Fri, 11 Aug 2006 11:47:26 +0900 From: Ganbold User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: freebsd-acpi@freebsd.org Content-Type: multipart/mixed; boundary="------------070402020607080007080209" Cc: Subject: KTR support for ACPI debug messages 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: Fri, 11 Aug 2006 02:47:34 -0000 This is a multi-part message in MIME format. --------------070402020607080007080209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Am I doing something wrong in attached patch? It is against latest RELENG_6. If it is correct and trivial I will try for rest of files. Is /usr/src/sys/dev/acpica correct place for ACPI? My laptop's (Dell D620) suspend/resume is not working and I really want to make it work and I thought I could help a little bit if my knowledge is enough for such things. thanks a lot, Ganbold --------------070402020607080007080209 Content-Type: text/x-patch; name="acpi.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="acpi.c.patch" --- /usr/home/tsgan/acpica/acpi.c Sat Aug 5 19:58:46 2006 +++ acpi.c Fri Aug 11 11:26:00 2006 @@ -47,6 +47,7 @@ #include #include #include +#include #include #include @@ -254,7 +255,7 @@ switch (event) { case MOD_LOAD: if (!cold) { - printf("The ACPI driver cannot be loaded after boot.\n"); + CTR0(KTR_GEN, "The ACPI driver cannot be loaded after boot.\n"); return (EPERM); } break; @@ -296,12 +297,12 @@ /* Start up the ACPI CA subsystem. */ if (ACPI_FAILURE(error = AcpiInitializeSubsystem())) { - printf("ACPI: initialisation failed: %s\n", AcpiFormatException(error)); + CTR1(KTR_GEN, "ACPI: initialisation failed: %s\n", AcpiFormatException(error)); return_VALUE (error); } if (ACPI_FAILURE(error = AcpiLoadTables())) { - printf("ACPI: table load failed: %s\n", AcpiFormatException(error)); + CTR1(KTR_GEN, "ACPI: table load failed: %s\n", AcpiFormatException(error)); AcpiTerminate(); return_VALUE (error); } @@ -314,7 +315,7 @@ if (resource_int_value("acpi", 0, "disabled", &val) == 0 && val == 0) acpi_quirks &= ~ACPI_Q_BROKEN; if (acpi_quirks & ACPI_Q_BROKEN) { - printf("ACPI disabled by blacklist. Contact your BIOS vendor.\n"); + CTR0(KTR_GEN, "ACPI disabled by blacklist. Contact your BIOS vendor.\n"); AcpiTerminate(); return_VALUE (AE_ERROR); } @@ -823,7 +824,7 @@ struct acpi_device *ad; if ((ad = device_get_ivars(child)) == NULL) { - printf("device has no ivars\n"); + CTR0(KTR_GEN, "device has no ivars\n"); return (ENOENT); } @@ -862,7 +863,7 @@ struct acpi_device *ad; if ((ad = device_get_ivars(child)) == NULL) { - printf("device has no ivars\n"); + CTR0(KTR_GEN, "device has no ivars\n"); return (ENOENT); } @@ -1648,18 +1649,18 @@ if ((howto & RB_POWEROFF) != 0) { status = AcpiEnterSleepStatePrep(ACPI_STATE_S5); if (ACPI_FAILURE(status)) { - printf("AcpiEnterSleepStatePrep failed - %s\n", + CTR1(KTR_GEN, "AcpiEnterSleepStatePrep failed - %s\n", AcpiFormatException(status)); return; } - printf("Powering system off using ACPI\n"); + CTR0(KTR_GEN, "Powering system off using ACPI\n"); ACPI_DISABLE_IRQS(); status = AcpiEnterSleepState(ACPI_STATE_S5); if (ACPI_FAILURE(status)) { - printf("ACPI power-off failed - %s\n", AcpiFormatException(status)); + CTR1(KTR_GEN, "ACPI power-off failed - %s\n", AcpiFormatException(status)); } else { DELAY(1000000); - printf("ACPI power-off failed - timeout\n"); + CTR0(KTR_GEN, "ACPI power-off failed - timeout\n"); } } else if ((howto & RB_HALT) == 0 && AcpiGbl_FADT->ResetRegSup && sc->acpi_handle_reboot) { @@ -1668,17 +1669,17 @@ AcpiGbl_FADT->ResetRegister.RegisterBitWidth, AcpiGbl_FADT->ResetValue, &AcpiGbl_FADT->ResetRegister); if (ACPI_FAILURE(status)) { - printf("ACPI reset failed - %s\n", AcpiFormatException(status)); + CTR1(KTR_GEN, "ACPI reset failed - %s\n", AcpiFormatException(status)); } else { DELAY(1000000); - printf("ACPI reset failed - timeout\n"); + CTR0(KTR_GEN, "ACPI reset failed - timeout\n"); } } else if (sc->acpi_do_disable && panicstr == NULL) { /* * Only disable ACPI if the user requested. On some systems, writing * the disable value to SMI_CMD hangs the system. */ - printf("Shutting down ACPI\n"); + CTR0(KTR_GEN, "Shutting down ACPI\n"); AcpiTerminate(); } } @@ -2132,7 +2133,7 @@ if (sc->acpi_sstate != ACPI_STATE_S0) status = AE_ERROR; ACPI_UNLOCK(acpi); - printf("acpi: suspend request ignored (not ready yet)\n"); + CTR0(KTR_GEN, "acpi: suspend request ignored (not ready yet)\n"); return (status); } sc->acpi_sleep_disabled = 1; @@ -2528,7 +2529,7 @@ /* Elements 2 to N of the _PRW object are power resources. */ power_count = res->Package.Count - 2; if (power_count > ACPI_PRW_MAX_POWERRES) { - printf("ACPI device %s has too many power resources\n", acpi_name(h)); + CTR1(KTR_GEN, "ACPI device %s has too many power resources\n", acpi_name(h)); power_count = 0; } prw->power_res_count = power_count; @@ -3041,20 +3042,20 @@ if (layer == NULL && level == NULL) return; - printf("ACPI set debug"); + CTR0(KTR_GEN, "ACPI set debug"); if (layer != NULL) { if (strcmp("NONE", layer) != 0) - printf(" layer '%s'", layer); + CTR1(KTR_GEN, " layer '%s'", layer); acpi_parse_debug(layer, &dbg_layer[0], &AcpiDbgLayer); freeenv(layer); } if (level != NULL) { if (strcmp("NONE", level) != 0) - printf(" level '%s'", level); + CTR1(KTR_GEN, " level '%s'", level); acpi_parse_debug(level, &dbg_level[0], &AcpiDbgLevel); freeenv(level); } - printf("\n"); + CTR0(KTR_GEN, "\n"); } SYSINIT(acpi_debugging, SI_SUB_TUNABLES, SI_ORDER_ANY, acpi_set_debugging, --------------070402020607080007080209--