[SHR] Suspend / Resume speed

Cameron Frazier frazier.cameron at gmail.com
Thu Feb 26 19:03:43 CET 2009


On Thu, Feb 26, 2009 at 12:08 PM, "Marco Trevisan (Treviño)"
<mail at 3v1n0.net> wrote:
> Florian Hackenberger wrote:
>> I noticed that suspending / resuming on 2008.12 is quite fast compared
>> to SHR. The difference which is most noticeable is that SHR switches to
>> a virtual terminal before and right after suspending, as opposed to
>> 2008.12 which resumes right into X. Is there a way to replicate this
>> behaviour on SHR? I suspect that we could save at least a second of
>> resume time, because printing and scrolling a few hundred lines of
>> kernel log in addition to the mode switches takes a bit of time.
>
> Check your uboot commandline loglevel value... It highly impacts on the
> suspend/resume time. I've set it to 3 (but some time ago was set by the
> system to 8, and I had to wait more than 6-7 seconds to wake the phone,
> while it generally takes just 1-2 secs).
>
> Those commands in the uBoot shell should do the work:
> setenv bootargs roofstype=ext2 root=/dev/mmcblk0p2 console=tty0
> console=ttySAC2,115200 loglevel=3
> setenv bootargs_base rootfstype=jffs2 root=/dev/mtdblock6
> console=ttySAC2,115200 console=tty0 loglevel=3

Marco,

I tried what you have above and it seems to work quite well.
There is a small spelling mistake in the first command though:

"roofstype" should be "rootfstype", correct?

Also just to clarify, I almost missed it myself (caught it whilst
doing a typo check), the first command is for a SD card bootloader,
whereas the second command is for the internal flash?

Wicked fast resume though, I like it.

Regards,

Cameron




More information about the community mailing list