From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 17:11:42 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5692F1065670 for ; Thu, 5 Aug 2010 17:11:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 25B298FC1E for ; Thu, 5 Aug 2010 17:11:42 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id B7A7046B51; Thu, 5 Aug 2010 13:11:41 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D06A58A03C; Thu, 5 Aug 2010 13:11:40 -0400 (EDT) From: John Baldwin To: Oleg Sharoyko Date: Thu, 5 Aug 2010 11:45:53 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100217; KDE/4.4.5; amd64; ; ) References: <201008041112.28704.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201008051145.53737.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 05 Aug 2010 13:11:40 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: PCI config space is not restored upon resume (macbook pro) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 17:11:42 -0000 On Thursday, August 05, 2010 11:30:23 am Oleg Sharoyko wrote: > On 4 August 2010 19:12, John Baldwin wrote: > > > Cool, I actually think that the ACPI PCI-PCI driver can just use the > > stock PCI-PCI bridge driver's suspend and resume methods. Can you try > > out this alternate patch instead? > > It works, and sure looks better than mine. I didn't know there's such a nice > way to inherit methods. > > > This sounds like the display just needs to be powered on via DPMS. > > You might be able to make this work via acpi_video and toggling the > > LCD status that way. You could also try dpms.ko. > > I'm afraid things are not that simple. I have tried without success > acpi_video.ko, > dmps.ko, sysctl hw.acpi.reset_video and sysutils/vbetool. And what worries me, > X server cannon start on resumed system. From Xorg.log: > > (EE) NV(0): Failed to determine the amount of available video memory > > It looks like videcard just ignores any requests. Are you using the nvidia-driver or the "nv" driver from X? -- John Baldwin