I know that we can shut down windows after some specific time like this  shutdown -s -t &lt;time&gt;   But how can I do the same when I want my pc to sleep after some specific amount of time?? is there any command??   Also it will be helpful if you told me the command for Linux too, Cause i rarely use windows.
63120
I know that almost everything on Windows, like opening any sort of application, can be done from the command prompt or from the Run menu.  How can I put my computer to sleep or shut it down? What is the command for that?
26084
I have 2 HDDs in my PC. Ubuntu is turning off the secondary HDD very quickly after about 15 minutes, which is short for me. I need to control this time. How can I do it?  I tried GNOME power management but did not find it useful.
40141
It seems like there are many ways in which a Ubuntu's settings can be permanently manipulated to sleep when desired as long as predetermined conditions are met.  However, these are more permanent solutions that don't take into account rare tasks that may want to temporarily fore go standard policy.  The problem that I am running into is that I have a very long running script to do some backups and I don't want the computer to sleep or hibernate while that particular process is running which usually take 30-50 minutes.  Therefore, is there a command that I could include into my backup script that would prevent the system from hibernating/sleeping while the backup script is running and is there also a command to restore the normal default power policy after the backup has finished?  something like  #!/usr/bin/bash #disable normal powerpolicy disable-power-policies backup /dev/sda /dev/sdb /dev/fioa /dev/fiob #enable power policies. enable-power-policies
98703
I managed to find out how to suspend/hibernate the system from the command line by reading .  However, I would like to know how to use the command line to suspend/hibernate at a given time, in absolute (example, 11PM) or relative (example, in 30 minutes) terms.  I already know how to do this with shutdown, but I'm note sure if the command is similar.
55651
How can I hibernate or sleep my Ubuntu 10.10 desktop and have it "wake up" the next day?  I have seen software that can do this on windows, so it can't be hard on Ubuntu!
77898
What's the best way to shut down the computer from a C# program?  I've found a few methods that work - I'll post them below - but none of them are very elegant. I'm looking for something that's simpler and natively .net.
74796
I know that there is a simple way to shutdown the computer in command prompt, but is it possible to do system updates and then shutdown the computer in command prompt?   For example, when Vista needs to install updates, it will let me install them and shut down by clicking the Shut Down button (while relegating the normal shut down button into the menu). So is there a command to do this in command prompt?
55913
So I've got a persistent program running in the background. Killing it just causes it to restart with a different PID. I'd like to suspend it (put it to sleep without actually killing it). Does kill -9 do this? If not, how should this be done?
54869
After clicking sleep or hibernate in Windows 7, my computer loads for a while and then goes into sleep mode, but not 1 second later it powers back up. The event log has no errors and no warnings appear when it comes back out of sleep/hibernation.  Here's my system specifications:    Windows 7   I believe this is all that's relevant. I've installed the latest chipset drivers, but I'm unable to update my BIOS (but this is another matter; maybe because the motherboard in the  is different).  I've also tried turning off the "Allow this device to wake up my computer" for the network card, keyboard, and mouse -- but this makes no difference.  If flashing the BIOS is the only thing that will fix this, then I will create a new question to this effect.  Maybe I should change the suspend mode from S3 to S1?
33070
I recently installed Windows 8 RTM, but found a very annoying thing. My PC always powered on automatically even in midnight. Eventually I noticed that I can power on the PC by pressing keyboard or mouse, and even moving mouse.  After searched this in Google, I turned off Sleep and Hibernate in Power Options -> System Settings -> Shutdown settings, but it still did not work.  Would anyone please help me?  I don't want to suffer from the noise of PC powering on in midnight any more.
98517
My monitor is turned off after 1 mintute,But my computer doesn’t sleep after 1 minute(longer than 1 minute) So what should I do!?
91439
When I want to shutdown my PC I click the top right corner and then press the power button after which a dialog pops up with the options: power off, restart, cancel.   Normally this pop up shows up right away. But since a week or so it takes about 30 seconds. During that time I can move my mouse but I can't open applications or do anything else.  When I cancel and try it again, it does open right away.   I didn't change settings or install weird stuff, only some updates of my icon theme. (I apparently had installed the ).  What could be the cause? And how can I diagnose this issue and see what it taking so long?
114701
The question is simple. What would be the script I would have to use to shut down a computer in my network thru ssh.  Normaly i would go to command line and:  ssh desktop  delik@desktop's password:   delik@desktop:~$ sudo shutdown -P 0   To power on I created a file and wrote:  wakeonlan xx:xx:xx:xx:xx:xx   And gave it the executable bit  That way to power on it requires only a double click. Would i be capable of doing the same to shutdown?
116769
I want my laptop to shutdown when I close the laptop lid.  But in the power settings I can only choose between:   Suspend Do nothing Hibernate (Disabled)   Is there any way to configure it with more options?
74585
I'm got a custom built PC running 64 bit Windows 7 Ultimate. So far everything works great except for one thing: it will not wake up from sleep mode for a wake timer or scheduled task.  Sleep mode itself works great. If it's sleeping, it wakes successfully when I press the power button, mash the keyboard, wiggle the mouse, or send a WOL packet. The only problem is wake timers. I even tried the program  but it looks like that uses wake timers, so it doesn't do anything for me either.  And yes, wake timers are enabled:    Any ideas on how to fix the problem, or troubleshoot it? I'd imagine that there would be a log somewhere telling me exactly why the wake timers are having trouble, but if there is I haven't found it.
111976
I've got Windows 7 set up on my media box.  It's set to sleep after 30 mins of inactivity, but it doesn't seem to work as advertised. In the last two weeks it's gone to sleep during a file copy operation and again while encoding an MP4 file.  Is there any way to get Windows to realise that it's actually busy?
46804
Is there any way to view how much time is left before a scheduled shutdown in Windows 7?  By scheduled shutdown I mean a shutdown (or restart) scheduled using the command line shutdown.exe application, e.g.:  shutdown /t 600 /s   That would pop up a message box saying there are 10 minutes until shutdown, and the actual system time of shutdown.  Any time longer than 600 seconds uses a balloon message instead.  I vaguely recall XP providing a GUI progress monitor, with a countdown.  How did they work? The shutdown time left or scheduled time must be stored somewhere, how can I access this?   My preference is some method through the command line (i.e. non-GUI). More importantly, is this accomplishable within Windows, i.e. without any third party programs?  If this is not accomplishable with standard Windows utilities (and I'm bordering on Stack Overflow territory here), is there a Windows API (or .NET, which could even be used in PowerShell!) function? Either would be preferred over some random third party program.