From ThinkWiki
Jump to: navigation, search

Suspend2 + SATA resume on 2.6.14?

Anyone got suspend-to-RAM (with the 3rd patch from Problems with SATA and Linux) and Suspend2 working with kernel 2.6.14? It's "either, or" for me, when using both patches I get rather nasty looking kernel oops when hibernating...

--spiney 08:03, 10 Nov 2005 (CET)

Yes, it works fine for me on a T43. Are you using the latest Suspend2? Did you try hibernating from single mode, or even from init=/bin/sh mode, to make sure it's not a driver issue?

--Thinker 11:59, 10 Nov 2005 (CET)

Yes, latest 2.2-rc9 for 2.6.14. Basically it works, the notebook just doesn't power off at the end of suspending, but when running with all the debugging options turned on I got an oops in xfsbufd, so maybe it has something to do with me using xfs. What filesystem types are you using?

Haven't retried after that, bit scared about losing data, don't have time to reinstall everything atm. Once I got a bit more spare time I'll give it another go. suspend for 2.6.12 worked fine, so I suppose it's not driver issue.

--spiney 12:53, 10 Nov 2005 (CET)

Oh, and I get that power off issue too, but it otherwise works and I didn't try enabling debug. I'm using ext3 in this machine (it got the most testing, so probably a good choice given all the oddball software and hardware in laptops). Are you using the file writer to hibernate to a file on xfs? There was a recent post by the developer about this being broken.

--Thinker 13:01, 10 Nov 2005 (CET)

Once I have time and scheduled IBM to replace my harddisk (the whining sounds it makes is really getting on my nerves, why get a 5400rpm drive if it's that loud?) I'll probably setup the system with ext3 and reinstall from the latest backup. Not using the filewriter btw.

Regarding the power off issue, changing the PoweroffMethod to 3 helps. Oh, and does your machine beep at suspend and resume (once each time) and didn't with older suspend2 versions? Mine did. Oh well, doesn't matter atm.

--spiney 17:43, 10 Nov 2005 (CET)

Are you sure "PowerdownMethod 3" really shuts down your machine? Here it does suspend to RAM, like it should, giving a Redisafe-like behavior (which is quite useful by itself, but consumers non-zero power.)

--Thinker 19:01, 10 Nov 2005 (CET)

it doesn't shutdown the machine as in power off, but I meant it's a workaround in case you actually want to hibernate, remove the power cord (I almost never have the battery inserted, sockets almost everywhere I am) and walk away without having to press the power button to manually power off the machine.

but of course, that's not really equivalent to powering off and does consume power.

--spiney 20:37, 10 Nov 2005 (CET)

If you unplug the power cord and don't have a bettery, it will power off by itself quite nicely. :-)

BTW, I likewise often work without a battery, both to avoid battery wear at full charge (we must find a way to control the charge threshold!) and to reduce weight. I wish there was some kind of light, low-capacity battery available, both to plug the gaping hole in the back and for the all-too-frequent accidents when I clumsily unplug the power cord. I wonder if this can be achieved surgically. The 6-cell battery have 3 cells in serial times 2 in parallel, so maybe one can take a used 6-cell battery and yank out 3 cells (and for best effect also replace the 3 remaining ones with 3 small low-capacity Li-Ion cells). Heck, even an empty 6-cell shell would be better than nothing.

--Thinker 21:32, 10 Nov 2005 (CET)

Damn, you got me there, indeed just ripping out the cord works fine. ;)

And a small battery (having the 9-cell myself) with controlled charging would be nice, I second that, at least as mini-UPS for the (luckily not many in my area) times when there's a power outage.

--spiney 23:47, 10 Nov 2005 (CET)

libata and suspend2

I can't get suspend for a long time. After getting libata working (Gentoo no-sources 2.6.18) it works perfect and fast. It do not need, in my case, extra_page_allowance.

I'm not sure is it only on my notebook and I'd like to informe about it without changing main page.

Compatibility with large memory?

Recently after upgrading the memory of my X41 to have 1.5 GB in total, software suspend 2 (2.6.16-2111, 2.6.17-2187 fc5 cubbi) always freezed when atomic restoring finished. This problem seems to be gone with 2.6.18-1.2257.fc5 cubbi. But I need to set full_pageset2 to 1 to avoid some random problem during suspending. I'm curious if this is a common problem or not? --Ychao 00:16, 25 March 2007 (CET)