how grub knows there is a system in suspend/hibernate state ?
Dear fellows,
How grub knows there is a system in suspend/hibernate state ? The amazing is it returns to the previous hibernated/suspend system even if it is windows XP, Vista or Linux, in a triple boot machine. I expected when I turn on my computer again after I have put a system in hibernate mode, the grub menu shows up, then I select a system, let say, Windows XP, and then the system figures out it was in hibernate mode and resumes. But it is not in this way this things happens. I do not have a chance to select any option in grub's menu. It starts to resume the previous system whatever it was. How this works ? |
Quote:
This is only the algorithm, for more read> http://www.thinkwiki.org/wiki/Softwa...ecreate_initrd |
And for the record, a hibernation is a process which saves the content of the ram memory to a static file as an image, so every OS has some image like that. Then it shutdown the computer.
On the other hand the suspend system is a hardware based, it saves the content of the ram and then it tells the bios to switch to another power level - that is suspend. |
thank you, but I think something happens before that controlled by grub.
In a multiple boot system controlled by grub, if a windows system is put to hibernate, grub "knows" it must boot the windows system which resumes from hibernation - and in this case, initrd has nothing to do with this process. The same is valid if another linux system is put to hibernate; when you turn on your system againgrub "knows" what system it must call to resume. So I guess the key here is "grub" but I was unable to find any information about how this works on grub documentation.... |
Quote:
See here for a reference> http://mandrivausers.org/index.php?/...disables-grub/ |
Quote:
Another OS, let say, Windows, does not known anything about grub so it is unlike it could disable it. Think about... |
I dig up this FAQ:
http://wiki.debian.org/Grub#FAQ |
this phrase on the link you provided, DamjanDimitrioski:
Quote:
I think I will google about any information that could confirm this. This time I will focus on BIOS calls/interrupts. see'ya, |
I think this answers everything>
http://en.wikipedia.org/wiki/Hibernate_%28OS_feature%29 the OS puts the bios to S4, the power manager i.e the ACPI is doing all the work. The ACPI has all the information, I believe this is what you were looking for. If this doesn't help you, it helped me, I learned new stuff :). |
yes, it does, indeed !
now the things are more clear in my head. So, grubs does not have anything to do with hibernate/suspend modes - it is the BIOS which is responsible for start up the OS previously in hibernate/suspend mode. thank you DamjanDimitrioski for the valuables links. I learned a lot too ! best regards, |
All times are GMT -5. The time now is 02:01 PM. |