From owner-freebsd-acpi@FreeBSD.ORG Thu Aug 29 16:42:07 2013 Return-Path: Delivered-To: freebsd-acpi@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 ESMTP id 1C7AA42B; Thu, 29 Aug 2013 16:42:07 +0000 (UTC) (envelope-from lmfeeney@sics.se) Received: from fsmsg2.sics.se (fsmsg2.sics.se [IPv6:2001:6b0:3a:1:250:56ff:fea9:52ad]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 997FB270C; Thu, 29 Aug 2013 16:42:06 +0000 (UTC) Received: from pps.filterd (fsmsg2 [127.0.0.1]) by fsmsg2.sics.se (8.14.5/8.14.5) with SMTP id r7TGVcYt010461; Thu, 29 Aug 2013 18:42:04 +0200 Received: from letter.sics.se (letter.sics.se [193.10.64.6]) by fsmsg2.sics.se with ESMTP id 1eg7hk5eak-1; Thu, 29 Aug 2013 18:42:03 +0200 Received: from kattunge.sics.se (sink.sics.se [193.10.64.88]) (Authenticated sender: lmfeeney@sics.se) by letter.sics.se (Postfix) with ESMTPSA id CE26340115; Thu, 29 Aug 2013 18:42:03 +0200 (CEST) Message-ID: <521F79F4.7070603@sics.se> Date: Thu, 29 Aug 2013 18:42:28 +0200 From: Laura Marie Feeney User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110202 Thunderbird/3.1.7 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: suspend/resume on Lenovo X1 (regression from reports on wiki) References: <521D03AE.3050709@sics.se> <20130828040505.GD32399@FreeBSD.org> <521DF184.7030308@sics.se> <20130828150310.GR4574@glebius.int.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-08-29_06:2013-08-29,2013-08-29,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=11 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1305240000 definitions=main-1308290082 Cc: "freebsd-acpi@freebsd.org" , Gleb Smirnoff , "Sergey A. Osokin" X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lmfeeney@sics.se List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 16:42:07 -0000 Hi Yes! I now have working suspend/resume building xorg using the updated ports and compile options that Gleb Smirnoff kindly pointed me at. No xorg.conf is needed and all acpi options are as default. It seems to work correctly both with and without acpi_video and acpi_ibm in the kernel. It's still necessary to compile out 'options VESA' from the kernel, otherwise resume fails entirely. I also observe the issue that Gleb Smirnoff mentions below, that the xorg server is quite slow after result. Using 'xterm -sb' and moving the scrollbar up and down very fast, I was able to able to get the xorg process up to ~20% of CPU. On casual observation, it didn't seem to get worse after several suspend/resume cycles. Definitely suspend/resume are working and amazingly fast compared to 8.2 (though running on a much older machine). Thanks to all for the useful suggestions! Laura On 08/29/13 16:22, Adrian Chadd wrote: > Hi! > > What's the result of all of this? Laura - do you have functioning > suspend/resume with xorg now? > > > > -adrian > > > > On 28 August 2013 08:03, Gleb Smirnoff > wrote: > > Laura, > > according to your Xorg.log PCI device ID of your video card exactly > matches mine 8086:0166:17aa:21f9, so it should work. > > It looks like versions of Xorg and Xorg Intel driver installed from > packages are too old, and this is the biggest difference between your > setup and mine. You are running Xorg 1.7.7. > > This is what I run: > > glebius@think:~:|>pkg info xorg-server xf86-video-intel > xorg-server-1.12.4,1 > xf86-video-intel-2.21.9 > > To get these packages you need to update your ports tree, put > these lines into /etc/make.conf: > > WITH_NEW_XORG=yes > WITH_KMS=yes > > , and reinstall xorg-server and xf86-video-intel from ports. You'd > probably need to rebuild all xorg drivers like mouse and keyboard, > to make them compatible with new server version. > > If this isn't enough I can send my xorg.conf and kernel config. But > I hope default configs should be fine. > > > Now bad news :) Last major Xorg update in ports, which happened > couple > of months ago, introduced a regression: xorg performs very slowly after > resume. If the server process is restarted, then a new one performs > okay. > So this looks like xorg issue, not FreeBSD kernel problem. > > On Wed, Aug 28, 2013 at 02:48:04PM +0200, Laura Marie Feeney wrote: > L> Thanks! I think that X1 and Carbon are different names, as > Lenovo seems > L> to use them quite interchangably (perhaps for different countries?). > L> This isn't an X1 Touch, which surely has non-trivial differences > for the > L> touchscreen. > > X1 and X1 Carbon are really different, I owned both. Yep, both work with > FreeBSD. > > -- > Totus tuus, Glebius. > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to > "freebsd-acpi-unsubscribe@freebsd.org > " > >