Enhancements:
- Remove unnecessary multiline formatting in GPU, status, and temperature commands
- Consolidate zone type checks into a single condition
- Simplify environment variable tuple definitions
Refactor fan monitoring and improve GPU temperature reporting for better hardware visibility.
- New Features:
- Add `fan` command to enumerate and display fan speeds via hwmon and thermal cooling devices.
- Expand temperature detection across hwmon, thermal zones, and NVIDIA GPU sensors.
- Enhancements:
- Strengthen GPU temperature output with power and clock information.
- Improve error messages and logging consistency.
- Bug Fixes:
- Correct error message wording.
- Gracefully handle missing sensor files.
- **New Features**: Added detailed error logging for signal handling, directory creation, cache file operations, and service management; improved cleanup with explicit error propagation.
- **Enhancements**: Refactored Drop implementations to handle failures gracefully; upgraded status handling for systemctl commands with precise exit code reporting; strengthened directory and file removal with debug logging.
- **Bug Fixes**: Fixed missing error propagation in Ctrl+C handler; corrected service enable/disable status reporting; ensured proper removal of cache files and directories with appropriate logging of failures.
The changes add robust interruption support, exclusive‑lock enforcement, and safer file handling to the GPU switching commands, while clarifying installation output.
- New Features - Atomic `INTERRUPTED` flag with Ctrl‑C signal handler
- `DmGuard` struct to manage display‑manager start/stop lifecycle
- `LockGuard` with exclusive lock file (`/var/lock/lapctl.lock`) to serialize GPU switches
- Safe temporary‑file write + rename for cache updates
- Enhancements
- Unified `prepare_no_reboot` returns `DmGuard` instead of `Option<String>`
- Consistent early‑exit handling with lock acquisition checks
- Improved debug/info logging for DM actions
- Restructured `finalize_no_reboot` to return a guard value
- Clarified installation success/failure messages for `lapctld`
- Bug Fixes
- Prevented race conditions on concurrent GPU switches by locking before operation
- Ensured lock is released on early return paths
- Fixed incomplete `finalize_no_reboot` handling
- Corrected daemon enable detection and user feedback logic
Enable automatic handling of NVIDIA commands in Wayland sessions and generate proper Xorg config snippets.
- New Features
- Adds `is_wayland_session()` that detects a Wayland environment via `WAYLAND_DISPLAY` or `XDG_SESSION_TYPE`.
- Adds `xorg_modesetting(bus_id)` that builds a full Xorg configuration snippet for the modesetting driver.
- Enhancements
- `switch_nvidia()` now automatically treats NVIDIA commands as Wayland‑aware when a Wayland session is detected.
- Refactored command matching in `execute()` to preserve original fields while injecting Wayland awareness.
- Fixed daemon invocation to pass a reference to the (potentially transformed) command.
- Bug Fixes
- Corrected argument passing in `try_call_daemon` and `execute_local` to avoid move errors.
- Prevented duplicate command handling when a Wayland session is detected.
Refactored command flow to separate daemon invocation, added status handling, and improved error handling.
- New Features: Added `execute_local` helper and `BatteryCommands::Status` handling.
- Enhancements: Simplified daemon checks, removed redundant condition, improved readability and error messages.
- Bug Fixes: Fixed missed daemon return path for status command and ensured proper touchpad inhibition logic.
Adds 2‑second timeouts around D‑Bus interactions and guards against internal daemon self‑calls; refactors command handling to use a consistent async timeout pattern and improves error reporting.
New Features
- Wrap D‑Bus calls with a 2‑second timeout to prevent hangs
- Early‑exit when $LAPCTL_DAEMON_INTERNAL is set to skip self‑calls- Apply consistent timeout usage across all commands
Enhancements
- Unified error handling using the `matches!` macro
- Reduced race conditions in connection establishment
Bug Fixes
- Prevent silent failures when a connection timeout occurs
Running applications on the dGPU now requires proper environment variable setup and runtime mode checking. The implementation includes warnings when the system is not in hybrid mode and logs the launched command and its exit status.
- New Feature: Implemented `run_on_dgpu` function to execute commands with NVIDIA offload environment variables.
- Enhancement: Added runtime mode verification and warning for non‑hybrid configurations.
- Enhancement: Added informational logging for launched command and process exit status.
Implemented clearer cooling profile output by mapping mode codes to
human‑readable names and prefixing with "(ASUS)". Refactored thermal
detection loops for better readability and moved debug logging into the
correct block for GPU cache creation.
New Features
- Map mode strings "0","1","2" to readable cooling profile names
(Performance, Balanced, Quiet / Battery Saving) and print them with
"(ASUS)" label.
- Provide explicit cooling profile description in command output.
Enhancements
- Simplify Intel RAPL and AMD hwmon detection loops for clearer flow.
- Adjust brace placement in GPU cache creation to ensure debug log is
emitted only on successful cache write.
- Minor formatting and style clean‑ups across battery, GPU, and power
commands.
Bug Fixes
- Fix missing/incorrect closing braces in battery and power command
parsers that previously caused compilation warnings.
- Ensure thermal detection logic only accesses sysfs entries after
successful directory read.
- New Features
- None
- Enhancements
- Simplified percent range validation for battery mode.
- Combined existence and read checks for sysfs entries, removing redundant branches.
- Streamlined systemctl command arguments and removed unnecessary references.
- Removed superfluous braces and simplified cooling profile detection logic.
- Improved robustness of sysfs parsing for Intel RAPL and AMD hwmon temperature limits.
- Bug Fixes
- Fixed battery percent validation to use inclusive range (1..=100) instead of incorrect reference comparison.
- Made the three helper functions public to allow external usage
- Facilitates reuse of GPU configuration helpers
- No functional changes beyond visibility
Restructure loops, add explicit error handling, improve multi‑line messages, and fix formatting issues.
- Enhancements
- Use explicit braces for error branches to prevent silent failures
- Wrap warning and informational messages in multi‑line `println!` with consistent spacing
- Refactor directory reads for Ideapad fallback to avoid nested `let` bindings
- Improve parsing and formatting of AMD TDP limit output with clear parentheses
- Provide clearer debug logging when writing to threshold files
- Bug Fixes
- Added missing braces around error handling to ensure proper execution flow
- Fixed variable binding scope for `ideapad_entries` to prevent shadowing
- Ensured consistent handling of missing `charge_control_end_threshold` across all entries
no changes.
Added full command implementations for battery limit/status, GPU management (cache operations, mode switching, NVIDIA handling), and a status reporter that prints GPU mode and battery details. Introduced module registration and placeholder power command.
New Features
- Battery command support (`limit`, `status`)
- GPU command suite (`cache-delete`, `cache-query`, `reset`, `reset-sddm`, `integrated`, `hybrid`, `nvidia`)
- Status command output showing GPU mode and battery information
- Power command placeholder scaffold
Enhancements
- Unified command registration via `mod.rs`
- Added root checks and file utilities for cache and config operations
- Integrated logging infrastructure
Bug Fixes: none
- New Features
- battery.rs: new command to display battery charge and health
- gpu.rs: new command to query GPU utilization and temperature
- power.rs: new command to show power consumption and mode
- status.rs: new command to provide overall system status overview