os_bedtime
os_bedtime is a python module made for windows (for now) to turn off the computer with simple functions.
Currently support for Linux is unplanned but kept in mind, but for me there is no way to test OSX :'(
So that will come much later.
Early access
Currently this module is yet in the major version 0.x.x and with that in mind the interface might change at any time.
It is kept in mind to make changes as little as possible, but it is not out of question that things might brake during early access.
If you feel like contributing. (OSX or Linux or improvements for Windows even) Let me know in an issue.
How to install
pip install os-bedtime
Issue: Sleep issues
Your computer might be waking from sleep mode because certain peripheral devices, such as a mouse, a keyboard, or headphones are plugged into a USB port or connected via Bluetooth. It might also be caused by an app or a wake timer.
Windows: Turn off wake-timers
Wake timers are timers that may wake your computer on a set time. Disabling this make this impossible until you re-enable it.
If you use wake-timers to automatically wake your computer at 7 am or something, this will not work anymore.
- Right-click Windows button. Select
Energy-management- Scroll down and click the link for
Extra energy-settings- Click the
Change power-planto the right of the currently selected power-plan- Click the
Change advanced energy-settingslink- Scroll and find
Sleep->Allow activation timers- Set it to
NoorDisabled
Windows: Turn off peripheral-devices access to wake your pc
Peripheral-devices (like for example your keyboard) have access to wake your computer out of sleep-mode. For something like a keyboard this makes sense. You press the space-bar and the computer wakes up, but there are other devices where this might make less sense. For example a network device may wake your computer?
- left-click the windows button. Type
CMDand chooseRun as administrator- It will prompt you if you did this and allow this... Allow
- Type in the console
powercfg -devicequery wake_armedand press enter- It gives you a list of all your peripheral devices that may wake up your computer out of sleep mode
- Right-click Windows button. Select
Device-management- Find all the devices (or the onces you want to disable), in the list and double-click them
- Find the tab called:
Energy-managementand uncheck the checkbox forThis device may wake the computer out of sleepmode
Note: Some devices like mice and keyboards show up multiple times (that is normal), but not all have this tab (that is also normal). Find the onces that do and disable those
Release files for os-bedtime 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| os_bedtime-0.2.1.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| os_bedtime-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / os_bedtime-0.2.1.tar.gz
| Download URL | os_bedtime-0.2.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
880642741ca01d875bcefd2fd90a28c13b3d6efb6e6538d565d7fec32877eb74
|
|
BLAKE2b-256 checksum How to use checksums |
e946ca9f31643975a52230df86666eb6d2fcabd9c007bf9b203926ecf66293db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / os_bedtime-0.2.1-py3-none-any.whl
| Download URL | os_bedtime-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f10c26d2b5bad13e2e340609bcbff444bbaacb82704d926a53eced79e92b1041
|
|
BLAKE2b-256 checksum How to use checksums |
408a527e158376828439fc42ddc0333e246ffd8c74d134acdb5e4c96c70d7be7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|