Skip to content
joaoncPublic

About

Keep external drives active (prevent them from sleeping) to avoid waiting for them to spin back up.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

HD Active

pypi Project License - MIT

Prevent external HD's from becoming inactive (sleeping).

In a world of SSD's, an app like this is not as needed, but if you still have an HD hooked up that goes to sleep and takes a while to access, this app can help.

In my particular case, have an HD that constantly goes to sleep and can't find the drivers to prevent that. Wanted to learn a bit more about Qt, so went ahead and made this.

https://joaonc.github.io/hd_active

Quick start

hd_active                  # Run in the system tray (same as `hd_active gui`)
hd_active run              # Run in the console, without UI, until Ctrl+C
hd_active config init --drive e:\ --drive f:\ --wait 30
hd_active config show

Options common to all commands: --conf FILE (default: hd_active.ini in the current directory) and --log LEVEL. gui and run also accept --dry-run, to not write to the drives. See hd_active --help for more.

Development

This project is managed with uv, which needs to be installed first.

Create the virtual environment and install the development packages:

uv sync

This project uses typer-invoke to facilitate common tasks. For a list of tasks:

uv run inv --help

Licensing

Even though I'm providing this code under the MIT license, Qt is used for the UI component, meaning you'll be bound to its GPL/LGPL license (more info here).

I'm not an expert on these things, so be advised.

About

Keep external drives active (prevent them from sleeping) to avoid waiting for them to spin back up.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages