From owner-freebsd-current@FreeBSD.ORG Thu Mar 26 01:19:36 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 7BD2F1065670 for ; Thu, 26 Mar 2009 01:19:36 +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 0F58F8FC18 for ; Thu, 26 Mar 2009 01:19:35 +0000 (UTC) (envelope-from dthiele@gmx.net) Received: (qmail invoked by alias); 26 Mar 2009 01:19:34 -0000 Received: from p54865167.dip.t-dialin.net (EHLO impala.vnws.lan) [84.134.81.103] by mail.gmx.net (mp069) with SMTP; 26 Mar 2009 02:19:34 +0100 X-Authenticated: #19302822 X-Provags-ID: V01U2FsdGVkX1+4hNhJveK4VCpc4KuJPb+OfCubGVton7NpcqWdEU 59dNvSu2+/cOtE Message-ID: <49CAD846.9090703@gmx.net> Date: Thu, 26 Mar 2009 02:20:06 +0100 From: Daniel Thiele User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: "Paul B. Mahol" References: <1236802980.00085518.1236789602@10.7.7.3> <200903241528.34902.jkim@FreeBSD.org> <49CAA201.7000205@entel.upc.edu> <200903251833.14825.jkim@FreeBSD.org> <49CAC6FB.5060503@gmx.net> <3a142e750903251715t4088654euf3b2adcd0587d2cd@mail.gmail.com> In-Reply-To: <3a142e750903251715t4088654euf3b2adcd0587d2cd@mail.gmail.com> 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.53 Cc: Gustau Perez , Jung-uk Kim , 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 01:19:36 -0000 Paul B. Mahol wrote: > On 3/26/09, Daniel Thiele wrote: >> 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. > > The only way I managed (without suspending while inside X11) my HP > nx7300 on UP i386 to > resume with video working is kldloading vesa before suspend. > Cool, thanks a lot for that hint! That helped. I did not find the vesa module in the amd64's /boot/kernel directory nor the man-page, but loading the i915 module seems to do the trick. Daniel