Tools to better handle Debian based laptops (Ubuntu, Mint, MxLinux ....)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ronald Portier 3d4e978db5
[ADD] Add enable_reisub command
Make Alt+SystemRequest Great Again.
2026-11-05 13:47:59 +01:00
prevent_freeze [ADD] Add enable_reisub command 2026-11-05 13:47:59 +01:00
.gitignore Initial commit 2026-11-05 12:33:25 +01:00
AGENTS.md [ADD] Add tool prevent_freeze 2026-11-05 13:01:51 +01:00
LICENSE Initial commit 2026-11-05 12:33:25 +01:00
README.md [ADD] Add enable_reisub command 2026-11-05 13:47:59 +01:00

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 a README.md explaining 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 with sudo) 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.