From owner-freebsd-mobile@FreeBSD.ORG Sat Jun 21 21:41:05 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 A404A1F1 for ; Sat, 21 Jun 2014 21:41:05 +0000 (UTC) Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [IPv6:2a00:1450:400c:c03::22a]) (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 37AF72777 for ; Sat, 21 Jun 2014 21:41:05 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id w61so5290065wes.1 for ; Sat, 21 Jun 2014 14:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=sjKkW24yATD4mgshqRDWn612+k/Msd9+lzJIdYN6mZs=; b=oPOfyMyp0XI54hiDbBCgCW498AsxdTfbN0JdFyTFWevcyrTpmJSvbKl6YMv9UtXxMM H9M2NuSvKmZ12u+mZAepb6C5yhCyvrjjWV8sW4lRtFXHyFbTlASeidX2QDIBGGOuTtRl 47InyUaeL+fqZk8BCnnHKESCoRh4M4+TpuJypo4nnJQkXS53Z+YIVIi/2sxQvdqfNOAD RLHpCQIZM+SSd5DHFrS1+HodGQl8vTP6wT7JvglqzvjOOJcD73pdHoXYz2Ro7r3hI0Zd 8Ko7bab4f2uAd4WxzET1Ly+B73OwSC0nP5QJGGU01Rxiq97mwlPvIYuDy+UYhYWe9yt6 yshg== X-Received: by 10.194.1.242 with SMTP id 18mr14738997wjp.22.1403386863129; Sat, 21 Jun 2014 14:41:03 -0700 (PDT) Received: from [192.168.178.121] (p5B36D24B.dip0.t-ipconnect.de. [91.54.210.75]) by mx.google.com with ESMTPSA id oy4sm24807067wjb.41.2014.06.21.14.41.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Jun 2014 14:41:02 -0700 (PDT) Message-ID: <53A5FBED.6090106@gmail.com> Date: Sat, 21 Jun 2014 23:41:01 +0200 From: =?UTF-8?B?SmFuIEtva2Vtw7xsbGVy?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Ivan Rokotov Subject: Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10? References: <53A54C05.7060403@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 21:41:05 -0000 On 21.06.2014 17:04, Ivan Rokotov wrote: > 2014-06-21 11:10 GMT+02:00 Jan Kokemüller : >> I think I found a less hackish workaround for this problem. I've put "pkill >> -STOP X" into /etc/rc.suspend and "pkill -CONT X" into /etc/rc.resume. This >> seems to work fine so far with an unmodified xf86-video-intel driver on my >> SL510. > > Interesting! Where in rc.suspend/rc.resume did you put it exactly? > Ivan 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 worked more reliably than the kern.vt.suspendswitch sysctl last time I checked.