WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: suspend, standy, hibernate  (Read 3000 times)

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
suspend, standy, hibernate
« on: September 26, 2011, 12:28:11 PM »
Hello

i was hopeing you can help me with this topic and tcl.

First off....i am assuming  "standy" is the same thing as "suspend" right.

Recently, i got standby correctly working on a laptop that was using a SD card reader and microSD card for tce/.  (it would wake up from standy and work correctly)
The command that did it was 
echo mem > /sys/power/state

Now i am on a different laptop and i no longer have the microSDcard .........so i am just using a normal USB pen drive for /tce .............and for the swap disk of 600 megs.

Standby does not work on this laptop. When the machine wakes from standy it does not find the pen drive. If i plug-replug the pen it is found and able to be mounted in that session but it's name has changed from sdb1 to sdc1  (while file manager still shows that sdb1 exists) So tcl apps do not work.
How could i get this laptop to standy successfully?

I have been trying "hibernate" instead.
I tried the app called "suspend.tcz" from the apps store.
The command i issued was "s2disk -r /dev/sda2"
That command successfully gets the machine to create the image file "takes a while"
and then the machine shuts down.
But on re-starting the machine what would i type a boot?  (otherwise it just does a normal CD boot)

I was told that for "hibernate" to work you must issue a boot code before you boot into a regular
tcl boot. Then you issue the "hibernate" command in that desktop session. Then when the machine has "hibernated" you type some specific boot code to wake it up again?

i have tried a bootcode of

tc resume=/dev/sda2

but it does not seem to like this....or at least it does not seem to work right. It boot into
a desktop with nothing there....no wap bar etc.

I know these above issues come about because it's a pen drive that is different from the microSD card which was fine for standing by.

What is different about his pen drive?....is it somekind of wait issue?...or is it perhaps notliking
the fact that a swap disk is also on the pen?

thanks

V.



Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: suspend, standy, hibernate
« Reply #1 on: September 26, 2011, 01:34:41 PM »
echo mem > /sys/power/state
This (run as root) works for me booting from usb stick on a laptop

Quote
..or is it perhaps notliking the fact that a swap disk is also on the pen?
This is not a good idea regardless of suspend or not.

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: suspend, standy, hibernate
« Reply #2 on: September 26, 2011, 03:45:31 PM »
Ahh Juanito,

this laptop here is not booting from usb pen....it boots from CD

The pen drive just contains tce/ and also a swap area of 600 megs.

I tried the same command as you but it won't wake up from the standby.
It's something to do with the pen drive and mounting.

the swap is on pen because there is no where else to put it. (other than a different pen)
( no hard drive)

well....i spent a couple of hours and didn't figure this topic out.

The app "suspent.tcz" hasn't much good info with it. There is further info in this forum

It looks like it depends on the types of pen drive. Some drives work....some don't.

V

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: suspend, standy, hibernate
« Reply #3 on: September 27, 2011, 10:08:05 AM »
Hello

I am still not sure about this subject.

It seems silly that "some" usb pens work fine and others don't.

I know from experience that this is the case. Some pens are not found on booting a machine with a tcl CD....where-as others are found correctly. Sometimes usb hubs also cause issues. Where the machine needs completely powering off otherwise pens are not correctly found next time.

I am not sure because my bios also has settings for suspend. I don't know if those settings are independant of any OS....?

Is this whole subject above purely about usb-wait times?....or are there actually cases
where some pen drives are simply troublesome?

My pen drives are mp3 players that have been fat fornatted. I mean how different is this from a dedicated USB pen drive?  (i ask because i have had USB card readers that work fine with a microSD card and tinycore....no issues at all)

there is never an issue with tcl finding pens at the desktop. It's the booting procedures
that the issue here.

I have never booted tcl directly from a USB pen. (it's needs the whole pen right?)

anyhow, my logic was simply that ALL usb pens should appear the same to an OS and hardware. But it seems that, an mp3player pen, or true USB pen, or card reader with SDcard, may all appear slightly differently to laptops and tcl.  (in technical terms)

thanks

V.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: suspend, standy, hibernate
« Reply #4 on: September 27, 2011, 10:46:57 AM »
I have never booted tcl directly from a USB pen. (it's needs the whole pen right?)

No, under linux you can create several partitions and boot from one of them.

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: suspend, standy, hibernate
« Reply #5 on: September 27, 2011, 09:09:18 PM »
Hello,

oh i see.

So i can install TCL into it's own partition on usb pen....then boot to it.

Is this effectively similar to a CD boot. Meaning the CD disc can be removed...
With a pen, does it mean that TCL is no longer looking at the pen for anything
after it's booted up.....and is just running in ram.

V.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: suspend, standy, hibernate
« Reply #6 on: September 27, 2011, 10:19:52 PM »
It works just like a hard drive.
It will only remain mounted after boot if it contains the active tce directory.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: suspend, standy, hibernate
« Reply #7 on: September 27, 2011, 11:26:48 PM »
..or you could boot with the boot codes "base norestore"

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: suspend, standy, hibernate
« Reply #8 on: September 27, 2011, 11:34:55 PM »
In which case the drive won't have an active tce directory.

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: suspend, standy, hibernate
« Reply #9 on: September 28, 2011, 10:40:15 AM »
Hello

Understood yes.

booting from pen seems like a nice idea. It is better than CD discs.

Well, i just remembered, of course not all things are going to work right. (pens etc) it
would be ridiculous to think that they would
. The laptop is 11 years old
and tcl is updated almost weekly. Pen drive infrastructures are maybe
3 years old. These time boundaries are very large boundaries to cross on such cheap
minimalistic yet complex gear.....like personal computers...

V.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: suspend, standy, hibernate
« Reply #10 on: September 28, 2011, 11:02:44 AM »
The laptop is 11 years old

..so it's unlikely the bios will let you boot from a usb stick

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: suspend, standy, hibernate
« Reply #11 on: September 29, 2011, 10:18:17 AM »
Hello Juanto

yes, you are right

Yet again i broke the laptop last night...

The evening before that, it was the headphones that broke.

luckily it's all sorted out now. It's hard for me to do without this laptop. It gets
heavily used because it's a nice one.

For booting to USB there is PLOP boot manager. This can be burned on a bootable CD
or it can be installed to the HDD or it can be installed into your bios chip.

When the machine starts-up you get offered all available booting
options like USB,HDD, CDROM, PCMCIA SLOT, NETWORK and others.

This Plop can be handy if you can't enter or edit bios screens. Plop will allow you to choose
boot devices thus giving you that control.

Yes

V.