From owner-freebsd-mobile@FreeBSD.ORG Fri Aug 21 03:39:15 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC3D4106568B for ; Fri, 21 Aug 2009 03:39:15 +0000 (UTC) (envelope-from snikeris@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 632348FC55 for ; Fri, 21 Aug 2009 03:39:14 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so107516eye.7 for ; Thu, 20 Aug 2009 20:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ETLmjWMl3jydJ4y5J3Lv9MaAAjvYSpfN2/JLSAvQEHY=; b=w19MjajsQHAw1vnhAkMWKaK0xPm2JDvmSGy8xowflzEgMDYy7wMI2OnbhJ38kHHjPF IPrPH8H0a3xHsHArX/wlN7ykw7mfhITRTdiRPV/rPMLAHWwUTmVcOLXpP6saKzS3XfdE Be3eckhGR2i9R6NBRVMtmmLuP3vR3He7EeCWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=OdG6vbVG5WOb/lFQoINc8uDb3uMEPpLRToZBXtz23htYB6hpTgx7mCznlEWtguQgKq lU4G3kNTx4Rxx28iGeLIllZuoXILluH3zCuYBMGPOUo8JBmLzUgYj8TDPDk4oM4G3ELi G2/GkvuVyfVfxif4YSvIk0JZylrD9hFqHzoOI= MIME-Version: 1.0 Sender: snikeris@gmail.com Received: by 10.216.11.207 with SMTP id 57mr104587wex.154.1250824544914; Thu, 20 Aug 2009 20:15:44 -0700 (PDT) Date: Thu, 20 Aug 2009 23:15:44 -0400 X-Google-Sender-Auth: d556ef14642d2f34 Message-ID: <20b8a1c50908202015o440316del7f67238eb6169d59@mail.gmail.com> From: Joe Snikeris To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Suspend to disk (hibernate) on a Thinkpad x40 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 03:39:15 -0000 Hi all, I'm trying to get suspend-to-disk working on my ThinkPad X40. APM is enabled, suspend-to-ram is working perfectly, I've created a partition of type 0xa0 with size 1608MB (1270MB of RAM on this machine), formatted it as FAT32, and created a save2dsk.bin on it w/ tphdisk. But Fn-F12 does nothing. Anyone have any idea what I might be missing? Config: ~ $ uname -a FreeBSD sussman.snikeris.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 ~ $ cat /boot/loader.conf # Disable boot menu beastie_disable="YES" autoboot_delay=-1 # Needed for firefox to display certain HTML5 elements sem_load="YES" # Needed for sound snd_ich_load="YES" # Needed for wireless (iwi) if_iwi_load="YES" wlan_load="YES" firmware_load="YES" iwi_bss_load="YES" iwi_ibss_load="YES" iwi_monitor_load="YES" legal.intel_iwi.license_ack=1 # Needed for 3d graphics acceleration agp_load="YES" # Needed for cdrecord to work atapicam_load="YES" # Needed so we can resume from suspend w/ a working display. #hw.acpi.reset_video=1 # Needed so mouse will work on resume #hint.psm.0.flags="0x3000" # Possibly needed for successful resume #hint.apic.0.disabled=1 # See 'man acpi_ibm' #acpi_ibm_load="YES" acpi_load="NO" apm_load="YES" ~ $ cat /boot/device.hints # $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.16.8.1 2009/04/15 03:14:26 kensmith Exp $ hint.acpi.0.disabled="1" hint.apm.0.disabled="0" hint.apm.0.flags="0x20" hint.fdc.0.at="isa" hint.fdc.0.port="0x3F0" hint.fdc.0.irq="6" hint.fdc.0.drq="2" hint.fd.0.at="fdc0" hint.fd.0.drive="0" hint.fd.1.at="fdc0" hint.fd.1.drive="1" hint.ata.0.at="isa" hint.ata.0.port="0x1F0" hint.ata.0.irq="14" hint.ata.1.at="isa" hint.ata.1.port="0x170" hint.ata.1.irq="15" hint.adv.0.at="isa" hint.adv.0.disabled="1" hint.bt.0.at="isa" hint.bt.0.disabled="1" hint.aha.0.at="isa" hint.aha.0.disabled="1" hint.aic.0.at="isa" hint.aic.0.disabled="1" hint.atkbdc.0.at="isa" hint.atkbdc.0.port="0x060" hint.atkbd.0.at="atkbdc" hint.atkbd.0.irq="1" hint.psm.0.at="atkbdc" hint.psm.0.irq="12" hint.vga.0.at="isa" hint.sc.0.at="isa" hint.sc.0.flags="0x100" hint.vt.0.at="isa" hint.vt.0.disabled="1" hint.sio.0.at="isa" hint.sio.0.port="0x3F8" hint.sio.0.flags="0x10" hint.sio.0.irq="4" hint.sio.1.at="isa" hint.sio.1.port="0x2F8" hint.sio.1.irq="3" hint.sio.2.at="isa" hint.sio.2.disabled="1" hint.sio.2.port="0x3E8" hint.sio.2.irq="5" hint.sio.3.at="isa" hint.sio.3.disabled="1" hint.sio.3.port="0x2E8" hint.sio.3.irq="9" hint.ppc.0.at="isa" hint.ppc.0.irq="7" hint.ed.0.at="isa" hint.ed.0.disabled="1" hint.ed.0.port="0x280" hint.ed.0.irq="10" hint.ed.0.maddr="0xd8000" hint.cs.0.at="isa" hint.cs.0.disabled="1" hint.cs.0.port="0x300" hint.sn.0.at="isa" hint.sn.0.disabled="1" hint.sn.0.port="0x300" hint.sn.0.irq="10" hint.ie.0.at="isa" hint.ie.0.disabled="1" hint.ie.0.port="0x300" hint.ie.0.irq="10" hint.ie.0.maddr="0xd0000" hint.fe.0.at="isa" hint.fe.0.disabled="1" hint.fe.0.port="0x300" hint.le.0.at="isa" hint.le.0.disabled="1" hint.le.0.port="0x280" hint.le.0.irq="10" hint.le.0.drq="0" ~ $ cat /etc/rc.conf # -- sysinstall generated deltas -- # Sat Jul 4 11:10:49 2009 # Created: Sat Jul 4 11:10:49 2009 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. # Set by sysinstall hostname="sussman.snikeris.com" #ifconfig_em0="DHCP" linux_enable="YES" moused_enable="YES" # Allow X to locate mouse and keyboard automatically using HAL hald_enable="YES" dbus_enable="YES" keyrate="fast" keybell="off" apm_enable="YES" apmd_enable="YES" ~ $ apm APM version: 1.2 APM Management: Enabled AC Line status: on-line Battery Status: charging Remaining battery life: 87% Remaining battery time: unknown Number of batteries: 2 Battery 0: Battery Status: charging Remaining battery life: 87% Remaining battery time: unknown Battery 1: not present APM Capabilities: global standby state global suspend state resume timer from suspend RI resume from suspend PCMCIA RI resume from suspend ~ $ sudo fdisk ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 74845953 (36545 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 160 (0xa0),(Suspend to Disk) start 74846835, size 3293325 (1608 Meg), flag 0 beg: cyl 524/ head 13/ sector 1; end: cyl 719/ head 15/ sector 63 The data for partition 3 is: The data for partition 4 is: