Suspending to SD card on an Asus EEE PC
A message that is not in the archive (sent off-list or not yet received): [email protected]
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 insuspend.cfail, 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