delay for a specified amount of time
add an example, a script, a trick and tips
Put a Windows computer to sleep remotely (from a Linux box)
You can use the
net rpc shutdown -I x.x.x.x -U
username%password command from linux (I think - it works
I had to install my distribution's samba package to get the
net command. You'll have to enable remote shutdown
on your windows box too. Have a look at
how to do it in xp. You might have to add a few parameters if
you want to put your win box to sleep instead of shutting down
Fedora 18 Disable Hibernate and Suspend
The problem with the latter approach for F17 and earlier was
that the file might be overwritten when upower is updated, but
even that would be acceptable.
U can protect those files from overwriting by setting 'i'
attribute (chattr +i /path/to/file), doing this as root of
Dell Dimension running Fedora12 does a "Sleeping Beauty" and I am not a "handsome prince"!
Problem Solved: First, quack quixote thank you
for your edit. I looked at your profile and we older geeks
sometimes have an advantage. I am 2 months shy of the US National
Speed Limit - 70. I have worked on computers in some fashion
since age 18.
Two machines with almost identical symptoms but they had
different problems. Both were hardware and not fedora. The one
that I posted over had a "soft memory bit." For those that do not
know, soft bits are those that only fail only when stressed.
Apparently, slide show screen savers can do that.
Machine two had a ram memory boundary problem. Specifically,
memory strips with different megahertz rating. That machine was
diagnosed as having a heat problem by a local tech at a remote
office, replaced, and shipped to me. I never looked at the memory
strips, I simply cleaned the machine, did rudimentary testing,
and put it on the shelf. It remained there until I decided to put
Fedora on it.
Maybe I will go home, look in the mirror and see if I have turned
into a "Handsome Prince" after all.
Naw! Never happened. I am still just a crusty old geezer geek.
Put 'nix box to sleep from command line?
Windows won't sleep after booting from grub
I'm seeing a similar problem with Windows 8 and Ubuntu 12.04, but
both OSes are installed onto the same HDD in different
If the Windows partition is active, shutdown works as expected.
If I make the Ubuntu partition active, and boot Windows 8 via
grub, I can't shutdown (the screen turns black, and the HDD LED
flickers for a bit, but the WiFi LED remains lit. If I touch a
key or the trackpad, the screen wakes up, and I'm back into the
Windows lock screen.
Interestingly, using the Windows "shutdown /s" command works,
even when booting via grub.
Is there a way to automatically prevent sleeping during the day in Linux?
You didn't specify Gnome, KDE, or other, but if you're using
Gnome and you extract the meat of this post then use it via a cron job, you should
get what you want.
Essentially you're using the
--poke to reset the idle timer. If you're not familiar
with cron, take a look at this page. The cron line will depend a bit on
your sleep timeout settings, but would be similar to (untested):
0 7-18 * * * marten gnome-screensaver-command --poke
...which would run the command on the hour between 7am and 6pm,
as user 'marten'.
Need better management of display sleep times in Fedora 17. How to do?
Use a video player which disables the screen saver and display
power management while playing video. An example of such a video
player would be vlc. When it's playing, the screen will not turn
off nor start a screensaver, even if the video is paused.
How do I prevent Ubuntu from putting my monitor to sleep?
Check System>Preferences>Screensaver and see if "Activate
screensaver when computer is idle" is checked.
Also, if you hit
Alt + F2 and enter
gconf-editor then navigate to
/apps/gnome-power-manager/lock you can see if
blank screen is checked.
Recover an application in sleeping state after an X server crash
Not without some prior preparation. There are proxy Xservers,
such as XMX or xmove that would allow you to reconnect the proxy
to a new Xserver in theory, thus when the displaying Xserver
crashes, you can migrate to a new one, but they do have their
limitations. XMX is designed for screencasting of a sort, and
xmove is designed for user-initiated migration, not recovering
from a crashed Xserver.
There are also applications like Xpra, and Xvnc that would allow
you to run a second Xserver that does not display to the screen,
then "attach" to those Xservers from another Xserver, thus if
your displaying Xserver crashes, you can simply reattach.
Finally, there was a utility Guievict that used runtime code
patching to migrate an application without its consent to another
Xserver, but I find it doubtful that that would work in a modern
NUMBER seconds. SUFFIX may be ’s’ for seconds
(the default), ’m’ for minutes, ’h’
for hours or ’d’ for days. Unlike most
implementations that require NUMBER be an integer, here
NUMBER may be an arbitrary floating point number. Given two
or more arguments, pause for the amount of time specified by
the sum of their values.
display this help and exit
output version information and
Copyright © 2012 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute
it. There is NO WARRANTY, to the extent permitted by law.
Report sleep bugs to bug-coreutils[:at:]gnu[:dot:]org
GNU coreutils home page:
General help using GNU software:
Report sleep translation bugs to
documentation for sleep is maintained as a Texinfo
manual. If the info and sleep programs are
properly installed at your site, the command
coreutils 'sleep invocation'
should give you
access to the complete manual.
Written by Jim
Meyering and Paul Eggert.