Power

uConsole-Sleep — power-key sleep service

paragonnov's Debian package remaps the power key to a real screen-off sleep: backlight and LCD off, keyboard unpowered, CPU pinned to its minimum clock.

Compatibility
CM4CM5
Difficulty
Easy
Status
Available
Author
paragonnov
Added
Source
ClockworkPi forum

What it takes

  • Software only
  • Config change

Difficulty 1 of 3 — easy.

Details

uConsole-sleep is a pair of small Python services. One watches the power key with epoll and turns the display off (or, on a long press, shows a power menu) instead of shutting down; the other uses inotify to notice the screen going off, then drops the CPU's maximum frequency to its minimum and cuts keyboard power until the next press. It ships as a .deb built from the repo, is MIT-licensed and configurable in /etc/uconsole-sleep/config — the DRM-off step can be disabled if your desktop wakes up rotated, which is what Xfce users hit before v1.2.

Tested by the author on Ubuntu 22.04 and Rex's Bookworm Lite with GNOME 47; v1.3 improved CM5 detection, though one CM5 user on Bookworm 6.12 with KDE Wayland saw no CPU frequency change. It grew out of grandrew's quasi-sleep thread, which remains the place for the measurements.

Open at Forum thread
  • sleep
  • battery-life
  • software
  • power-key

← Back to Power