From owner-freebsd-acpi@FreeBSD.ORG Tue May 26 14:14:11 2009 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 791D01065672 for ; Tue, 26 May 2009 14:14:11 +0000 (UTC) (envelope-from swehack@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 2EDAC8FC22 for ; Tue, 26 May 2009 14:14:07 +0000 (UTC) (envelope-from swehack@gmail.com) Received: by bwz9 with SMTP id 9so3921986bwz.43 for ; Tue, 26 May 2009 07:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Y2E6SPpQk2THL0rNR0uUHiCN9muXpSzbCoh+NdQfNXU=; b=o/WMOEjjRN8hZskywQ6Cw7/KJ84hXd0opyoUiYdl0jK6gYSNX2dyiLQVh6bGhfUKyO wgc9QLfH1/IF4BKcy60klXLhLECNgXuQ2jkpzHRVgJHDSmflJu/xbv04cfnn8+n6ZiGb 4mA19zcmxjZSzQ7c80ERufBFomsmmtSWrsTfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NTxwLLZU186lksXZk7i1NAmMLcTxkPHIsCJv85tyLcEbFkBN903Fp+DzXwmSe6oUwF VlCnYngkRrIj4Gyd0V4LQqI4t+6abJwz/s5gusAGGG1r11kybeGfAzCRIfAqyilTruJf gudbv1+o9wAaYI0R8BUFfKEcOeRwZTL2/86AY= MIME-Version: 1.0 Received: by 10.204.118.69 with SMTP id u5mr8175573bkq.77.1243345717118; Tue, 26 May 2009 06:48:37 -0700 (PDT) Date: Tue, 26 May 2009 15:48:37 +0200 Message-ID: <9aed80930905260648h41633265p1f69f4368a2c9b44@mail.gmail.com> From: nocturnal To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: MacBook, acpiconf sleep state shuts machine down 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: Tue, 26 May 2009 14:14:11 -0000 I'm trying to get my MacBook with FreeBSD 7.2-RELEASE to at least suspend t= o RAM, even though hw.acpi.supported_sleep_state lists S3, S4 and S5. Though it doesn't matter which one i use, it will not wake back up from the sleep state. So far i've created a devd notify which runs a script that in turn runs acpiconf when the Lid is closed and sets state S3. When the script receives 0x01 it sets S1. I've tried with S3, S4 and S5 at 0x00 and it never wakes up, should i use something other than S1 for 0x01? It goes into some sort of sleep state, the apple light goes off and i hear = a noise similar from my other macbooks with Darwin that indicates the HDD has turned off(I BELIEVE), it's basically the macbook-is-sleeping-sound again. ;D But when i then open the lid, it either shuts down and i have to turn it back on, or it gets stuck in sleep state and i have to do a cold shutdown and reboot it to get back into the system. How can i have acpi recognize the Lid is opened and do what it's being told even in sleep state? Is ACPI being disabled in sleep state? I've also set hw.acpi.disable_on_reboot=3D"1" in loader.conf to hopefully m= ake it stop this behaviour but it did not help. Also something i find weird or confusing is that sysctl has a value hw.acpi.power_button_state that is set to S5 and one hw.acpi.sleep_button_state set to S3. Also a hw.acpi.lid_switch_state set t= o NONE. hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.s4bios: 0 hw.acpi.handle_reboot: 0 I would appreciate any other hints & tips from people who have experience with CPU states and ACPI on macbooks. --=20 Med v=E4nliga h=E4lsningar Stefan Midjich aka nocturnal [SWEHACK] http://swehack.se