From owner-freebsd-mobile@FreeBSD.ORG Sat Jun 21 14:37:36 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6E05B68 for ; Sat, 21 Jun 2014 14:37:35 +0000 (UTC) Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A6F0A27E1 for ; Sat, 21 Jun 2014 14:37:35 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id i50so4518692qgf.0 for ; Sat, 21 Jun 2014 07:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=JDC0eoiMmhrvMerU27RXSSypsIofKXMkn3aaBscfvY0=; b=VwNwyNOmOnnv/bjGYwCBMoLCeGkEG+CLR33mNcxk8NIV74qU5mVrPUW4hvDmj/Q81D 6vnIGDm3TuvYyXmXOIrPrF1J3nmQaxS3ug2/sz2Yb1jT5OtdDWaHy6IR6jdfZf9nyYAh p+OxfxuZKm+6e/K0bO0jkOYwMiaSuhEHBP9ZtZ1Yks96lFCXXy0qt0mkRWRl/7HSIk+j qaLrpw/Yk2g4AYDP7GLSNJfXuCvyZc5YHiFuUpiE415wCkVrdffsK24utJt74ulVkzPM SSU+33CpzClCRnTEW68bEUuS/y3ps0SgfTrpMny+IAfNrPjIn21ZvM/e9wHWqMU/f8Ez Y3Aw== MIME-Version: 1.0 X-Received: by 10.224.130.136 with SMTP id t8mr15929046qas.49.1403361454521; Sat, 21 Jun 2014 07:37:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.43.134 with HTTP; Sat, 21 Jun 2014 07:37:34 -0700 (PDT) In-Reply-To: <53A54C05.7060403@gmail.com> References: <53A54C05.7060403@gmail.com> Date: Sat, 21 Jun 2014 07:37:34 -0700 X-Google-Sender-Auth: TawBTmwbVGvGGloveCegEj1x7kg Message-ID: Subject: Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10? From: Adrian Chadd To: =?UTF-8?Q?Jan_Kokem=C3=BCller?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "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, 21 Jun 2014 14:37:36 -0000 Ah, that patch. I wonder whether it's something that we need in X or whether the dri code needs prodding. -a On 21 June 2014 02:10, Jan Kokem=C3=BCller wrot= e: >> After some experimenting, I found this patch, which solved the problem >> completely: >> http://lists.freebsd.org/pipermail/freebsd-x11/2013-October/013727.html >> >> Now, I have this in X log after resume: >> [ 4561.749] (WW) intel(0): retrying batchbuffer submit >> [ 4561.803] (WW) intel(0): retrying batchbuffer submit >> [ 4561.857] (WW) intel(0): retrying batchbuffer submit >> [ 4561.908] (WW) intel(0): retrying batchbuffer submit >> [ 4561.959] (WW) intel(0): retrying batchbuffer submit >> [ 4562.012] (WW) intel(0): retrying batchbuffer submit >> [ 4562.063] (WW) intel(0): retrying batchbuffer submit >> [ 4562.117] (WW) intel(0): retrying batchbuffer submit >> [ 4562.171] (WW) intel(0): retrying batchbuffer submit >> [ 4562.225] (WW) intel(0): retrying batchbuffer submit >> [ 4562.279] (WW) intel(0): retrying batchbuffer submit >> [ 4562.333] (WW) intel(0): retrying batchbuffer submit >> [ 4562.386] (WW) intel(0): retrying batchbuffer submit >> [ 4562.439] (WW) intel(0): retrying batchbuffer submit >> [ 4562.493] (WW) intel(0): retrying batchbuffer submit >> [ 4562.547] (WW) intel(0): retrying batchbuffer submit >> [ 4564.779] (II) AIGLX: Suspending AIGLX clients for VT switch >> [ 4564.779] (WW) intel(0): drmDropMaster failed: Unknown error: -22 >> [ 4565.994] (II) AIGLX: Resuming AIGLX clients after VT switch >> [ 4566.096] (II) intel(0): EDID vendor "CMN", prod id 5239 >> [ 4566.096] (II) intel(0): Printing DDC gathered Modelines: >> [ 4566.096] (II) intel(0): Modeline "1366x768"x0.0 71.59 1366 1410 >> 1439 1512 768 771 775 789 -hsync -vsync (47.3 kHz eP) >> >> but everything is alive: compiz restarts correctly, GL applications >> work as they did before resume. Job done! >> >> A question: is this patch ok? Nothing wrong with it? Do you or anybody >> else experienced a similar problem and found a different solution? > > > I think I found a less hackish workaround for this problem. I've put "pki= ll > -STOP X" into /etc/rc.suspend and "pkill -CONT X" into /etc/rc.resume. Th= is > seems to work fine so far with an unmodified xf86-video-intel driver on m= y > SL510. > > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org"