From nobody@FreeBSD.org  Fri Nov 11 19:06:28 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4461F106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2011 19:06:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1AE548FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2011 19:06:28 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pABJ6R2h038398
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2011 19:06:27 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pABJ6RNW038397;
	Fri, 11 Nov 2011 19:06:27 GMT
	(envelope-from nobody)
Message-Id: <201111111906.pABJ6RNW038397@red.freebsd.org>
Date: Fri, 11 Nov 2011 19:06:27 GMT
From: Thomas Dean <tomdean@speakeasy.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: After some time X blanks the screen and does not respone to mouse or keyboard
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162489
>Category:       amd64
>Synopsis:       After some time X blanks the screen and does not respone to mouse or keyboard
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 11 19:10:05 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Nov 14 18:30:07 UTC 2011
>Originator:     Thomas Dean
>Release:        8.2 AMD64
>Organization:
Home
>Environment:
FreeBSD Envy.tddhome 8.2-STABLE FreeBSD 8.2-STABLE #3: Mon Oct 24 11:38:59 PDT 2011     tomdean@Envy.tddhome:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
HP Envy 17 3d Laptop

After some time, and after dpms blanks the screen, the system becomes non-responsive to the keyboard and mouse.  Moving the mouse or pressing keys
does not wake the display.

I can log in from a remote system and things seem normal, however, X is disconnected.

as root:

xset q
No protocol specified
No protocol specified
No protocol specified
No protocol specified
xset:  unable to open display "192.168.2.3:0.0"

dbus and hald are running.  Restarting either or both does not effect things.

A process that was running before seems to accumulate CPU time - top shows increasing numbers.
Xorg seems to not be using CPU time.

======================================
dmesg has lots of error messages like

ACPI Error: Method parse/execution failed [\\_SB_.WMID.HWMC] (Node 0xffffff00024e9100), AE_AML_BUFFER_LIMIT (20101013/psparse-633)
ACPI Error: Method parse/execution failed [\\_SB_.WMID.WMAD] (Node 0xffffff00024ecd40), AE_AML_BUFFER_LIMIT (20101013/psparse-633)
ACPI Error: Field [D128] at 1040 exceeds Buffer [NULL] size 160 (bits) (20101013/dsopcode-697)

======================================
var/log/messages has many entries like

Nov  9 19:12:07 Envy kernel: ACPI Error: Field [D128] at 1040 exceeds Buffer [NULL] size 160 (bits) (20101013/dsopcode-697)
Nov  9 19:12:07 Envy kernel: ACPI Error: Method parse/execution failed [\_SB_.WMID.HWMC] (Node 0xffffff00024e9100), AE_AML_BUFFER_LIMIT (20101013/psparse-633)
Nov  9 19:12:07 Envy kernel: ACPI Error: Method parse/execution failed [\_SB_.WMID.WMAD] (Node 0xffffff00024ecd40), AE_AML_BUFFER_LIMIT (20101013/psparse-633)
Nov  9 19:12:07 Envy kernel: ACPI Error: Field [D128] at 1040 exceeds Buffer [NULL] size 160 (bits) (20101013/dsopcode-697)

Nov 10 11:56:34 Envy kernel: acpi_tz0: _CRT value is absurd, ignored (-273.2C)
Nov 10 11:58:58 Envy kernel: acpi_tz0: _CRT value is absurd, ignored (-273.2C)




>How-To-Repeat:
1 Boot
2 login and startx
3 xset dpms 300 0 0  ## I have tried various combinations
4 wait until the screen blanks
5 move the mouse and/or press keys
6 If the system wakes up, go to 4

After some time, maybe overnight, the system will fail to respond to 5.
>Fix:


>Release-Note:
>Audit-Trail:

From: "Thomas D. Dean" <tomdean@speakeasy.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/162489: After some time X blanks the screen and does not
 respone to mouse or keyboard
Date: Mon, 14 Nov 2011 09:51:50 -0800

 If I do
 
 xset -dpms
 
 After three days, no problem.
 
 This is related to suspend/resume.
 
>Unformatted:
