From owner-freebsd-acpi@FreeBSD.ORG Thu Apr 24 15:18:15 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F8C5106566B for ; Thu, 24 Apr 2008 15:18:15 +0000 (UTC) (envelope-from olivier@aixmarseille.com) Received: from royale.aixmarseille.com (royale.aixmarseille.com [82.243.78.230]) by mx1.freebsd.org (Postfix) with ESMTP id A2FF58FC14 for ; Thu, 24 Apr 2008 15:18:14 +0000 (UTC) (envelope-from olivier@aixmarseille.com) Received: from [81.80.156.37] (helo=[192.168.200.114]) by royale.aixmarseille.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Jp2jm-0001ZP-1M for freebsd-acpi@freebsd.org; Thu, 24 Apr 2008 16:47:50 +0200 Message-ID: <48109D9C.70103@aixmarseille.com> Date: Thu, 24 Apr 2008 16:47:56 +0200 From: Olivier Fauchon User-Agent: Thunderbird 2.0.0.12 (X11/20080415) MIME-Version: 1.0 To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Reboot on wakeup/resume from Suspend on Ram S3 - Dell Latitude D430 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 15:18:15 -0000 Hi, When I try 'acpiconf -s3' on my Dell Latitutde D430 (Bios Rev A05), it goes to sleep (Power Led waves, LCD OFF, etc.... everything seems ok ) With messages console : Apr 24 12:08:58 casino kernel: acpi_lid0: wake_prep enabled for \_SB_.LID_ (S3) Apr 24 12:08:58 casino kernel: acpi_button0: wake_prep enabled for \_SB_.PBTN (S3) Apr 24 12:08:58 casino kernel: unknown: wake_prep disabled wake for \_SB_.PCI0.USB0 (S3) Apr 24 12:08:58 casino kernel: unknown: wake_prep disabled wake for \_SB_.PCI0.USB1 (S3) Apr 24 12:08:58 casino kernel: unknown: wake_prep disabled wake for \_SB_.PCI0.USB2 (S3) Apr 24 12:08:58 casino kernel: unknown: wake_prep disabled wake for \_SB_.PCI0.USB3 (S3) Apr 24 12:08:58 casino kernel: unknown: wake_prep disabled wake for \_SB_.PCI0.EHCI (S3) Apr 24 12:08:58 casino kernel: vga0: saving 68 bytes of video state ... Then, when I press the power button to wake it up, the laptop goes on and reboots (Bios splash screen). I added "debug.acpi.resume_beep=1" in my loader.conf, but I never heard such beeps at resume, (Seems ACPI can't jump to FreeBSD resume code ?) ANY ideas to troubleshoot that welcome. NB: this is a Intel Core 2 CPU U7600 ** Here is the way I prepared my system: (All the debug files can be seen here: http://www.aixmarseille.com/pub/acpi_fb7_casino/ ) * I downloaded recent /usr/src with cvsup on 12 april 2008 * I Compiled various kernels combinations with acpi/apic/smp/original_acpi, acpi/no_apic/no_smp/patched_acpi. * I Corrected the asl code: casino-fb7.asl 1283: Name (_HID, "*pnp0c14") Error 4001 - String must be entirely alphanumeric ^ (*pnp0c14) -> casino-fb7.asl 1283: Name (_HID, "*pnp0c14") casino-fb7.asl 2804: Name (_T_0, Zero) Error 4081 - Use of reserved word ^ (_T_0) -> casino-fb7.asl 2804: Name (T_0, Zero) casino-fb7.asl 4073: And (Local0, 0x0F) Warning 1104 - ^ Result is not used, operator has no effect -> NO IDEA how to correct that, and It's warning. I keep unchanged casino-fb7.asl 4882: Return (Package (0x00) {}) Remark 5070 - Effective AML package length is zero ^ -> NO IDEA how to correct that, and It's warning. I keep unchanged casino-fb7.asl 5092: Wait (EJTD, 0xA000) Warning 1103 - Possible operator timeout is ignored ^ ->casino-fb7.asl 5092: Wait (EJTD, 0xFFFF), ( * Added some LID PATCH so the screen goes on when you open the LID (that works) > > // From http://www.reactivated.net/systems/dell-640m/dsdt/01_lid-power-lcd.patch > // If lid open, enable video > If (LNotEqual(\_SB.LID._LID(), 0)) { > \_SB.PCI0.VID.LCD._DSS(0x80000001) > Notify (\_SB.LID, 0x80) > Return > } > > // If lid closed, continue > > // End DELL LID PATCH * Added some S3_prepare script: [root@casino ~/bin]# cat prepare_s3 #!/bin/sh /etc/rc.d/wpa_supplicant stop iwn0 ifconfig iwn0 down ifconfig iwn0 delete for i in linux ucom ugensa ucom uhid ums usb agp i915 drm wlan_scan_sta wlan_wep wlan_ccmp wlan_tkip wlan_amrr wlan iwnfw if_iwn snd_hda sound; do kldunload $i; done acpiconf -s3 .... So the kernel is as light as possible when I switch to S3