Questions tagged [hibernation]

Hibernation is a feature of many computer operating systems where the contents of RAM are written to non-volatile storage such as a hard disk, as a file or on a separate partition, before powering off the computer. When the computer is restarted it reloads the content of memory and is restored to the state it was in when hibernation was invoked. _Wikipedia

49 questions
10
votes
2 answers

Are there suspend\resume signals in Linux?

My application needs to react on hibernation mode so it can do some action on suspending and other actions on resuming. I've found some distributive-specific ways to achieve it(Upower + DBus) but didn't find anything universal. Is there a way to do…
ixSci
  • 13,100
  • 5
  • 45
  • 79
7
votes
2 answers

Set a one line powershell for sleep and hibernate to turn off

powershell -Command "& {c:\windows\system32\powercfg.exe -change -monitor-timeout-ac 0; c:\windows\system32\powercfg.exe - change - monitor - timeout - dc 0; c:\windows\system32\powercfg.exe - change - disk - timeout - ac 0;…
DDJ
  • 807
  • 5
  • 13
  • 31
5
votes
2 answers

How can I create an ec2 instance which can be hibernated?

I'm stuck in the storage stage. It says: To use hibernation, encrypt the root volume.. But I cannot click the encrypt checkbox, nor did I find any way to encrypt the root volume.
hansaplast
  • 11,007
  • 2
  • 61
  • 75
5
votes
1 answer

How to tell ScheduledExecutorService to ignore overlapping executions after resuming computer from suspension/hibernation

I've got a thread in charge of periodically refreshing some remote service queries response cache every 10-15 minutes. The problem is when a client's machine resumes from sleep the refresh task executes sleep time / refresh period times instead of…
4
votes
4 answers

How do I make a hibernation batch file?

I'm trying to make a batch file that executes a simple command: shutdown -h I've created a shutdown.bat file with that exact line in it, yet when I run it, all it does is spam the command prompt like crazy. I've looked at batch file sites, @echo…
ryanscottmurphy
  • 398
  • 1
  • 2
  • 14
4
votes
1 answer

How does mlock() work with hibernation?

Quoting the Linux Programmer's Manual (man 2 mlock): mlock(), mlock2(), and mlockall() lock part or all of the calling process's virtual address space into RAM, preventing that memory from being paged to the swap area. How does this work with…
jotik
  • 17,044
  • 13
  • 58
  • 123
3
votes
1 answer

My C# program running as Windows Service is blocking Windows XP from hibernation

I have Windows Service written in C#. It starts two threads, one is pooling a Web Service, second is waiting on a Monitor object for a new job to arrive. Besides that, the main thread acts as a WCF service host using NetNamedPipeBinding. It lets the…
sherpa
  • 326
  • 2
  • 11
3
votes
1 answer

Hbase on a VM: Can not access zookeeper after coming out of sleep on a laptop

The following error occurs on a VM after bringing the laptop out of sleep or hiberation ERROR: Can't get master address from ZooKeeper; znode data == null This error occurs when running any simple command from the hbase shell, for…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
2
votes
1 answer

Is the window handle (HWND) of a window persistent across hibernation?

Is the window handle (HWND) of a window (especially Windows Notepad) persistent during the lifetime of the window, especially across hibernation? Say I write a programm that retrieves (eg using FindWindowEx-function) and saves the handle of a…
user
  • 33
  • 4
2
votes
1 answer

Manually swap memory to files?

On platforms which does not have enough memory and which does not actively swap memory to files, mmap can be used to manually get "more memory than physically available". My question is, if we have already allocated some memory, and now the memory…
Mr User
  • 205
  • 1
  • 5
2
votes
1 answer

Notification when waking up from hibernation C#

Is there a way to get a notification (event) in my C# 2.0 application when the system wakes up from hibernation? My application is running in system tray at the moment the system goes into hibernation.
Liviu Mandras
  • 6,540
  • 2
  • 41
  • 65
2
votes
4 answers

How can I permanently bypass Windows XP startup?

I have an application for Windows XP. This application is deployed with the hardware. The application is the only application that ever runs on these machines. These machines are never connected to the internet. I'm interested in instant-on (or…
Sean
  • 1,373
  • 2
  • 14
  • 26
2
votes
2 answers

Prevent Windows 10 updates from losing my hibernation session?

I'm running a Dell XPS 9350 on Windows 10 (OS Build 10586.218), and have experienced the following issue: Windows session running with various apps open, Chrome, etc I close laptop lid (power options configured to sleep on this action) Machine…
2
votes
1 answer

Win 8 hibernation file format?

I am writing a C#/C++ program which will decompress win8 hibernation file. However, I haven't found hiberfil.sys format for new OS. Is there any description of Win8 hiberfil.sys file format to parse it?
Alex
  • 1,357
  • 3
  • 18
  • 41
1
vote
1 answer

Win xp hibernate timer

I've been trying to create a .bat file with the cmd - %windir%\system32\rundll32.exe powrprof.dll,SetSuspendState Hibernate. I´m doing this because I want to keybind it. My problem is, that I would like to add a timer to the cmd, so that it will be…
1
2 3 4