From owner-freebsd-mobile@FreeBSD.ORG Sat May 17 18:48:01 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 206D77E0; Sat, 17 May 2014 18:48:01 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 940F82CD9; Sat, 17 May 2014 18:48:00 +0000 (UTC) Received: from walrus.pepperland ([81.217.76.60]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LskfZ-1WwLeV1VQf-012DSV; Sat, 17 May 2014 20:47:54 +0200 Message-ID: <5377AED8.20301@gmx.net> Date: Sat, 17 May 2014 20:47:52 +0200 From: Stefan Ehmann User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: John Baldwin , Kevin Oberman , Adrian Chadd Subject: Re: Thinkpad T410: resume broken References: <53762216.8020205@gmx.net> <537753F3.6000202@FreeBSD.org> In-Reply-To: <537753F3.6000202@FreeBSD.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fmwGisS4jjesUZ8fo/hrPtxwb2BC7nObI9MpCQphZONUJ+bt+Hq qWVnA8+DNVyJnZsv/2BRBQhjRamg4AF2DFK9QQO6uwXALbOEmS218XpTLIfmaftwNW07m03 DTVX5NondDnQfEUiXjxE4ovQyvRZlTifvVa/ScUnu5uQcp3Qi/nnPcOBiGCOAD72Fa+kDiC sLiGvy2AV7ME68YHtbwFQ== Cc: "current@freebsd.org" , "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2014 18:48:01 -0000 On 17.05.2014 14:20, John Baldwin wrote: > On 5/16/14, 2:10 PM, Kevin Oberman wrote: >> On Fri, May 16, 2014 at 10:44 AM, Adrian Chadd wrote: >> >>> Hi! >>> >>> I wonder what changed between 9.2-RELEASE and 10.0-RELEASE. >>> >>> Please poke me about this next week. I'm busy this week with work and >>> maker faire but I will try to help you later. >>> >>> (It's possible something like ACPI updates or a driver update has >>> broken things.) >>> >>> >>> -a >>> >> >> Does your kernel include VESA? My T320 behaved as you describe until I >> removed VESA from my kernel. I think using vt may also fix this without the >> need to remove VESA, bug I have not gotten around to confirming this. > > To be clear, vt does not fix resume. Using i915kms is what actually > fixes resume when using Intel GPUs on the Thinkpad as i915kms is what > actually turns the LCD backlight on during resume. You just have to use > vt to have a useable console when you use i915kms. You can > suspend/resume fine in X with syscons + i915kms, you just can't use your > console if you do. > > If you are using the Nvidia GPU, then i915kms can't help you with > turning the LCD backlight back on (and using vt shouldn't make any > difference). VESA needs to be removed for i915kms, but I've no idea if > it needs to be removed for Nvidia. The video reset code was reworked in > 10 so that having VESA is supposed to be like using > 'hw.acpi.reset_video=1' on 9, but in theory it works more often. The > ACPI_PM setting to the kernel module along with removing VESA would seem > like your best bet, but I see in follow-ups that that wasn't completely > reliable. However, you can try using ACPI_PM with syscons, no need to > use vt. > I'm using nvidia graphics. Removing VESA with syscons actually worked today. ACPI_PM for the module isn't necessary, but doesn't seem to hurt either. Now it seems to work like in 9.2-RELEASE. Also, no hangs so far. I'm pretty sure I tested that setup yesterday without success. So either there was something wrong in yesterday's test or I changed something else in the meantime. Suspending when Xorg is not running still results in a black monitor after resume. But I'm not really sure if I've tried that in 9.2-RELEASE. -- Stefan