Tools to better handle Debian based laptops (Ubuntu, Mint, MxLinux ....)
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| prevent_freeze | ||
| .gitignore | ||
| AGENTS.md | ||
| LICENSE | ||
| README.md | ||
laptop-tools
Small, focused tools to better handle Debian-based laptops (Ubuntu, Mint, MX Linux, ...). Each tool is a standalone script in its own directory with its own documentation, designed to be read and run with minimal dependencies — clone and run, no virtualenv or build step required.
Tools
| Tool | What it does |
|---|---|
prevent_freeze |
Caps CPU and memory of your user slice so a single runaway process can't freeze the laptop. Detects cores/RAM/swap at runtime, computes safe defaults, and applies them via a persistent systemd drop-in. Dry-run by default; sudo ... --apply to make it real. |
enable_reisub |
Companion to prevent_freeze: enables (or checks) the kernel magic SysRq facility so the Alt+SysRq REISUB recovery sequence works. Three presets — --safe (176), --default (438), --full (1) — plus --check to report current state. Dry-run by default; sudo ... --apply to make it real. |
Conventions
- One directory per tool:
<name>/<name>.py(or.sh) plus<name>/doc/with at least aREADME.mdexplaining why the tool exists and how it works — not just what flags it takes. - Dry-run by default: tools that change the system print what they would do with no arguments and require an explicit
--apply(almost always withsudo) to make real changes. Safe to run blindly for inspection. - Stdlib only: Python tools use the standard library only unless a dependency is genuinely unavoidable, so they run on a bare Debian/Ubuntu/Mint install with no
pip install. - Targets systemd + cgroup v2 (any modern Debian-family desktop).
License
MIT — see LICENSE.