From owner-freebsd-mobile@FreeBSD.ORG Tue Apr 8 21:20: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 7531DC90 for ; Tue, 8 Apr 2014 21:20:01 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E2DE169D for ; Tue, 8 Apr 2014 21:20:01 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 24126B917; Tue, 8 Apr 2014 17:20:00 -0400 (EDT) From: John Baldwin To: freebsd-mobile@freebsd.org Subject: Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10? Date: Tue, 8 Apr 2014 17:19:41 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201404081719.41379.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 08 Apr 2014 17:20:00 -0400 (EDT) Cc: Ivan Rokotov X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 21:20:01 -0000 On Tuesday, April 08, 2014 2:28:05 pm Ivan Rokotov wrote: > Hi, > > I'm experimenting with suspend/resume on Lenovo IdeaPad S400 with > FreeBSD 10.0-RELEASE. dmesg from this machine and acpi-related sysctl > info is attached. > > Info as recommended on https://wiki.freebsd.org/SuspendResume: > > # sysctl hw.acpi.supported_sleep_state > hw.acpi.supported_sleep_state: S3 S4 S5 > > # pciconf -l | sed 's/[0-9]*@.*//' | sort -u > ahci ehci hdac hostb isab iwn none pcib re vgapci xhci > > Text mode: > # kldstat | awk '{ if (index($5, ".ko")) print $5 }' > linux.ko coretemp.ko vboxdrv.ko drm2.ko iicbus.ko cuse4bsd.ko tmpfs.ko > nullfs.ko linprocfs.ko linsysfs.ko ng_ubt.ko netgraph.ko ng_hci.ko > ng_bluetooth.ko ng_l2cap.ko ng_btsocket.ko ng_socket.ko vboxnetflt.ko > ng_ether.ko vboxnetadp.ko > > In X, i915kms.ko and iic.ko iicbb.ko are added. > > 1. Suspend from text mode and X work. In X, the screen goes to some > sort of low color profile (reducing number of colors to e.g.16) for a > moment, then goes black. In both cases, fans turn off, power button is > blinking. > > 2. Resume to text mode: everything works except video (backlight > visible, but nothing more). No error messages in the logs. I can ssh > to that machine, usb ports and webcam wake up. I can even type > 'startx' blindly - and X starts normally, the screen picture appears. > > 3. Resume to X. The correct screen picture, in full color, appears for > a part of a second, then dissapears and > > 3a. the first time I tried, after that only backlight remained. > Machine was in a working state and I ssh'd to it and found this in the > logs: > > error: [drm:pid12:i915_hangcheck_elapsed] *ERROR* Hangcheck timer > elapsed... GPU hung > info: [drm] capturing error event; look for more information in sysctl > hw.dri.0.info.i915_error_state > > That output is attached. > > 3b. next time I tried, screen picture turns to a mess of white, pink > etc. dots and computer became non-responsive. Can't ssh to it, can't > type anything. The fan is silent. Only hard reset remains. > > Experimenting with acpi_video.ko and hw.acpi.reset_video=1 changes > absolutely nothing. > > More info to post? Does anybody have this or similar notebook? Your > experiences? Something new to try? Try using vt(4) instead of syscons(4) and kldload'ing i915kms from text mode. See if you can resume on the console. That has worked for several ThinkPads, though resume always worked fine for me in X even with syscons(4) when using i915kms. -- John Baldwin