Sleepy 6.0 Copyright ⌐ 2003-2004 Sashazur, LLC.

Help Contents

License
How Sleepy works
Solving Problems

Reference
Basic Settings
Timekeeping Settings
Advanced Timekeeping Settings
Advanced Settings
Add/Edit Event
Shut Down Timer
Start Program
Logging
Compatibility with different versions of Windows
How Sleepy locks and unlocks
How Sleepy handles multiple users
How Sleepy handles Stand By
Using Sleepy on a network
Command line options
How to translate Sleepy


License

LICENSE AGREEMENT
Sleepy Version 6.0
Copyright ⌐ 2003-2004 by Sashazur, LLC

By purchasing, distributing, installing, or using Sleepy Version 6.0 ('Sleepy'), you agree to all of the terms, disclaimers, and limitations of this license agreement.

This is only a limited, non-exclusive license. Sashazur, LLC is and remains the owner of all titles, rights and interests in the software.

If you do not agree to any of the terms, disclaimers, or limitations in this agreement, then you may not distribute, install or use Sleepy, and you must destroy all copies of it that you possess.

This License Agreement is governed by the law of the State of Oregon applicable to state contracts, the Oregon Uniform Trade Secrets Act, and any applicable federal Trademark, Copyright and Patent laws.

LICENSE TERMS

You may not use Sleepy for more than 30 days without purchasing it.

If you have purchased a single user license, then you may either install Sleepy on a single computer for use by one or more persons, or install Sleepy on multiple computers for use by a single person, but not both.

If you have purchased a multiple user ('site') license, then you may install Sleepy on a number of computers no greater than that indicated at the time of purchase, and one or more persons may use each computer on which Sleepy is installed.

You may distribute the original unmodified Sleepy setup program (available for download at http://sleepy.sashazur.com), as long as you do not receive financial gain (or equivalent) from the distribution.

You may not lease, rent, lend, modify, reverse engineer, or disassemble Sleepy, or create derivative works based on Sleepy.

This License agreement is valid without a signature from Sashazur, LLC, and becomes effective upon your installation of the program.

WARRANTY DISCLAIMERS AND LIABILITY LIMITATIONS

Sleepy and its documentation are provided 'AS IS' with no warranties of any kind, whether express or implied.

Notwithstanding the foregoing, Sashazur, LLC and its agents cannot be held liable for any damages resulting from the use or misuse of Sleepy, or any defect in Sleepy or its documentation, including but not exclusive to compensatory, special, incidental, exemplary, punitive, or consequential damages.

You agree to defend and indemnify Sashazur, LLC and hold Sashazur, LLC harmless from all claims, losses, damages, complaints, or expenses connected with or resulting from your business operations.

Any liability of Sashazur, LLC will be limited solely to refund of the Sleepy purchase price.

TERMINATION

You may terminate this license at any time by informing Sashazur, LLC of your intention to do so.

If you violate any of the terms of this license, then Sashazur, LLC may terminate this license without any notice.

Upon termination, you must uninstall Sleepy from all computers and destroy any copies of it that you possess.

Back to contents


How Sleepy works

Sleepy runs invisibly in the background while you use your computer.

Details

See also: Advanced Settings
See also: Using Sleepy on a network
Back to contents


Solving Problems

My kid is managing to disable or avoid Sleepy somehow
The computer doesn't turn off after it shuts down
The computer restarts when it's supposed to shut down
The Program is not responding error appears at shut down
The computer freezes or shows an error at shut down
The computer keeps running and doesn't shut down when it should
The computer doesn't start up when it should
The status message appears twice
Internet time sets the time wrong, or doesn't set the time at all
The Connect window appears after the computer starts
Start Program doesn't work
Can't use the Shut Down Timer when Sleepy is on
Authenticode signature not found
A DLL was not found
Some other problem

Back to contents



My kid is managing to disable or avoid Sleepy somehow

To make it as difficult as possible for someone to disable or avoid Sleepy, you should:

Note: After you make any changes listed above, restart your computer to apply the changes.

Back to Solving Problems



The computer doesn't turn off after it shuts down

Try to shut down from the Start menu. Does the computer turn off? If it doesn't, then Sleepy won't be able to turn it off either. You may need to configure your computer to power off; follow the instructions below specific to your version of Windows.

To enable power off at shut down in Windows XP, 95, 98, and Me:

To enable power off at shut down in Windows 2000:

  1. Make sure you've installed the most recent Microsoft service pack (Sleepy was tested with SP2 for Windows 2000).
  2. Open the Power Options control panel.
  3. Click the APM tab (if this tab is missing, then advanced power management is not enabled on your computer. You may need to enable it in BIOS setup).
  4. Check Enable Advanced Power Management support.
  5. Click OK.
  6. Restart your computer.

To enable power off at shut down in Windows NT4:

  1. Make sure advanced power management is enabled on your computer. You may need to enable it in BIOS setup.
  2. Make sure you've installed the most recent Microsoft service pack (Sleepy was tested with SP6a for Windows NT4).
  3. Extract the file HAL.DLL.SOFTEX from the service pack you're using (run the service pack .exe with the /x command line option).
  4. Rename HAL.DLL.SOFTEX to HAL.DLL and copy it over the original HAL.DLL in \WINNT\SYSTEM32 (first rename the original to HAL.DLL.BAK in case you need to restore it later).
  5. Run Regedit and open the key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon. In that key is the value PowerdownAfterShutdown (if it doesn't exist, add it as a string value). Change that value from 0 to 1.
  6. Exit Regedit.
  7. Restart your computer.

If you continue to have problems:

Back to Solving Problems



The computer restarts when it's supposed to shut down

Open Sleepy Settings and check your settings. If the settings are correct, then the problem is probably a hardware or Windows configuration issue. To correct it, follow the steps below specific to your version of Windows:

If you have Windows XP, 95, 98, or Me:

If you have Windows NT4 or 2000:

If you continue to have problems:

Back to Solving Problems



The Program is not responding error appears at shut down

This error can happen at shut down time if you have unsaved documents, and you ignore the 'Save changes?' prompt. This error will also occur if a program is simply not working correctly.

To prevent this error, Sleepy does two things:

If the you get this error, make sure that the If 'Save changes?' not responded to... option in Advanced Settings is checked, and that the number of seconds is less than 20.

If that option is checked, and the problem still happens, then check the Always force shut down... option in Advanced Settings. From then on, sleepy will always force shut down/restart. Warning! This setting doesn't let programs prompt you to to save unsaved documents. Also, forced shut down/restart without saving open files may cause file system errors. After forced shut down, you should check for and correct any file system errors.

Back to Solving Problems



The computer freezes or shows an error at shut down

If the error is Program is not responding, see the advice above in "The Program is not responding error appears at shut down".

Other types of errors are usually caused by a badly behaved program or bad driver software for a hardware device. If you suspect this, restart your computer, start the suspicious program if necessary, then try to shut down or restart from the Start menu. If the problem still happens, the best thing to do is to avoid using that program, and check to see if there is an updated version.

Back to Solving Problems



The computer keeps running and doesn't shut down when it should

Sleepy won't try to shut down the computer if:

If you didn't see any messages from Sleepy before shut down was supposed to happen, then chances are your settings are not what you think they are, or your computer's clock is wrong.

Back to Solving Problems



The computer doesn't start up when it should

Were you trying to use the Restart setting to turn the computer on? The Restart setting only works if the computer is already turned on; it's the same as the Restart option in the Start menu.

Some computers can be set up in BIOS to automatically turn on at a specific time; check your computer's manual.

Back to Solving Problems



The status message appears twice

This can happen if you use Internet timekeeping and your computer's clock is wrong.

In this situation, Sleepy will start and show the status message based on the computer's clock. As soon as Sleepy is able to read the Internet, if it sees that the computer's clock was wrong, it will re-display the status message with the correct time (and it may also show a different shut down event, depending on how wrong the clock was).

Back to Solving Problems



Internet time sets the time wrong, or doesn't set the time at all

Check the following:

Back to Solving Problems



The Connect window appears after the computer starts

If Sleepy tries to read Internet time without waiting for an existing Internet connection, the computer may ask you to connect to the Internet. To fix this, open Sleepy Settings, click Timekeeping..., click Advanced..., and check Wait for an Internet connection.

Back to Solving Problems



Can't use the Shut Down Timer when Sleepy is on

This is intentional; it prevents someone from using the Shut Down Timer to make Sleepy shut down later than it normally would.

To change this, open Sleepy Settings, click Advanced..., and uncheck Wait until next startup to apply changes. Then restart the computer. After that change, you'll be able to use the Shut Down Timer whether Sleepy is on or off.

Back to Solving Problems



Start Program doesn't work

Open Advanced Settings and make sure that the Start a program option is checked. Then click Details in the option to open the Start Program window.

Click Test. If you got an error, make sure the path is correct, and that any arguments are outside of the double-quote marks.

If Test worked, but the program still won't run before shut down, then check the following:

Back to Solving Problems



Authenticode signature not found

Authenticode signatures are an optional security feature included with some software.

If you see the message Authenticode Signature Not Found when you try to download Sleepy, it doesn't mean there's a problem; all it means is that Sleepy does not include this optional security feature.

Back to Solving Problems



A DLL was not found

If you saw the message WS2_32.DLL was not found when you tried to install Sleepy, then install a newer version of Microsoft Internet Explorer (recommended), or if you have Windows 95 only, install the Windows Socket 2 Update. Then run Sleepy setup again.

If a different DLL was missing, install the most recent service pack for your version of Windows. Service packs are available at Windows Update.

Back to Solving Problems



Some other problem

Go to the Sleepy web site and use the contact form to send a message to support. Please include as much detail as possible about what you were doing (or trying to do) when the problem occurred.

Please write in english if possible!

Back to Solving Problems

Back to contents


Reference

Basic Settings

This shows the most common settings. If you change any settings, the new settings aren't applied until the next time your computer starts (you can change this in Advanced Settings).

See also: Advanced Settings
Back to contents


Timekeeping Settings

This window lets you choose how Sleepy keeps track of the current time and date. If possible, you should always have Sleepy get time from the Internet.

Notes:
• Sleepy won't try to read time from the Internet until you're connected. Once you're connected, Sleepy will stay on Internet time even after you disconnect.
• Even if you don't use Internet timekeeping, Sleepy will ignore any changes to the computer's clock until the next time the computer starts.
• If you use Internet timekeeping, then each time you connect to the Internet (even if your computer has an 'always on' connection), Sleepy will reset itself to the correct day and time, which may cause it to redisplay the status message.
• If someone changes the computer's clock settings, Sleepy will internally stay on correct time, even though the clock display may be wrong.

See also: Advanced Timekeeping Settings
Back to contents


Advanced Timekeeping Settings

This window lets you control advanced settings for Internet timekeeping.

Note:
• When Sleepy uses Internet time, it will shut down at the correct time whether or not you checked Set computer's clock.

See also: Timekeeping
Back to contents


Advanced Settings

This window has everything in Basic Settings, plus additional settings. Only the additional settings are listed here:

See also: Basic Settings
Back to contents


Add/Edit Event

This window adds a new event or edits the selected event. It's opened by the Add... and Edit... buttons in Advanced Settings.

See also: Advanced Settings
Back to contents


Shut Down Timer

This window lets you set Sleepy to shut down or restart the computer after a certain amount of time has passed. It's opened by clicking Timer... in Advanced Settings.

The minumum timer duration is 5 minutes; the maximum is 24 hours.

The timer normally only can be used when Sleepy is off. To also be able to use it when Sleepy is on, you must first uncheck the Wait until next startup to apply changes option in Advanced Settings (and then restart the computer to apply the change).

If you use the Shut Down Timer when Sleepy is on (see above), it has priority over Sleepy's normal settings. For example, suppose Sleepy is normally set to shut down daily at 11PM. If you use the timer at 9PM to shut down in 3 hours, then Sleepy will wait 3 hours and shut down at midnight, instead of at 11PM.

Note: The timer setting is temporary and only lasts until the computer shuts down. The next time the computer starts, Sleepy will use its normal settings again.

See also: Advanced Settings
Back to contents


Start Program

This window controls the settings for the Start a program option in Advanced Settings. It's opened by clicking Details... on the Start a program option.

  • Program: Type the program executable name here and any optional arguments. Including the full path is optional. If you include arguments, enclose the part before the arguments in double quotes.

    Examples: xyz.exe
     c:\Program Files\ABC\xyz.exe
     "c:\Program Files\ABC\xyz.exe" /arg1

  • Browse...: Displays the Open dialog box so you can search for programs.

  • Test: Runs the program immediately to verify that it works correctly.

  • Number of minutes...: Controls the number of minutes before shut down or restart that Sleepy will run the program.

  • Start the program before lock events too: Normally the program only runs before Sleepy shuts down or restarts the computer, but if you check this box, the program will also run before Sleepy locks the computer.

Notes:
• The program only runs before Sleepy's scheduled shut down time. The program doesn't run when you shut down from the Start menu.
• The program won't run if there isn't enough time to run it (e.g. if you turned on the computer 3 minutes before shut down time, but Number of minutes... is set to 5).
• Sleepy will shut down even if the program is still running at shut down time. Make sure you set the number of minutes high enough to allow time for the program to finish.
• The program won't run if no user is logged on to the computer. With Windows XP, if more than one user is logged on via Switch User, then the program will run only in the current user's session.
• Sleepy won't show any error messages if it can't run the program. If the program doesn't run, either the program information is incorrect, or one of the above situations is preventing it from running.

See also: Advanced Settings
Back to contents


Logging

This window controls the settings for the Enable logging option in Advanced Settings. It's opened by clicking Details... on the Enable logging option.

  • Folder for log files: Type the path to an existing folder on a local hard drive. Log files will be created in this folder.

  • Browse...: Displays the Open dialog box so you can search for folders.

  • Explore: Opens an explorer window for the folder so you can view its contents.

  • Maximum log file size: Choose the maximum size for each log file. When a log file exceeds this size, a new log file is created (the old one is saved).

Notes:
• Log files are named sequentially; e.g. SleepyLog_00000.log, SleepyLog_00001.log, etc.
• Sleepy writes timestamped log entries for the following operations:
  - Sleepy service task start/stop
  - User logon/logoff
  - Start program
  - Reset to next event
  - Initiating shutdown/restart
  - System shutdown
  - Lock/unlock
  - System standby/resume
  - Settings started/changed/exited
  - Password created/changed/removed/recovered
  - Uninstall/overinstall
  - Internet time read/clock set

See also: Advanced Settings
Back to contents


Compatibility with different versions of Windows

Sleepy works with Windows XP, 95, 98, Me, 2000, and NT4. For best results, make sure you have installed the most recent service pack for your version of windows. Service packs are available at Windows Update.

If you have Windows XP and use Switch User to log on multiple users:

If more than one user is logged on when Sleepy shuts down, then programs won't prompt you to save any new or changed documents. To avoid lost work, save as soon as you see Sleepy's Shutting down... or Restarting... alert.

If more than one user is logged on and the Start Program setting is active, then Sleepy will run the program only in the current user's session.

If you have Windows NT or 2000:

If your computer doesn't power off at shut down, see Solving Problems.

See also: Advanced Settings
Back to contents


How Sleepy locks and unlocks

The lock option is intended for situations where the computer must continue doing background processing, while still preventing anyone from using it.

When Sleepy locks the computer, any programs that were running continue to run, but the screen is blanked and the mouse and keyboard are ignored.

Click Unlock to see these choices:

After unlocking, the computer can be used normally. You can manually shut down or restart via the Start menu without waiting for Sleepy to do it.

Notes:
• Use the If unlocked without a password... option in Advanced Settings to change the number of minutes that Sleepy waits after unlock before it shuts down or restarts.
• Sleepy will only lock if a user is logged on.
• A locked computer will stay connected to the Internet and can still be accessed if it's on a network.

See also: Advanced Settings
Back to contents


How Sleepy handles multiple users

If several people have accounts on one computer that uses Sleepy, then...

There are no user-specific settings

  • Sleepy has only one set of settings for all users. This allows Sleepy to work predictably even if no user is logged on, or if more than one user is logged on to the same computer (which is possible with Windows XP's fast user switching feature).

Limited/restricted users can't make changes:

  • Only administrator users can install or uninstall Sleepy, and view or change Sleepy settings.

If you use Switch User to log on multiple users (Windows XP only):

See also: Using Sleepy on a network
See also: Advanced Settings
Back to contents


How Sleepy Handles Stand By

If you use stand by (or hibernate), then...

  • While the computer is asleep, Sleepy won't shut it down or restart it.

  • If the computer is asleep while Sleepy would have shut it down or restarted it, and then it wakes up later:

    • If it was asleep for less than 30 minutes, Sleepy will shut it down 5 minutes after it wakes up.

    • If it was asleep for 30 minutes or more, Sleepy will reset to the next available shut down/restart time.
See also:
Things to know
Back to contents


Using Sleepy on a network

If you install Sleepy on a computer that is on a network, then...

You can manage a group of computers that use Sleepy

  • You can have all computers on your LAN share the same Sleepy settings, controlled from a single computer. To learn more about this, and to set it up, run \Program Files\Sleepy\NETSET.EXE.

You can install and uninstall silently

  • To install Sleepy silently, use the command sleepy_setup.exe /verysilent. Sleepy will be initially turned off, no desktop icon will be created, and the language will be set to either the current user's language if available in Sleepy, otherwise english.
  • To uninstall silently, use the command \Program Files\Sleepy\unins000.exe /silent. An uninstall progress window will appear briefly, but no user input is required.

Note: If Sleepy 6.x is already installed, then performing a silent install will update Sleepy files to the most recent version, without changing Sleepy's language, settings, or status.

You can register from the command line

  • To register sleepy, use the command \Program Files\Sleepy\settings.exe /reg name code. The name can contain spaces. This option has no effect if Sleepy is already registered, or if the name or code is incorrect.

    Example: \Program Files\Sleepy\settings.exe /reg John Smith S600-CTJC-R939-X6VF-WH34

You can save and load settings from the command line

You can have Sleepy show helpful information to users

See also: How Sleepy handles multiple users
See also: Command line options
Back to contents


Command line options

Command line options to shut down or restart (with optional delay)

Use the following command line options with settings.exe to shut down or restart your computer:

 /shutdown Shuts down (and turns off) the computer.
 
 /restart Restarts the computer.
 
 /timer hh:mm Optional. Shut down or restart a specified number of hours/minutes from now (instead of immediately). See Shut Down Timer for details.
 
 /force Optional. Forces shut down or restart (doesn't prompt to save documents). Ignored if combined with /timer.
 
 Examples: Turn off the computer immediately (first prompt to save any documents):
C:\Program Files\Sleepy\settings.exe /shutdown
 
   Restart the computer immediately (without prompting to save documents):
C:\Program Files\Sleepy\settings.exe /restart /force
 
   Shut down the computer in 3 hours and 5 minutes:
C:\Program Files\Sleepy\settings.exe /shutdown /timer 03:05

Command line options for saving and loading settings

Use the following command line options with settings.exe to save and load settings:

 /save file.ini Saves current settings into the file file.ini
 
 /apply file.ini Loads and applies settings from the file file.ini
 
 Examples: Save current settings to a file:
C:\Program Files\Sleepy\settings.exe /save C:\files\weekly.ini
 
   Load saved settings from a file, and apply them:
C:\Program Files\Sleepy\settings.exe /apply C:\files\weekly.ini

Command line options for install and uninstall

See Using Sleepy on a network for command line options related to install/uninstall.

Notes:
• Command line options must be all lowercase (as shown above).
• Command line options only work if user has administrator privileges.
• /shutdown will turn off the computer if the Power off at shut down option is checked in Advanced Settings.
• Unless you use /timer, /shutdown and /restart ignore the Start Program option in Advanced Settings.
• /shutdown and /restart will force DOS and unresponsive programs to close.
• If Sleepy is off, settings from /apply take effect immediately; if Sleepy is on, settings from /apply don't take effect until the next time the computer starts.

See also: Using Sleepy on a network
Back to contents


How to translate Sleepy

Before you start, check the Sleepy web site to see if your language is already available; new languages may be added at any time. Note: At this time, Sleepy can't be translated into non-european languages (e.g., chinese, japanese, hebrew, arabic, etc).

You will need to translate 3 files:
• Language File: This is an text file (in Windows .ini format) with a .lng extension. It contains the text used in Sleepy's windows, dialogs, and messages.
• Help File: This is an HTML file with a .htm extension. It contains the Help for Sleepy.
• License Agreement: This is an ANSI text file with a .txt extension. It contains the license agreement text shown when installing and registering.

Follow these instructions to translate:

  1. Install Sleepy in english (you must install in english; if you install a different language these instructions won't work).

  2. Open the folder \Program Files\Sleepy and make copies of the files english.lng, english.htm, and license.txt. Keep these copies in the same folder as the originals.

  3. Rename the copies of the .lng and .htm files to the name of your language (e.g., if translating to spanish, you could rename them to espanol.lng and espanol.htm). The file name doesn't have to be an exact match to the language name, and it should use only english characters (e.g., e is OK, ê is not OK).

  4. Rename license.txt to <langname>-license.txt, where <langname> is the name of your language (e.g. if translating to spanish as in the above example, rename to espanol-license.txt).

  5. Translate the copies. To edit the .htm file, use any HTML editor. To edit the .lng and .txt files, we recommend you use a text editor program like Notepad that doesn't insert line breaks or other formatting. Windows XP/2000/NT Users: Save files in ANSI format, not unicode.

  6. Run the language checker at \Program Files\Sleepy\CHECKLANG.EXE. Use it to check your .lng file against the original english.lng. If it shows any errors, fix them and check again.

  7. If the language checker displays a Langid= value, update that line in your .lng file.

  8. Run Sleepy Settings and try all the commands and make sure that no text is cut off or missing. Also make sure to restart your computer, and watch while Sleepy shuts down and restarts, to make sure that all messages are correct.

Your translation could be added to the next update of Sleepy. If you would like to see your translation added, use the contact form on the Sleepy web site to contact support.

Back to contents



Copyright ⌐ 2003-2004 Sashazur, LLC.