Skip to main content

ResSetter

Simple utility to force a display resolution and refresh rate on Windows.

Originally created because my 120 Hz TV is stupid and would reset back to 60 Hz every time you turned it off. You can run this script and it'll do what it says on the tin: set the resolution and refresh rate to what you want.

You can use command line arguments to set a custom resolution or refresh rate:

  • --width and --height for resolution
  • --refresh for refresh rate

A cooler way to use it if you're suffering from a problem like mine is to use the --background argument, which will leave the script running and monitor for input (key presses or mouse movement). After a period of inactivity, when it detects input, it triggers the resolution and refresh rate change.

I couldn't get anything to reliably detect when the TV turned on or off, so instead I came up with this idea of resetting the resolution as soon as you (presumably) sit back down at the computer and wake it up. I've been using it for months and it's been rock solid.

You can also use arguments to specify the waiting period:

  • --timeout sets the length of inactivity before new input will trigger a reset (in seconds)
  • --set-delay will set the number of seconds after activity is detected before the reset will trigger

It will retry if it's unable to set the resolution at first:

  • --retry-delay will set how long to wait before another retry (in seconds)
  • --max-retries will set the max number of retries before it gives up

Running the Script

pip install ressetter  # to install
ressetter  # to immediately set the resolution
ressetter --background  # to run the script in background mode

Compiling the Script

If you want to turn the script into an EXE to run it more easily (e.g. on startup), you can do that with pyinstaller and the included spec file:

pyinstaller --noconfirm --clean --distpath=dist --workpath=build ressetter.spec

Then just take the compiled EXE, stick it somewhere accessible, and create a shortcut to it in your Start menu's Startup folder.

Pro tip: You can also set a shortcut key for it to something like Ctrl+Alt+Shift+R in Properties so you can invoke it without having to find and open it.

Metadata

Release files for ressetter 0.1.1.post1

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

Source distribution (sdist)

Source distribution for ressetter 0.1.1.post1
File Size Uploaded
ressetter-0.1.1.post1.tar.gz 5.8 kB Details

Built distribution (wheel)

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

Total release size: 14.4 kB

Release files / ressetter-0.1.1.post1.tar.gz

Download URL ressetter-0.1.1.post1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31c062d3f2ee671e7dfc4594f818374327d908e46ef39571648e029926e5a4a1
BLAKE2b-256 checksum
How to use checksums
6cd371dc05d8c78eef650e1efca05b4814b8a1927fce11266d2a40adb317c066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.9 Darwin/24.4.0

Release files / ressetter-0.1.1.post1-py3-none-any.whl

Download URL ressetter-0.1.1.post1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cf40eeb685033eafd99f0fcb0934aa45ef6ce95a95d6b7e292461be1e0639a5
BLAKE2b-256 checksum
How to use checksums
ad8a3970f9a9004de3d2eee19982574eb3ccbbae49548a7fd822e333789b2b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.9 Darwin/24.4.0

Release history Release notifications | RSS feed

This release

0.1.1.post1 This release

2 release files

0.1.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