PersonalPublic2023

Auto Shutdown

Built as a personal solution to manage sleep issues similar to narcolepsy, this system utility prevents the PC from being left on indefinitely when falling asleep unexpectedly. The application is designed to be highly interactive, beautiful, and extremely lightweight, running silently in the background. It utilizes Tauri, Rust, and low level kernel APIs to orchestrate system lifecycle power states through idle timeouts and scheduled events.

Auto Shutdown

About This Project

Unintentionally falling asleep due to narcolepsy like sleep issues, leaving the PC running constantly. The goal was to create a non intrusive utility that detects inactivity and automates shutdown without disrupting active usage.

Developed a silent Tauri-wrapped background daemon in Rust that monitors idle activity via Windows low level kernel hooks and runs configured power down triggers.

A highly performant, custom tailored system utility that runs with near zero resource impact, successfully managing hardware power states and securing system standby.

Role

Systems Developer

Year

2023

Status

Public

Type

Personal

Technology Stack

RustTauriReactTypeScript

Project Story

The Challenge

Unintentionally falling asleep due to narcolepsy like sleep issues, leaving the PC running constantly. The goal was to create a non intrusive utility that detects inactivity and automates shutdown without disrupting active usage.

The Approach

Developed a silent Tauri-wrapped background daemon in Rust that monitors idle activity via Windows low level kernel hooks and runs configured power down triggers.

The Outcome

A highly performant, custom tailored system utility that runs with near zero resource impact, successfully managing hardware power states and securing system standby.

Insights & Takeaways

Highlights

  • Addresses a direct personal health challenge (narcolepsy like sleep issues).
  • Implements low level kernel integration in Rust for system idle detection and power state orchestration.
  • Extremely lightweight and non intrusive background execution.

Challenges

  • Accessing Windows kernel APIs securely and accurately detecting user idle states without false positives.
  • Optimizing background idle execution to consume negligible CPU and memory.

Lessons Learned

  • Building native utilities requires deep integration with OS-specific system APIs and event loops to ensure high reliability.

Related Work