You are not logged in.

#1 2009-01-18 03:53:45

Svenstaro
Developer
From: Germany
Registered: 2008-11-19
Posts: 366

Rootfs gone after resume from s2ram

After a LOT of fighting, I finally managed to make my laptop come back from RAM without the screen staying black by switching the backend to uswsusp. The problem, however, is that whenever I come back from RAM, I am left with no rootfs which I consider unfortunate since it makes logging and easy debugging impossible. I have no idea if the problem is the HDD not spinning up again or if the rootfs simply isn't remounting because obviously no commands are available to me after resuming. I've played around with this quite a lot and thus I'm now querying the collective intelligence of these powerful forums. Interestingly, hibernate is working just fine.

I'm calling pm-suspend --auto-quirks.
I do not expect it to be an ext4 issue because it gave the same trouble with ext3.

Some specs first:
Acer Travelmate 803LCi
512MB slow-ass RAM
3GB Swap
80GB ext4 rootfs
200MB ext2 boot
Kernel26 2.28-3

Some configs now (only relevant lines of them):

/etc/mkinitcpio.conf

MODULES="pata_acpi ata_generic scsi_mod ata_piix ext2 ext3 ext4"
HOOKS="base udev autodetect pata scsi sata keymap uresume filesystems"

/etc/rc.conf

MOD_AUTOLOAD="yes"
MODULES=(fuse b44 acerhk mii acpi-cpufreq cpufreq_conservative cpufreq_ondemand cpufreq_powersave ipw2100 ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore !pcspkr)

/etc/pm/config.d/module

SLEEP_MODULE="uswsusp"
SUSPEND_MODULES="acerhk"

Last edited by Svenstaro (2009-01-18 03:54:58)

Offline

#2 2009-01-21 01:47:40

Svenstaro
Developer
From: Germany
Registered: 2008-11-19
Posts: 366

Re: Rootfs gone after resume from s2ram

Anybody? hmm

Offline

#3 2009-01-21 02:25:13

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: Rootfs gone after resume from s2ram

Do you use laptop-mode-tools?
  -- it remounts partitions so just maybe there is a problem, solution: a pm-utils hook that stops it prior to suspending and restarts it after resuming
Could you also suspend psmouse module?
  -- psmouse is known to cause all kinds of problems on Acer machines
Can acerhk be replaced with acer-wmi considering your hardware?
  -- it was called acer-acpi, a successor of acerhk, now it's called acer-wmi and it's in the kernel
Why do you remove acerhk module?
  -- just wondering, why do you need to remove it


You need to install an RTFM interface.

Offline

#4 2009-01-21 04:17:05

Svenstaro
Developer
From: Germany
Registered: 2008-11-19
Posts: 366

Re: Rootfs gone after resume from s2ram

I'm not using laptop-mode-tools but apart from that I just tried all you said, in various combinations and quite a bit more than that.

The only thing available to me after I get back from resume are the bash built-ins. Any way I can do anything useful with echo and read in this situation?

I'm one SAD panda.

Last edited by Svenstaro (2009-01-21 04:17:55)

Offline

Board footer

Powered by FluxBB