# uConsole-Sleep v1.3

**URL:** <https://forum.clockworkpi.com/t/uconsole-sleep-v1-3/15612>\
**Category:** uConsole\
**Tags:** uconsole, power-saving, script\
**Created:** [February 4, 2025, 4:55pm UTC](https://forum.clockworkpi.com/t/uconsole-sleep-v1-3/15612 "2025-02-04T16:55:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paragonnov](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/paragonnov/32/10914_2.png) [@paragonnov](https://forum.clockworkpi.com/u/paragonnov)\
**Post date:** [February 4, 2025, 5:32pm UTC](https://forum.clockworkpi.com/t/uconsole-sleep-v1-3/15612/2 "2025-02-04T17:32:08Z")

</div>

**Feature**

- Re-map Power key, Shutdown to Screen-off
- Hold power key to show power interactive menu
- Turn off Screen (Backlight and LCD, not blank)
- Turn off keyboard power
- CPU max freq set to min freq on screen-off
- Feature Customization

**Tested on**

- [Ubuntu 22.04](https://github.com/crossplatformdev/uConsole-Image-Builder/releases/tag/20240929)
- [Bookworm(ak-rex’s) Lite](https://forum.clockworkpi.com/t/bookworm-6-6-y-for-the-uconsole-and-devterm/13235) with GNOME 47

**Known issues**

> **Details**
>
> - ~~In some cases, User input (mouse, keyboard) is required after pressing the power key in any S2Idle state.~~ - fixed in v0.3
> - ~~Keyboard turn-off only works with QMK custom firmware.~~ - fixed in v1.0 (not confirmed)
> - ~~Sometimes, sleep-power-control unable to detect the screen off of the desktop environment~~ - fixed in v1.0
> - ~~The display mode does not recover when the screen is turned off and on, on specific distribution.~~ - fixed in v1.2 (disable turn off drm feature in `/etc/uconsole-sleep/config`)

**Releases**

> **Details**
>
> - v0.2
> - initial release
> 
> - v0.3  
> **Full Changelog** : [Comparing v0.2...v0.3 · qkdxorjs1002/uConsole-sleep · GitHub](https://github.com/qkdxorjs1002/uConsole-sleep/compare/v0.2...v0.3)
> - Emit WakeUp Event after turn on screen
> - Add DRM control to turn off screen (BL,LCD) (not blank)
> 
> - v1.0  
> **Full Changelog** : [Comparing v0.3...v1.0 · qkdxorjs1002/uConsole-sleep · GitHub](https://github.com/qkdxorjs1002/uConsole-sleep/compare/v0.3...v1.0)
> - Official keyboard firmware detection
> - Apply timeout poll for desktop sleep mode detection
> - Use the `detect` flag instead of `on` forcing LCD turned on.
> 
> - v1.1  
> **Full Changelog** : [Comparing v1.0...v1.1 · qkdxorjs1002/uConsole-sleep · GitHub](https://github.com/qkdxorjs1002/uConsole-sleep/compare/v1.0...v1.1)
> - Add feature hold power key to trigger KEY\_POWER (interactive power menu)
> 
> - v1.2  
> **Full Changelog** : [v1.1…v1.2](https://github.com/qkdxorjs1002/uConsole-sleep/compare/v1.1...v1.2)
> - Feature customization
> 
> ```sh
> $ sudo nano /etc/uconsole-sleep/config
> $ sudo systemctl restart sleep-remap-powerkey.service
> $ sudo systemctl restart sleep-power-control.service
> 
> ```
> 
> - Power saving CPU freq now follows a user-specified value, not available value.

_CAUTION - If you are installing for the first time, keep the ssh connection open as a fallback against malfunctions until you check the operation._

**Source and package build script**

- [GitHub - qkdxorjs1002/uConsole-sleep: uConsole Sleep service package](https://github.com/qkdxorjs1002/uConsole-sleep)

**Deb Package**

- [Releases · qkdxorjs1002/uConsole-sleep · GitHub](https://github.com/qkdxorjs1002/uConsole-sleep/releases)

**Installation**

```sh
$ sudo dpkg -i uconsole-sleep.deb

# Uninstall
$ sudo dpkg -r uconsole-sleep

```

**Configuration**

```sh
$ sudo nano /etc/uconsole-sleep/config

$ sudo systemctl restart sleep-remap-powerkey.service
$ sudo systemctl restart sleep-power-control.service

```

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/0/046ab04d4f129772b6ba07cdd3e8e7ff87d40a01.jpeg)

**Build own package**

```sh
# Dependency: python3, (venv)
$ sudo apt update
$ sudo apt install python3-full

$ wget https://raw.githubusercontent.com/qkdxorjs1002/uConsole-sleep/refs/heads/main/make_uconsole-sleep_package.sh

$ sudo chmod +x make_uconsole-sleep_package.sh
$ ./make_uconsole-sleep_package.sh

```

[![](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/1/10f65dd597f055f2725d5a18fcebb9d31892c27e.png)](https://www.buymeacoffee.com/paragonnov)

---

_[View the full topic](https://forum.clockworkpi.com/t/uconsole-sleep-v1-3/15612)._
