Skip to contentSkip to conversation

Suspending to SD card on an Asus EEE PC

Suspend-devel Rafael J. Wysocki 1 participant 1 message Feb 3, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Max Whitney

I've been trying to use Uswsusp to suspend to disk on my Asus EEE PC using an SD card as the resume device. The suspend program appears to run successfully with no errors, but the resume program doesn't do anything besides print the message that says it's running. On further examination, the Uswsusp signature is not on the disk after suspending and rebooting.

Quoted 7 lines

The problem seems to be that the two calls to fsync in the write_image() function in suspend.c fail, leaving errno set to 5 and perror reporting "Input/output error".

I'm not sure if this is a Uswsusp problem or just my configuration, but I'm not sure what to try now. Is suspending to a removable device (I think it's a USB device internally) just a bad idea? Any advice, or ideas on how to continue debugging?

Actually, this is a kernel problem.

In short, the kernel disconnects removable storage devices before putting them into low power states and this cannot be fixed totally cleanly, AFAICS.

If this is a USB device, you may try to set CONFIG_USB_PERSIST in the kernel config (this is not a safe option, though).

Thanks,
Rafael