From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 14 06:00:48 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87D3D16A4E0 for ; Fri, 14 Jul 2006 06:00:48 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6F9343D8F for ; Fri, 14 Jul 2006 06:00:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6E60ZGs057490 for ; Fri, 14 Jul 2006 06:00:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6E60Zn0057488; Fri, 14 Jul 2006 06:00:35 GMT (envelope-from gnats) Resent-Date: Fri, 14 Jul 2006 06:00:35 GMT Resent-Message-Id: <200607140600.k6E60Zn0057488@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "John L. Utz III" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2454916A4DD for ; Fri, 14 Jul 2006 05:58:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C97EA43D55 for ; Fri, 14 Jul 2006 05:58:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6E5wLqF006102 for ; Fri, 14 Jul 2006 05:58:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6E5wL4h006099; Fri, 14 Jul 2006 05:58:21 GMT (envelope-from nobody) Message-Id: <200607140558.k6E5wL4h006099@www.freebsd.org> Date: Fri, 14 Jul 2006 05:58:21 GMT From: "John L. Utz III" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/100271: acpi_video cant identify some Dell lcd's. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2006 06:00:48 -0000 >Number: 100271 >Category: misc >Synopsis: acpi_video cant identify some Dell lcd's. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 14 06:00:34 GMT 2006 >Closed-Date: >Last-Modified: >Originator: John L. Utz III >Release: 7.0-CURRENT, 6.1-RELEASE >Organization: >Environment: [spaz@minime /usr/home/spaz]$ uname -a FreeBSD minime.hsd1.wa.comcast.net. 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Thu Jul 13 22:02:04 PDT 2006 spaz@minime.hsd1.wa.comcast.net.:/usr/src/sys/i386/compile/MINIME i386 >Description: acpi_video expects that the laptops' lcd will be called out in the ACPI asl by the value 0x0110. however, some laptops' identify the LCD by the value 0x0400. for laptops such as these, theirl displays will not be identified correctly and they will not be attached correctly to the ACPI tree [spaz@minime /usr/home/spaz]$ sysctl hw.acpi.video hw.acpi.video.crt0.active: 0 hw.acpi.video.out0.active: 1 <-- this is wrong! [spaz@minime /usr/home/spaz]$ the fix is to apply the attached patch, it will allow the dell's to attach correctly: [spaz@minime /usr/home/spaz]$ sysctl hw.acpi.videoight hw.acpi.video.crt0.active: 0 hw.acpi.video.lcd0.active: 1 <-- this is r [spaz@minime /usr/home/spaz]$ >How-To-Repeat: [spaz@minime /usr/home/spaz]$ sysctl hw.acpi.video hw.acpi.video.crt0.active: 0 hw.acpi.video.out0.active: 1 [spaz@minime /usr/home/spaz]$ >Fix: [spaz@minime /usr/home/spaz]$ diff -u acpi_videoorig.c acpi_video.c --- acpi_videoorig.c Thu Jul 13 22:44:40 2006 +++ acpi_video.c Thu Jul 13 22:44:28 2006 @@ -113,6 +113,7 @@ #define DOD_DEVID_MONITOR 0x0100 #define DOD_DEVID_PANEL 0x0110 #define DOD_DEVID_TV 0x0200 +#define DOD_DEVID_LCD 0x0400 #define DOD_BIOS (1 << 16) #define DOD_NONVGA (1 << 17) #define DOD_HEAD_ID_SHIFT 18 @@ -416,6 +417,7 @@ voqh = &crt_units; break; case DOD_DEVID_PANEL: + case DOD_DEVID_LCD: desc = "LCD panel"; type = "lcd"; voqh = &lcd_units; @@ -558,6 +560,7 @@ voqh = &crt_units; break; case DOD_DEVID_PANEL: + case DOD_DEVID_LCD: voqh = &lcd_units; break; case DOD_DEVID_TV: [spaz@minime /usr/home/spaz]$ >Release-Note: >Audit-Trail: >Unformatted: