Suspend to disk (hibernate) on a Thinkpad x40

View: New views
4 Messages — Rating Filter:   Alert me  

Suspend to disk (hibernate) on a Thinkpad x40

by Joe Snikeris-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...:/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:
<UNUSED>
The data for partition 4 is:
<UNUSED>
_______________________________________________
freebsd-mobile@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..."

Re: Suspend to disk (hibernate) on a Thinkpad x40

by Joe Snikeris-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Aug 20, 2009 at 11:15 PM, Joe Snikeris<joe@...> wrote:

> 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?
>

Ok, I figured it out.  For the X40 at least, the partition type must
be 0x16 and it must be FAT16.
_______________________________________________
freebsd-mobile@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..."

Re: Suspend to disk (hibernate) on a Thinkpad x40

by Karel Miklav-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joe Snikeris wrote:
> Ok, I figured it out.  For the X40 at least, the partition type must
> be 0x16 and it must be FAT16.

Wow, I didn't know this is working! But why do you want to suspend to
disk, suspend to RAM is very quick and battery can hold the state for a
week?

I'd also like to ask if somebody has managed to make X40 suspend with
FreeBSD 8 and if it works with the latest Intel video drivers?

--

Thank you,
Karel Miklav
_______________________________________________
freebsd-mobile@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..."

Re: Suspend to disk (hibernate) on a Thinkpad x40

by Joe Snikeris-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Aug 22, 2009 at 2:16 PM, Karel Miklav<karel@...> wrote:
> Joe Snikeris wrote:
>>
>> Ok, I figured it out.  For the X40 at least, the partition type must
>> be 0x16 and it must be FAT16.
>
> Wow, I didn't know this is working! But why do you want to suspend to disk,
> suspend to RAM is very quick and battery can hold the state for a week?

I hibernate when the battery is about to die.
_______________________________________________
freebsd-mobile@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@..."