Showing posts with label Hibernate. Show all posts
Showing posts with label Hibernate. Show all posts

Sunday, April 15, 2012

bench3

Sleep Mode Is Better Than Hibernate And Standby In Windows

In the olden days, Windows offered a command called Standby. This special state of PC  consciousness reduced the amount of electricity the computer used, putting it in suspended animation until you used the mouse or keyboard to begin working again. Whatever programs or documents you were working on remained in memory.
When using a laptop on battery power, Standby was a real boon. When the flight attendant handed over your microwaved chicken teriyaki, you could take a break without closing all your programs or shutting down the computer.

Unfortunately, there were two big problems with Standby, especially for laptops. 
  • First, the PC still drew a trickle of power this way. If you didn’t use your laptop for a few days, the battery would silently go dead—and everything you had open and unsaved would be lost forever. 
  • Second, drivers or programs sometimes interfered with Standby, so your laptop remained on even though it was closed inside your carrying case. Your plane would land on the opposite coast, you’d pull out the laptop for the big meeting, and you’d discover that (a) the thing was roasting hot, and (b) the battery was dead.
The command is now called Sleep, and it doesn’t present those problems anymore. 
  • First, drivers and applications are no longer allowed to interrupt the Sleep process.  No more Hot Laptop Syndrome.
  • Second, the instant you put the computer to sleep, Windows quietly transfers a copy of everything in memory into an invisible file on the hard drive. But it still keeps everything alive in memory—the battery provides a tiny trickle of power—in case you return to the laptop (or desktop) and want to dive back into work. 
If you do return soon, the next startup is lightning-fast. Everything reappears on the screen faster than you can say, “Redmond, Washington.”

If you don’t return shortly, then Windows eventually cuts power, abandoning what it had memorized in RAM. (You control when this happens using the advanced power plan settings) Now your computer is using no power at all; it’s in hibernate mode.

Fortunately, Windows still has the hard drive copy of your work environment. So now when you tap a key to wake the computer, you may have to wait 30 seconds or so—not as fast as 2 seconds, but certainly better than the 5 minutes it would take to start up, reopen all your programs, reposition your document windows, and so on.
The bottom line: When you’re done working for the moment—or for the day—put your computer to Sleep instead of shutting it down. You save power, you save time, and you risk no data loss.
You can send a laptop to Sleep just by closing the lid. On any kind of computer, you can trigger Sleep by choosing Start->Sleep or by pushing the PC’s power button, if you’ve set it up that way.
Read More

Wednesday, September 21, 2011

bench3

Step-by-Step Instructions To Enable Hibernate in Windows 8

If you have not downloaded Windows 8, just head on to Microsoft's developer site and download it. You'll just need a PC with a 1GHz or faster processor (either 32- or 64-bit), 1GB of RAM (2GB for 64-bit), 16GB of hard disk space (20GB for 64-bit), DirectX 9 graphics with WDDM 1.0 or higher driver. Of course, if you want to play with Windows 8's touch abilities, you'll need a screen that supports multi-touch.

In this article lets see the step by step procedure on how to enable "Hibernate" option in Windows 8.

Well, Just as how we did in Windows XP, Vista and Windows 7, To modify the changes related to Hibernate, we need to customize the Power Options in the Control Panel.

Follow the step by step procedure mentioned below to use the "Power Options" and then to enable Hibernation in Windows 8 .

  • If you are in the Metro screen of Windows 8, press "Windows+R" in your keyboard to get "Run" dialog box.

Note: You can also reach “Power Options” through Control Panel – Hardware And Sound – Power Options.

  • In the run dialog box, type "powercfg.cpl" and press Enter. Which will take you to Power Options Windows in Windows 8.

Step-by-Step Instructions To Enable Hibernate in Windows 8

  • In the power options page, on the left side, Click “Choose what the power button does" And which will take you to "Power button Define Page".

Step-by-Step Instructions To Enable Hibernate in Windows 8 2

  • Click on the "Change settings that are currently unavailable".

Step-by-Step Instructions To Enable Hibernate in Windows 8 3

  • Under the "Power option settings", you can check the box, which you require. For example, “Show Sleep”, “Show Lock””and "Show hibernate" and then save the changes made.

Step-by-Step Instructions To Enable Hibernate in Windows 8 5

  • After saving the changes, you can now see "Hibernate" option under the Power Icon or the Shutdown Button.
  • That's it, you can now experiment this in your Windows 8 PC, and If you have not downloaded Windows 8, just head on to Microsoft's developer site and download it.

Read More

Monday, September 12, 2011

bench3

Windows 8 Boots Faster Than Windows 7 | Advantages Of New Fast Boot Option In Windows 8

When it comes to talking about fundamentals we want to start with boot time – no feature gets talked about and measured more. Windows 8 is designed in a way that we do not need to boot all that often. And also Windows 8 is keen on reducing the number of required restarts due to patching running code. When you boot Windows 8 it will be as fast as possible.

How Could It Be Possible To Boot Windows 8 Faster Than Windows 7: Few operations in Windows 8 are as scrutinized, measured, and picked apart as boot. This is understandable boot times represent an effective proxy for overall system performance and we all know the boot experience is an incredibly important thing to get right for Windows 8 Users.

We prefer to shut down because we want to have our PC completely “off” so that it uses no power – either to preserve battery life or to reduce their energy use. Hibernate is also a good option for this since it similarly has no power draw, and many people really like it.

However, it’s clearly not for everyone, since many of us want to turn their PCs on and have it be a “fresh start” rather than running all of the stuff from their previous session.

Sleep/resume is the best option for fast on/off transitions on today’s PCs, but it still consumes some power in order to preserve the contents of RAM, which means battery drain – even if it’s only a little bit on a well optimized system. All of this is happening with the backdrop of how we all use our mobile phones today, which is almost never restarting them, and always using what feels closest to a sleep-like state.

Boot Windows 8 Faster

Then, How will be the Windows 8 designed to meet all of these desires on today’s PCs without requiring some special new hardware.

Here are some advantages on Windows 8 in this regard:

  • Effectively zero watt power draw when off
  • A fresh session after boot
  • Very fast times between pressing the power button and being able to use the PC.

Of course, In Windows 7 there were many improvements to the boot path, including parallel initialization of device drivers, and trigger-start services, but it was clear that Windows 8 have to get even more creative (and less incremental) to get boot performance anywhere close to fast enough to meet all of these needs.

One Windows 8 solution is a new fast start-up mode which is a hybrid of traditional cold boot and resuming from hibernate.

In a traditional shutdown, we close all of the user sessions, and in the kernel session we close services and devices to prepare for a complete shutdown.

Now here’s the key difference for Windows 8:

Windows 7 actually closes the user sessions, but instead of closing the kernel session, Windows 8  hibernate it. Compared to a full hibernate, which includes a lot of memory pages in use by apps, session 0 hibernation data is much smaller, which takes substantially less time to write to disk.

If you’re not familiar with hibernation, Windows 8 effectively saving the system state and memory contents to a file on disk (hiberfil.sys) and then reading that back in on resume and restoring contents back to memory.

Using this technique with boot gives a significant advantage for boot times, since reading the hiberfile in and reinitializing drivers is much faster on most systems (30-70% faster on most systems).

Windows 8 Boots Faster Than Windows 7  Advantages Of New Fast Boot Option In Windows 8

Figure: Bar chart comparing Windows 8 fast startup times to Windows 7 cold boot times on 30 different PC configurations. The Windows 8 startup times are all between 15 and 33 seconds, while the Windows 7 cold boot times are between 25 and 72 seconds.

It’s faster because resuming the hibernated system session is comparatively less work than doing a full system initialization, but it’s also faster because Windows 8 have added a new multi-phase resume capability, which is able to use all of the cores in a multi-core system in parallel, to split the work of reading from the hiberfile and decompressing the contents.

For those of you who prefer hibernating, this also results in faster resumes from hibernate as well.

How Hibernation Works With Windows 8

It’s probably worth mentioning how Windows 8 treat the hiberfile. If you read this and immediately try dir /s /ah hiberfile.sys  you will find that it’s a pretty big file on disk. The hiberfile is sized by default at 75% of physical RAM.

The file is essentially a reservation for hibernation data that will be written out as the system is dropping into hibernation. Typically much less space is actually used, and in the case of Windows 8 fast startup usage, it’s typically ~10-15% of physical RAM but varies based on drivers, services, and other factors.

Windows 8 also treats the hiberfile slightly differently than other files on disk, for example, the Volume Snapshot service ignores it (a small performance benefit.) You can disable hibernation and reclaim this space by running  powercfg /hibernate off from an elevated command prompt.

Warning! But be aware that if you turn off hibernating in Windows 8, it will disable hibernation completely, including some nice capabilities like fast startup as well as hybrid sleep, which allows desktop systems to do both a sleep and hibernate simultaneously so if a power loss occurs you can still resume from the hibernated state.

You can also run powercfg /hibernate /size and specify a value between 0 and 100 for the percentage of physical RAM to reserve for the hiberfile – but be careful! Specifying too small a size can cause hibernation to fail. In general, I recommend leaving it enabled at the default value unless you’re working on a system with extremely limited disk space.

Those of you who like to cold boot in order to “freshen up” drivers and devices will be glad to know that is still effective in (Windows 8) this new mode, even if not an identical process to a cold boot.

This new fast startup mode will yield benefits on almost all systems, whether you have a spinning HDD or a solid state drive (SSD), but for newer systems with fast SSDs it is downright amazing.

In Reality, Windows 8 boots faster than smart phones, say our Windows Phone 7.

Check out the following video from Microsoft Windows 8 Team to see for yourself: Download this video to view it in your favorite media player: High quality MP4 | Lower quality MP4

One thing you’ll notice in the video was how fast the POST handoff to Windows occurred. Systems that are built using Unified Extensible Firmware Interface (UEFI) are more likely to achieve very fast pre-boot times when compared to those with traditional BIOS. This isn’t because UEFI is inherently faster, but because UEFI writers starting from scratch are more able to optimize their implementation rather than building upon a BIOS implementation that may be many years old. The good news is that most system and motherboard manufacturers have begun to implement UEFI, so these kinds of fast startup times will be more prevalent for new systems.

How To Shutdown Windows 8 Fully:

Of course, there are times where you may want to perform a complete shutdown – for example, if you’re opening the system to add or change some hardware. Windows 8 have an option in the UI to revert back to the Windows 7 shutdown/cold boot behavior, or since that’s likely a fairly infrequent thing, you can use the new /full switch on shutdown.exe. From a cmd prompt, run: shutdown /s /full / t 0 to invoke an immediate full shutdown. Also, choosing Restart from the UI will do a full shutdown, followed by a cold boot.

Fast booting and resuming states is something every PC users expects. Now that computers are coming with improved components. This now means that we can put our machines in sleep-mode or hibernation without even thinking, it will be second-nature to users when using Windows 8.

In regards to their 'start screen' I pray and hope that they allow us to add a background image and change the opacity level of tiles. I have done so many mockups in Photoshop and having a background image with translucent tiles is much more visually appealing, even an opacity level of 90% works well. Trust me when I say that nobody is going to want to revert from Aero glass to flat boring tiles, changing the opacity adds perceived depth.

However, In the past, the boot performance of Windows PCs have degraded over time as applications are installed/removed and the registry is mucked up. Is this new boot method still vulnerable to this type of degradation? Will it still boot just as fast 5 years down the road? Have you done any lab simulations regarding this scenario? We need to wait to know how it works.

Read More

Monday, August 8, 2011

bench3

Computer Shuts Down Instead Of Sleeping | Fix

Some times When we attempt to put computer on "sleep" it appears to shut down. i.e. you may have to start the computer from the power button rather than click the mouse computer will not sleep.

But, before you try to fix this issue, you need to check your keyboard whether the keyboard or mouse has an option to wake the computer up when its in sleep mode.

To fix your issue, you need to open a command prompt with administration rights and issue a command.

1) Search for "CMD"

2) Right click "CMD" and "Run as Administrator". If you were asked to enter the administration password, give the required.

3) In the command line, type in "powercfg.exe /hibernate off"

Sleep should work properly now, instead of shutting off your PC. Watch the below screen shot for any help.

Fix Computer Shuts Down Instead Of Sleeping 1

Fix Computer Shuts Down Instead Of Sleeping 2

If the above solution did not work for you, you can also try the below fix.

  • 1. Open the Control Panel (Standard View).
  • 2. Click on System and Maintenance and then System.
  • 3. Under Tasks, click on Device Manager.
  • 4. Provide administrative credentials when prompted.
  • 5. Click on the + sign beside Keyboard
  • 6. Right click on selected device and then go to properties
  • 7. Go to Power Manager tab
  • 8. There should be a check on this device can wake the computer

The ability to recover from sleep mode by pressing a key on the keyboard or by moving the mouse on a computer that supports ACPI is dependent on the computer's motherboard. This ability is disabled in older Intel motherboards, and the only way to wake the computer from sleep mode is to press the Power button.

With most newer motherboards, you can wake the computer by pressing the Power button, by pressing a key on the keyboard, or by moving the mouse.

ACPI support is necessary to take full advantage of the power management and Plug and Play features in Windows. If you are not sure whether your computer is ACPI-compliant, please see the printed documentation for your computer or motherboard, or contact the manufacturer of your computer or motherboard.

For more information about hardware and software vendor contact information, visit the following Microsoft Web site:

http://support.microsoft.com/gp/vendors

Read More

Friday, January 14, 2011

bench3

Sleep Or Hibernate Options Not Available On Windows 7 | How To Fix

What's the difference between sleep, hibernate, and hybrid sleep?
Sleep is a power-saving state that allows a computer to quickly resume full-power operation (typically within several seconds) when you want to start working again. Putting your computer into the sleep state is like pausing a DVD player—the computer immediately stops what it’s doing and is ready to start again when you want to resume working.

Hibernation is a power-saving state designed primarily for laptops. While sleep puts your work and settings in memory and draws a small amount of power, hibernation puts your open documents and programs on your hard disk, and then turns off your computer. Of all the power-saving states in Windows, hibernation uses the least amount of power. On a laptop, use hibernation when you know that you won't use your laptop for an extended period and won't have an opportunity to charge the battery during that time.

Hybrid sleep is designed primarily for desktop computers. Hybrid sleep is a combination of sleep and hibernate—it puts any open documents and programs in memory and on your hard disk, and then puts your computer into a low-power state so that you can quickly resume your work. That way, if a power failure occurs, Windows can restore your work from your hard disk. When hybrid sleep is turned on, putting your computer into sleep automatically puts your computer into hybrid sleep. Hybrid sleep is typically turned on by default on desktop computers.

Why can't I find the sleep or hibernate options on my computer?
Click the Start button Picture of the Start button , and then click the arrow next to the Shut down button.
If sleep or hibernate aren't available, it might be for one or more of the following reasons:
  • Your video card might not support sleep. Update the driver for your video card, or check the information that came with your computer about your video card and supported drivers. For more information, see Update drivers: recommended links.
  • Some settings are managed by your system administrator. For more information, see Why won't Windows allow me to change a system setting?
  • Sleep and other power-saving states are turned off in your computer's basic input/output system (BIOS). To turn on sleep, restart your computer, and then enter the BIOS setup. As your computer starts, instructions typically appear on the screen that indicate which key or keyboard shortcut you must press to enter the BIOS setup process. Because not all computer manufacturers use the same BIOS, different keys are assigned for this purpose. To learn more, check the information that came with your computer or go to the manufacturer’s website.
  • If the hibernate option is missing, you might have hybrid sleep turned on.
Read More

Friday, September 17, 2010

bench3

Enable Hibernation In Windows 7

Hibernation is a power saving option which was designed primarily for laptops. Unlike “sleep mode” which puts the open documents and files into the memory, hibernation puts all the open files and documents on to the hard disk and shuts down the computer without drawing even a small amount of power.
Hibernate saves an image of your desktop with all open files and documents, and then it powers down your computer. When you turn on power, your files and documents are open on your desktop exactly as you left them. Read more: http://www.bench3.com/2009/06/turn-off-hibernation-in-windows-vista.html#ixzz0zm0PJg89
Thus hibernation becomes an excellent way to save power and resume Windows back to the state where it was left off. If you really want to use this feature on Windows 7 then you need to enable this option.

To enable or disable Hibernating mode in Windows 7 is not as simple as in Windows XP. Below step will guide you to enable or disable Hibernation in Windows 7
  1. Open the Command Prompt with “Administrator rights”. To do so, type cmd in Start menu and then hit Ctrl+Shift+Enter.
  2. Now type the following command in the command prompt and hit Enter. powercfg /hibernate on
  3. Type exit and hit Enter to close the Command Prompt. Now you should see the “Hibernate” option in the Start menu. If not then perform the following steps.
  • Type Power Options in the Start menu and hit Enter.
  • In the left pane, open the link labeled “Change when the computer sleeps” and then open the link “Change advanced power settings”. Now small windows will pop-up. - Enable Hibernation
  • Now expand the Sleep tree and turn off Allow Hybrid Sleep.
  • Now you should see the Hibernate option in the Start menu. 
Note:  To Disable Hibernation, Again Go to Command Prompt (With Administrator Rights) and type powercfg -h off and press Enter.
Read More