From nobody@FreeBSD.org  Fri Dec 13 19:53:49 2013
Return-Path: <nobody@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 01281227
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Dec 2013 19:53:49 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id E12A516A6
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Dec 2013 19:53:48 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBDJrmrq042658
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Dec 2013 19:53:48 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBDJrmce042652;
	Fri, 13 Dec 2013 19:53:48 GMT
	(envelope-from nobody)
Message-Id: <201312131953.rBDJrmce042652@oldred.freebsd.org>
Date: Fri, 13 Dec 2013 19:53:48 GMT
From: R Tyler Croy <tyler@monkeypox.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Resume fails on the X200 when the C3 power mode is available and engaged
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184757
>Category:       kern
>Synopsis:       [suspend/resume] Resume fails on the X200 when the C3 power mode is available and engaged
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 13 20:00:02 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue Apr 22 05:35:28 UTC 2014
>Originator:     R Tyler Croy
>Release:        FreeBSD 10.0-PRERELEASE amd64
>Organization:
>Environment:
FreeBSD kiwi 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #4 r259211: Wed Dec 11 01:08:00 PST 2013     root@kiwi:/usr/obj/usr/src/sys/KIWI  amd64

>Description:
When tuning some of the performance and power settings, I tried enabling the C3 state as the "lowest" economy power setting.

This works all well and good, *unless* I suspend while on battery after some period of idle activity 


/etc/rc.conf
----8<----8<----8<---

# Performance and power tuning taken from TuningPowerconsumption wiki
performance_cx_lowest="C2"
economy_cx_lowest="C3"

----8<----8<----8<---

/boot/loader.conf
----8<----8<----8<---
# Performance and power tuning taken from TuningPowerConsumption wiki
#####################################################################
# Disable PCI bus devices we don't have something built into the kernel
# for.
hw.pci.do_power_nodriver=3
# Disable throttling that would be hidden by the C2 state
hint.p4tcc.0.disabled=1
hint.acpi_throttle.0.disabled=1
# Enable clocks to make the C3 state viable
hint.apic.0.clock=0
hint.atrtc.0.clock=0
# Reduce the interrupt rate to make C3 more effective
kern.hz=100
----8<----8<----8<---
>How-To-Repeat:
* Enable the C3 state.
* Suspend while on battery, typically after some period of inactivity, allowing the machine to enter C3
* Attempt to resume

Observe the black screen on resume followed by a reboot a short time after that.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
