Skip to main content

monoff

When run via "python -m monoff", will turn off all monitors. Typing on the keyboard or moving the mouse should bring the monitors back. If your monitors auto-detect digital inputs, they should switch to another source if one is available. May be used to switch all monitors in one command in this manner as opposed to individually selecting sources on each monitor.

Should work for Windows, Linux, and Mac. Not tested for Mac.

Notes for different platforms

Windows:

Requires pywin32 (not installed automatically)
Uses pywin32 to broadcast an SC_MONITORPOWER
[https://docs.microsoft.com/en-us/windows/win32/menurc/wm-syscommand](Microsoft Documentation)

Linux:

Uses "xset dpms force off"

Mac (not tested):

Uses "pmset displaysleepnow"

Release files for monoff 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monoff 0.0.3
File Size Uploaded
monoff-0.0.3.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for monoff 0.0.3
File Interpreter ABI Platform
monoff-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / monoff-0.0.3.tar.gz

Download URL monoff-0.0.3.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7f93e052b7b50911c5552d38a92f6e67f5838e651819a7df9ada72d6d8920550
BLAKE2b-256 checksum
How to use checksums
48c27f2b0daf0b0125ebf1476d27329578a9f487bf992247330579a9c3876c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

Release files / monoff-0.0.3-py3-none-any.whl

Download URL monoff-0.0.3-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9772b9e11e67b5a3c1ddc9920da8f94aa9c919b1864db9c12a624f557eed52ea
BLAKE2b-256 checksum
How to use checksums
80b5e81cc3ab9141eb578158b6f3b1a9246c8f2fc8b58ebd1804b8492d8c6762
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

3 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page