⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module power

Module power 

Source
Expand description

Sysfs power virtual files for VeridianOS.

Exposes power management controls as virtual files under /sys/:

  • /sys/power/state – read supported sleep states, write to trigger
  • /sys/class/backlight/veridian/brightness – read/write 0-100
  • /sys/class/backlight/veridian/max_brightness – read returns 100
  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor – read/write
  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq – read current
  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors – read
  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq – read
  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq – read

These paths are compatible with Linux sysfs conventions so that PowerDevil and other desktop tools can interact with the kernel.