From owner-freebsd-current Sun Aug 25 10:38:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A68037B400 for ; Sun, 25 Aug 2002 10:38:15 -0700 (PDT) Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCCD643E3B for ; Sun, 25 Aug 2002 10:38:12 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (iwa@tasogare.imasy.or.jp [202.227.24.5]) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id g7PHbkY28320; Mon, 26 Aug 2002 02:37:46 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Mon, 26 Aug 2002 02:37:36 +0900 (JST) Message-Id: <20020826.023736.128622794.iwasaki@jp.FreeBSD.org> To: marks@ripe.net Cc: acpi-jp@jp.FreeBSD.org, current@FreeBSD.ORG Subject: Re: Call for testers: acpica-unix-20020815 From: Mitsuru IWASAKI In-Reply-To: <20020825165945.GC2121@laptop.6bone.nl> References: <20020822.235142.48538213.iwasaki@jp.FreeBSD.org> <20020825165945.GC2121@laptop.6bone.nl> X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I applied the patches, and I still have the same results on my laptop. > > I have a Dell Latitude C640 and my screen won't come back after a suspend. > The machine works fine besides that. OK, I think this is not related with ACPI CA code update. Our device driver (maybe syscons?) or X server issue. > Do you have any idea/advice how this can be debugged? If you have this problem w/ X running, and don't have w/o X, please try attached patches. Thanks Index: isa/syscons_isa.c =================================================================== RCS file: /home/ncvs/src/sys/isa/syscons_isa.c,v retrieving revision 1.17 diff -u -r1.17 syscons_isa.c --- isa/syscons_isa.c 30 Jun 2001 10:15:06 -0000 1.17 +++ isa/syscons_isa.c 16 Feb 2002 13:11:50 -0000 @@ -88,6 +88,39 @@ return sc_attach_unit(device_get_unit(dev), device_get_flags(dev)); } +static int sc_cur_scr; + +static int +scsuspend(device_t dev) +{ + int retry = 10; + static int dummy; + sc_softc_t *sc; + + sc = &main_softc; + sc_cur_scr = sc->cur_scp->index; + do { + sc_switch_scr(sc, 0); + if (!sc->switch_in_progress) { + break; + } + tsleep(&dummy, 0, "scsuspend", 100); + } while (retry--); + + return (0); +} + +static int +scresume(device_t dev) +{ + sc_softc_t *sc; + + sc = &main_softc; + sc_switch_scr(sc, sc_cur_scr); + + return (0); +} + int sc_max_unit(void) { @@ -230,6 +263,8 @@ DEVMETHOD(device_identify, scidentify), DEVMETHOD(device_probe, scprobe), DEVMETHOD(device_attach, scattach), + DEVMETHOD(device_suspend, scsuspend), + DEVMETHOD(device_resume, scresume), { 0, 0 } }; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message