Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2014 17:19:41 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-mobile@freebsd.org
Cc:        Ivan Rokotov <ivan.rokotov.bsd@gmail.com>
Subject:   Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10?
Message-ID:  <201404081719.41379.jhb@freebsd.org>
In-Reply-To: <CAOTTJKFF-0ihGNyUsNDAc8%2BhxRO51tqZ8f_ocP7MYrFNrCAMFw@mail.gmail.com>
References:  <CAOTTJKFF-0ihGNyUsNDAc8%2BhxRO51tqZ8f_ocP7MYrFNrCAMFw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404081719.41379.jhb>