Sponsored Content
Full Discussion: Hibernate in Linux
Operating Systems Linux Red Hat Hibernate in Linux Post 302154884 by sysgate on Wednesday 2nd of January 2008 09:45:38 AM
Old 01-02-2008
1 - general answer, what OS ?
2 - yes.
 

6 More Discussions You Might Find Interesting

1. AIX

AIX, Hibernate, Java 1.5 website problem

We have an AIX machine running Tomcat 5.0.28 along with Java 1.5. There are two web application on there however when we start Tomcat and unpack the WAR files only one of the sites work. Then if we remove the working site then the other site starts to work. So it appears that one is taking... (0 Replies)
Discussion started by: coaxis
0 Replies

2. Linux

How to enable Hibernate

Hi, I want to enable hibernate in my machine. when i click hibernate option, it is throwing message that hibernate is not enabled in kernel. earlier, i was hibernating in the same machine with windows os. any idea ? Thx in advance. Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies

3. Shell Programming and Scripting

Edit hibernate config file

I'd like to use a shell script to edit the params in my hibernate.cfg.xml file. I need to substitute the database info(user name, password,url) Here is a look at it: <hibernate-configuration> <session-factory name=""> <property... (1 Reply)
Discussion started by: mc1392
1 Replies

4. Ubuntu

Sound fails after waking from hibernate -- Intrepid/Xubuntu

Title says it all. Occasionally but frequently I lose sound: external speakers and headphones both make no noise. I just realized that this tends to happen (perhaps only happens) after starting the computer following hibernation. Rebooting always fixes the issue... but I'd hate to tell my... (3 Replies)
Discussion started by: CRGreathouse
3 Replies

5. UNIX for Dummies Questions & Answers

How to "hibernate" a process?

Hello everyone! Here's my problem (I'm a newbie): I use a program/calculator which launches several parallel processes at each iteration. Then it expects to receive a response file from each of the processes before continuing to the next iteration: Launch_program ---> starts 30 processes... (6 Replies)
Discussion started by: kasumlolla
6 Replies

6. UNIX for Advanced & Expert Users

Hibernate and Suspend

I have a C++ program which ends up getting run on every conceivable distro. What I can't do in C++, I can do by shelling out to the O/S. I am trying to find a portable way to send the system into hibernate and suspend modes. For users who have pm-utils, of course, I can use that, but I am trying... (4 Replies)
Discussion started by: BrandonShw
4 Replies
HIBERNATE(8)															      HIBERNATE(8)

NAME
hibernate - save your computer's state to disk, and then switch it off SYNOPSIS
hibernate [OPTION]... DESCRIPTION
The hibernate script (or "suspend script") is used to invoke the Linux kernel's Hibernation functionality. When you hibernate your machine, the contents of your computer's memory will be saved to disc, and your computer will switch off. When you switch it back on again, it will resume exactly as it was when you hibernated. This script is designed for TuxOnIce, which is not yet included in the main kernel tree and must be downloaded from the TuxOnIce web site at http://www.tuxonice.net/, but can also utilise the vanilla kernel interfaces for swsusp or pmdisk (through /proc/acpi/sleep or /sys/power/state). Instructions on setting up the kernel can also be found on that web site. The hibernate script takes care of the user-space side of the suspend, including unloading and reloading drivers which don't suspend prop- erly, setting the system clock after resuming, taking down and bringing up network interfaces and various other hacks that may be required on some hardware. By default, all it does is restore the system clock after suspending; see hibernate.conf(5) for information on configur- ing the rest of its functionality. If the hibernate script is invoked with a name of the form hibernate-foo then it will use the configuration file /etc/hibernate/foo.conf instead of the default. The hibernate script accepts the following command-line options: OPTIONS
-h, --help Shows this help screen. --version Shows the Hibernate Script version. -f, --force Ignore errors and suspend anyway. -k, --kill Kill processes if needed, in order to suspend. -v<n>, --verbosity=<n> Change verbosity level (0 = errors only, 3 = verbose, 4 = debug) -F<file>, --config-file=<file> Use the given configuration file instead of the default () --dry-run Don't actually do anything. -g, --restore-grub Restores the grub menu to normal (use if a resume was not completed successfully) and exits the script. A suspend is not performed. --lock-console-as <username> Uses vlock to lock the entire system after resuming, requirng you to enter the password for the given user to unlock it. This overrides any username given in the configuration file. (Requires vlock) -n, --no-suspend Disables actually suspending the system. This is useful for testing the hibernate script itself. -r[0|1], --reboot[=<0|1>] (requires UseTuxOnIce on) If 0 is specified, disables rebooting after writing the image, regardless of the Reboot option in the configuration file. If 1 or omitted, will force a reboot after writing the image. --bug-report (requires UseTuxOnIce on) Gathers a bunch of information about your machine and writes it to standard output. Please attach this information along with any bug reports to the TuxOnIce mailing list. EXIT CODES
The exit codes returned by the hibernate script are currently as follows: 0 Hibernation was completed successfully. 2 Hibernation was aborted due to errors from some part of the script. (eg, modules not unloading, devices or filesystems in use). 3 Hibernate script was aborted by user with Ctrl+C. (This does not mean the suspend was aborted by a user by pressing Escape). 4 Hibernation was aborted by a kernel problem (hibernate.log and dmesg should indicate why), or the user aborted the suspend with the Escape key. FILES
/etc/hibernate/hibernate.conf Contains options which influence the hibernate script's behaviour. See hibernate.conf(5) for more information. /etc/hibernate/scriptlets.d/ /usr/share/hibernate/scriptlets.d/ /usr/local/share/hibernate/scriptlets.d/ These directories contains "scriptlets" that provide functionality when suspending and resuming. See the SCRIPTLET-API file included with the distribution (which can be found in /usr/share/doc/hibernate on Debian systems) for information on how these work. BUGS
Probably lots! If you have problems with the hibernate script or TuxOnIce, the best place to ask is on the mailing list - tuxonice-users@lists.tuxon- ice.net. You will need to subscribe to post. See http://www.tuxonice.net/lists for details. If the suspend process itself crashes (while "Writing caches", "Reading caches", or "Copying original kernel back", etc), then the problem lies with TuxOnIce itself. See the FAQ at http://www.tuxonice.net/ for help on debugging. AUTHOR
This script was written by Bernard Blackham, with contributions from: o Carsten Rietzschel (modules, bootsplash and grub scriptlets. many ideas and bugfixes) o Cameron Patrick (many bugfixes and ideas, man page and Debian packaging) SEE ALSO
hibernate.conf(5) Linux Hibernation May 2012 HIBERNATE(8)
All times are GMT -4. The time now is 04:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy