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
1
vote
1 answer

How to get notified programmatically when the system (Windows Laptop) goes to sleep/hibernation using Qt C++?

I have a Qt application that is built on Windows (Laptop). I am using a Windows 11 pro system, I need to get a notification/message when the system goes into sleep/hibernation. I have used the below code in my application. #include…
1
vote
2 answers

I am having problem with hibernate. I have ubuntu 20.04LTS and it doesn't hibernates

When i do sudo hibernate, it gives me this error : hibernate:Warning: Tuxonice binary signature file not found. Some modules failed to unload: nvidia_drm nvidia_modeset nvidia hibernate: Aborting suspend due to errors in ModulesUnloadBlacklist (use…
1
vote
0 answers

WSL session can not survive hibernation in No Hyper-V Windows

In order to run VirtualBox I have to disable Hyper-V features by editing bcd as follows: bcdedit /copy {current} /d "Windows 10" bcdedit /set {current} description "No Hyper-V" bcdedit /set {current} hypervisorlaunchtype Off But when I run Windows…
1
vote
2 answers

How to keep a C++ code running when the PC is in sleep mode?

I have a basic C++ code for a timer which works perfectly when the code is running, and the PC is not sleeping. I would like it to keep running even after the pc goes into sleep mode. Is it possible somehow? I am running Linux.
Mrwut
  • 23
  • 5
1
vote
0 answers

Does not Vmware workstation support hibernation on windows 10 virtual machine?

I developed some windows kernel driver. And I should test this driver on hibernating situation on windows 10 desktop. So I tried to test on windows 10 virtual machine. But I can't find any way to hibernate the machine. I already tried to execute…
1
vote
0 answers

Hibernation and resume on ARM

Problem: Linux can successfully hibernate to swap partition (/dev/mmcblk0p11) by echo disk > /sys/power/state, but can not resume from this partition. Linux version: 4.9.110 storage: EMMC Kernel CMD line: console=ttyS0 root=/dev/mmcblk0p10 rw…
Jason
  • 21
  • 2
1
vote
1 answer

What is Android process "ash" & how to prevent it from hibernating my app? (Android 7.0 doze mode)

I wrote an app that needs to wake up once per minute as long as it's running using a broadcast receiver declared in the manifest and triggered by AlarmManager.setAlarmClock() since it's the only exact solution that seems to be working on Android 7+…
1
vote
1 answer

Hibernate Linux on ARM

I am working to implement hibernation (Suspend to disk) on ARM and have successfully done that by using swsusp ARM patch by Sebastian Capella. Now I can hibernate (suspend to swap partition in sd card) the kernel using the command echo disk >…
zappy
  • 1,864
  • 3
  • 18
  • 36
1
vote
0 answers

Application not raising Microsoft.Win32.SystemEvents.PowerModeChanged event

I've written a simple class to create an abstraction of Microsoft.Win32.SystemEvents.PowerModeChanged event, this is the relevant code: Imports Microsoft.Win32 Public Class PowerStateMonitor Private ReadOnly events As EventHandlerList Public…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
1
vote
2 answers

Pausing program until next startup

I have a program which bruteforces an AES256 encryption, how would I pause the program when the computer goes into shutdown/or reboot and continue at the same point until the next boot of the system? A sort of hibernate of the program.
ManyQuestions
  • 1,069
  • 1
  • 16
  • 34
1
vote
3 answers

Windows notifications when hibernation fails

I'm coding using C++ with WinAPIs, and to hibernate the computer I use the following call: SetSuspendState(TRUE, NULL, FALSE); But what happens is that if the computer has larger RAM array installed the hibernation fails. So I was wondering, does…
ahmd0
  • 16,633
  • 33
  • 137
  • 233
1
vote
1 answer

WPF Application: Wake computer from sleep or hibernation

The last day i've tried to make this work: Wake up my computer from sleep or hibernation, using a WPF application. Nothing i've tried worked. So far I've tried the most popular examples on the net.. For example: [DllImport("kernel32.dll")] …
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
0
votes
2 answers

fidling with hibernation slowness on XP needed

Hibernating my laptop is very slow: 30min +, I have googled to no avail helas. some conflicting info and voodoo fidling seems to help some but not others (ie disabling DMA cache on the drive) My particular setup is as follows acer travelmate 663LMi…
artemon
  • 11
  • 1
0
votes
1 answer

GetPwrCapabilities is giving me wrong sleep state results on some computers. How can I get a more accurate result?

I have a 64-bit Win7 Ultimate machine that I'm calling GetPwrCapabilities on. However it tells me that sleep state 4 (hibernation) is not available and that there is no hibernation file. I can hibernate the machine and there is a hibernation file.…
Mark
  • 5,223
  • 11
  • 51
  • 81
0
votes
1 answer

How to retrieve computer's power management capabilities through WMI?

I'd like to use WMI to figure out what power management capabilities my computers have. Can they sleep? Can they hibernate? etc. There is a PowerManagementCapabilities field which seems to promise all that. The only problem is that it's NULL of…
Mark
  • 5,223
  • 11
  • 51
  • 81