From owner-freebsd-current@FreeBSD.ORG Thu Mar 26 00:05:46 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D54BD1065670 for ; Thu, 26 Mar 2009 00:05:46 +0000 (UTC) (envelope-from dthiele@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 362998FC08 for ; Thu, 26 Mar 2009 00:05:45 +0000 (UTC) (envelope-from dthiele@gmx.net) Received: (qmail invoked by alias); 26 Mar 2009 00:05:44 -0000 Received: from p54865167.dip.t-dialin.net (EHLO impala.vnws.lan) [84.134.81.103] by mail.gmx.net (mp006) with SMTP; 26 Mar 2009 01:05:44 +0100 X-Authenticated: #19302822 X-Provags-ID: V01U2FsdGVkX1/hVMFvl17h1BsNjhxfXelBXH4f6jo9S4MEfuvdBP 9mRpTsc7HRSimS Message-ID: <49CAC6FB.5060503@gmx.net> Date: Thu, 26 Mar 2009 01:06:19 +0100 From: Daniel Thiele User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: Jung-uk Kim References: <1236802980.00085518.1236789602@10.7.7.3> <200903241528.34902.jkim@FreeBSD.org> <49CAA201.7000205@entel.upc.edu> <200903251833.14825.jkim@FreeBSD.org> In-Reply-To: <200903251833.14825.jkim@FreeBSD.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 Cc: Gustau Perez , freebsd-current@freebsd.org Subject: Re: [HEADSUP] amd64 suspend/resume code to be comitted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 00:05:47 -0000 Jung-uk Kim wrote: > On Wednesday 25 March 2009 05:28 pm, Gustau Perez wrote: >>> Please try the attached patch, which just disables restoring VGA >>> state while resuming. >> Tried your patch again, and this time using hw.acpi.reset_video, >> hw.acpi.suspend_bounce and friends. The same result, the screen >> remains completely black. >> >> Before appliying the patch, when resuming the screen showed >> messages about the resume of some hardware (usb, firewire, etc ...) >> and then it went black. >> >> Is there anything I can test ? > > Then, it is something else, e.g., acpi_video(4). You can try setting > debug.acpi.disabled="video" in /boot/loader.conf for example. > I have the same problem here with a ThinkPad T400. This is a model with the Switchable Graphics feature, but I set the corresponding BIOS option to use the integrated Intel GMA X4500 only. Suspend and resume seem to work except for video output. I am using a vanilla CURRENT from March 25 (so I have not tried the vga_isa.diff patch yet). As in Gustau's case, after resume the screen stays just black. The system, though, seems to be up and running, since I get console's audible bell when I expect it and I can edit files, blindly of course. Setting debug.acpi.disabled="video" in /boot/loader.conf produces the same result: A black screen right after resume. I also tried setting hw.acpi.reset_video to 1 but the the machine does not resume at all. When I, in this case, additionally turn on debug.acpi.resume_beep all I get is a long beep that only stops, if I power-cycle the machine. Also, at first I tried to use an USB flash drive to test suspend/resume on amd64, which results in a panic on suspend. Unfortunately, I don't have any dumps, but the "tracing pid" output from "where" at the debugger prompt reported PID 12, wich seems to be [intr]. Or at leas it seem to be intr whenever I look up PID 12. Right now I am (ab)using my swap partition, which works fine. So, if there are any other knobs to fiddle with or patches to try out to investigate this further (at least the black screen issue) just let me know. Best regards, Daniel