From owner-freebsd-mobile@FreeBSD.ORG Sun Jun 22 02:39:40 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 791D82AF for ; Sun, 22 Jun 2014 02:39:40 +0000 (UTC) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (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 364672A36 for ; Sun, 22 Jun 2014 02:39:40 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id w7so4867554qcr.21 for ; Sat, 21 Jun 2014 19:39:39 -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=Dpq5nkT+cnhFEoFMIME3kVT41BKyow0RjZfPka7sLCw=; b=s/4wX66hey/pIZlqSzIILlA+6mhlsssWJJkGBTGkdfSXC4eMBmWh27oYCcLH17A1Ip NIRfp3stX3nDVadX56vy+rmcAtQpVjrXR9ZQIfcPQxJzY1FImTnm+wIp7kT4TGQEMHK+ AmqVB+ekmvkkSqjqwdz+DO1q+I8EGyVcUvoGgPbwm0VFXTVgyGW3bPwwug3a0FbwXhsq 2soc6KNfpKattccIHISenV34YqsMAA14mV8JyQ72wJ+GwTzgy3gGmJML8odhcj65JiSS tS/AKOVp8d7gSPLVnRTEGmeuv/JTYEO9mZbfxLVRobt7t/bIH3YPR9e3afQbZmsBjISp g3sw== MIME-Version: 1.0 X-Received: by 10.229.44.65 with SMTP id z1mr19609924qce.7.1403404779312; Sat, 21 Jun 2014 19:39:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.43.134 with HTTP; Sat, 21 Jun 2014 19:39:39 -0700 (PDT) In-Reply-To: References: <53A54C05.7060403@gmail.com> <53A5FBED.6090106@gmail.com> Date: Sat, 21 Jun 2014 19:39:39 -0700 X-Google-Sender-Auth: FxnvSp23jUa8AgL8-HbuU3bDXbM Message-ID: Subject: Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10? From: Adrian Chadd To: Ivan Rokotov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mobile@freebsd.org" , =?UTF-8?Q?Jan_Kokem=C3=BCller?= 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: Sun, 22 Jun 2014 02:39:40 -0000 Hi all!, There's a bugzilla ticket for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D188833 It seems like it's reasonably important; would you mind adding comments to the ticket that it works or doesn't work for you? That way whoever doing DRI/Xorg work can see not only the fix but who's been testing it and on what platforms. Thanks! -a On 21 June 2014 15:16, Ivan Rokotov wrote: > 2014-06-21 23:41 GMT+02:00 Jan Kokem=C3=BCller : >> I'm putting it before the calls to /usr/bin/logger. >> >> rc.suspend: >> vidcontrol -s 1 < /dev/console >> pkill -STOP X >> >> rc.resume: >> pkill -CONT X >> vidcontrol -s 9 < /dev/console >> >> I'm not sure if the vidcontrol call is needed anymore, but for me it wor= ked >> more reliably than the kern.vt.suspendswitch sysctl last time I checked. > > Unfortunately, that doesn't work for me. I tried two combinations > (with unpatched driver of course): > > (1) just pkill commands before /usr/bin/logger: > the laptop doesn't suspend at all after closing the lid; after opening > the lid, I got just frozen screen, non-responsive machine and not a > single line in Xorg log; > > (2) pkill commands with vidcontrol, kern.vt.suspendswitch set to 0: > the laptop doesn't suspend after closing the lid; after opening, the > screen is switched to console 1; after pressing Alt+F9, I the machine > gets frozen. I found this in the log: > > [ 2678.788] (II) AIGLX: Suspending AIGLX clients for VT switch > [ 2678.788] (WW) intel(0): drmDropMaster failed: Unknown error: -22 > > Anyway, your original patch works perfectly. After two months and > hundreds of suspends/resumes (sometimes 10-20 without powering down), > it works without a single issue. Thanks for making my life easier. :) > > Ivan > _______________________________________________ > 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"