Bug 109207

Summary: ACPI Problem
Product: Base System Reporter: Nicholas Hockey <nhockey>
Component: kernAssignee: freebsd-acpi (Nobody) <acpi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Nicholas Hockey 2007-02-15 19:20:04 UTC
When hw.acpi.sleep_button_state is set to S1 and i suspend my computer
using acpiconf -s 5, on resume it freezes. I bealive it's trying to
resume from a S1 state even though it was suspended to a S5 state. The
reason i believe this to be true is, when hw.acpi.sleep_button_state is
set to S5 everything seems to work fine. Also when when i set either
hw.acpi.power_button_state or hw.acpi.lid_switch_state to S5 everything
seems to work fine either closing the lid or pressing the power button.

sysctrl hw.acpi output:
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S5
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 1
hw.acpi.verbose: 0
hw.acpi.disable_on_reboot: 0
hw.acpi.handle_reboot: 0
hw.acpi.reset_video: 0
hw.acpi.cpu.cx_supported: C1/0 C2/50
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00% 0.00%
hw.acpi.acline: 0
hw.acpi.battery.life: 40
hw.acpi.battery.time: 190
hw.acpi.battery.state: 1
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5
hw.acpi.video.crt0.active: 0
hw.acpi.video.lcd0.active: 1
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.user_override: 0
hw.acpi.thermal.tz0.temperature: 25.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 0
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 78.0C
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Fix: 

if you want to use acpiconf -s to suspend the machine you MUST set hw.acpi.sleep_button_state to the same state prior to issuing the acpiconf command.
How-To-Repeat: Set hw.acpi.sleep_button_state to S1
use sysctrl -s 5 to suspend
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2007-02-15 19:44:53 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-acpi

Over to maintainer.
Comment 2 John Baldwin freebsd_committer freebsd_triage 2007-02-16 02:30:14 UTC
Umm, S5 is system-off, not suspend.

-- 
John Baldwin
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2007-04-22 11:22:47 UTC
State Changed
From-To: open->feedback

To submitter: did the respondant's feedback fix this problem for you?
Comment 4 Nicholas Hockey 2007-04-22 16:21:43 UTC
Occasionaly i still have a problem with on resume, but i bealive it's
more closely related to acpi. This problem seems fixed in the most
recent snapshot of RELENG_6. When i have more info as to the acpi lock,
i will open a seperate ticket.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2007-06-15 11:16:49 UTC
State Changed
From-To: feedback->closed

Submitter notes that the original problem seems to have been solved.