Bug 56024

Summary: ACPI suspend drains battery while in S3
Product: Base System Reporter: amistry
Component: kernAssignee: freebsd-acpi (Nobody) <acpi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-CURRENT   
Hardware: Any   
OS: Any   

Description amistry 2003-08-27 06:20:09 UTC
	When using ACPI to suspend the machine to S3 the battery is drained abnormally fast as if a device is not shutdown properly.

How-To-Repeat: 	On a Fujitsu P2110 with ACPI enabled on -CURRENT suspend the laptop into S3.  Wait about an hour then resume the laptop and notice that the battery is drained a few percent.  This doesn't happen in Win2k on the same machine or when just using hardware APM.
Comment 1 njl freebsd_committer freebsd_triage 2003-09-04 01:59:05 UTC
Responsible Changed
From-To: freebsd-bugs->njl

I will look at this after some other PRs.
Comment 2 Anish Mistry 2003-09-11 03:07:32 UTC
I think that I have figured out why this mysterious drain is occuring.  When I 
suspended today I noticed that the backlight turns of any everything sounds 
like it powers down, but if I look really close and have the right light 
angle, or have a lot of white text on the screen I can see that the display 
is STILL on.  At first I thought that this what burn in, but it would change 
when I would have different stuff on the console, and wouldn't appear when 
the system was completely powered down.  So it seems like ACPI is only 
turning off the backlight on the display, and not the display itself.  Hope 
this points someone in the right direction to a solution.
-- 
Anish Mistry
Comment 3 Anish Mistry 2003-10-29 05:45:37 UTC
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I did some more observing and noticed in Windows that it shuts off the disp=
lay=20
before going into suspend (ie. before the acpi beep).  This leads me to=20
believe that the ACPI suspend isn't responsible for shutting down the=20
display, but probably the driver, or just a generic VESA display shutoff=20
command if there exists one.  So a fix might be to shutoff the display righ=
t=20
before the ACPI actually calls the prep and suspend.
=2D --=20
Anish Mistry
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/n1QJxqA5ziudZT0RAukuAJ97NJyOZsdBnQkZ0mRrIahkMNKaDgCgowYr
42yr6Aqvn0rlZLdzwNQ1CFI=3D
=3Dj9BB
=2D----END PGP SIGNATURE-----
Comment 4 Nate Lawson 2003-10-29 07:53:30 UTC
On Tue, 28 Oct 2003, Anish Mistry wrote:
>  I did some more observing and noticed in Windows that it shuts off the
>  display
>  before going into suspend (ie. before the acpi beep).  This leads me to
>  believe that the ACPI suspend isn't responsible for shutting down the
>  display, but probably the driver, or just a generic VESA display shutoff
>  command if there exists one.

On most machines, the _PTS (prepare to sleep) node does the video shut
off.  On my IBM T23, this is what happens.  _PTS is called by
AcpiSleepStatePrep.  I'll have to look at your ASL to see what it has for
_PTS for the video adapter.

Windows info doesn't help much since MS expects video driver authors to
handle the suspend operation as part of WDM.  Since most don't release
specs on video drivers, we leave it up to X's drivers currently.  But they
are incomplete.

-Nate
Comment 5 njl freebsd_committer freebsd_triage 2004-10-17 20:03:36 UTC
Responsible Changed
From-To: njl->freebsd-acpi

Passing this to the acpi mailing list for historical purposes.  At some 
point, someone will have time to investigate suspend/resume.
Comment 6 njl freebsd_committer freebsd_triage 2004-10-17 20:03:36 UTC
Responsible Changed
From-To: njl->freebsd-acpi

Passing this to the acpi mailing list for historical purposes.  At some 
point, someone will have time to investigate suspend/resume. 

This problem will likely be solved by getting proper DPMS support in the 
kernel video driver and/or hooking X suspend/resume to /dev/apm when acpi 
is enabled.
Comment 7 Andriy Gapon freebsd_committer freebsd_triage 2010-12-05 14:42:28 UTC
Is this still an issue?
-- 
Andriy Gapon
Comment 8 Hiren Panchasara freebsd_committer freebsd_triage 2013-04-30 07:05:15 UTC
State Changed
From-To: open->closed

Closing 10 yrs old bug.