Skip to main content

Simple script to turn off all monitors

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monoff-0.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

monoff-0.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file monoff-0.0.3.tar.gz.

File metadata

  • Download URL: monoff-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for monoff-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7f93e052b7b50911c5552d38a92f6e67f5838e651819a7df9ada72d6d8920550
MD5 959c0c0c6106da5f943b98c86ea3e50d
BLAKE2b-256 48c27f2b0daf0b0125ebf1476d27329578a9f487bf992247330579a9c3876c37

See more details on using hashes here.

File details

Details for the file monoff-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: monoff-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for monoff-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9772b9e11e67b5a3c1ddc9920da8f94aa9c919b1864db9c12a624f557eed52ea
MD5 0425b69ba72add857216eb4ea3d9e12a
BLAKE2b-256 80b5e81cc3ab9141eb578158b6f3b1a9246c8f2fc8b58ebd1804b8492d8c6762

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page