[ltp] swsusp / t23
Christopher Hubbell
linux-thinkpad@linux-thinkpad.org
Wed, 13 Oct 2004 05:32:59 -0400
Greetings,
I think I'm very close to conquering suspend to disk on my T23, but I've
hit a wall and am hoping someone else has broken through. Here's my
environment:
Kernel: 2.6.9.rc1
ibm-acpi: v0.3
Dist: Fedora Core 2
Grub.Conf:
kernel /vmlinuz-2.6.9.rc1-cgh2 ro root=LABEL=/ rhgb quiet
resume2=/dev/hda6
/etc/acpi/events/f12.conf:
event=ibm/hotkey HKEY 00000080 0000100c
action=/etc/acpi/actions/suspend2disk.sh
/etc/acpi/actions/suspend2disk.sh:
#!/bin/bash
rmmod uhci_hcd
echo "disk" > /sys/power/state
modprobe uhci_hcd
I know that the acpi event is being properly trapped from the acpid log:
[Wed Oct 13 05:20:05 2004] received event "ibm/hotkey HKEY 00000080
0000100c"
[Wed Oct 13 05:20:05 2004] notifying client 2472[500:500]
[Wed Oct 13 05:20:05 2004] executing action
"/etc/acpi/actions/suspend2disk.sh"
[Wed Oct 13 05:20:05 2004] BEGIN HANDLER MESSAGES
[Wed Oct 13 05:20:22 2004] END HANDLER MESSAGES
[Wed Oct 13 05:20:22 2004] action exited with status 0
[Wed Oct 13 05:20:22 2004] completed event "ibm/hotkey HKEY 00000080
0000100c"
And I see the display change to text mode, and go through the normal
messages
Stopping tasks:
=================================================================|
Freeing memory:
..............................................................................................floppy0:
no floppy controllers found
.....................................|
PM: Attempting to suspend to disk.
PM: snapshotting memory.
ACPI: PCI interrupt 0000:00:1d.0[A] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.0 to 64
ACPI: PCI interrupt 0000:00:1d.1[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.1 to 64
ACPI: PCI interrupt 0000:00:1d.2[C] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.2 to 64
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
e100: eth0: e100_watchdog: link up, 10Mbps, half-duplex
Restarting tasks... done
So, it looks like eveything works, but it never actually suspends... It
just suspends, then goes right back to the graphical display... I'm
suspicious of the floppy0 error, but I have no idea where this would be
coming from since I don't have a floppy drive. I don't even have the
floppy module loaded:
[cgh@synapse log]$ lsmod
Module Size Used by
uhci_hcd 34448 0
snd_mixer_oss 18688 2
snd_intel8x0 35336 3
snd_ac97_codec 71940 1 snd_intel8x0
snd_pcm 104456 1 snd_intel8x0
snd_timer 32260 1 snd_pcm
snd_page_alloc 9608 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 9472 1 snd_intel8x0
snd_rawmidi 26788 1 snd_mpu401_uart
snd_seq_device 7304 1 snd_rawmidi
snd 53220 10
snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9440 3 snd
nvram 13064 1
parport_pc 24512 1
lp 10604 0
parport 43336 2 parport_pc,lp
irda 136508 0
crc_ccitt 2176 1 irda
autofs4 26116 0
ds 15108 4
yenta_socket 19200 0
pcmcia_core 56972 2 ds,yenta_socket
sunrpc 171364 1
e100 44032 0
mii 4480 1 e100
microcode 6432 0
dm_mod 57108 0
ibm_acpi 10124 0
button 5272 0
battery 7692 0
ac 3724 0
ext3 116072 2
jbd 87448 1 ext3
I'm sure this is something obvious I'm overlooking - any RTFMs or help
would be greatly appreciated!
Thanks,
Chris