add wayland display refresh‑rate control and Run subcommand tolaunch applications on discrete GPU#1
Conversation
…dencies Add support for querying and setting display refresh rates and extend the command‑line interface for refresh‑rate management. - **New Features** - Introduce `lapctl display rates` to list available refresh rates. - Add `lapctl display set-rate <HZ>` to change the active display’s refresh rate. - Support runtime detection on Hyprland, Sway, KDE Plasma, GNOME, and X11 back‑ends. - **Enhancements** - Include `wayland-client` and `wayland-protocols-wlr` crates with the `client` feature. - Update `Cargo.toml` to declare the new Wayland-related dependencies. - Expand README with usage examples for refresh‑rate management. - **Bug Fixes** - No bug fixes introduced in this change.
Implement display command to query and set refresh rates. New Features - Add DisplayCommands with Rates and SetRate subcommands - Register display command in CLI dispatcher Enhancements - Extend command dispatch to handle Display subcommand Bug Fixes - None
…te control New Features - Create `src/commands/display.rs` providing `execute` handling for `Rates` and `SetRate` commands, querying refresh rates and applying configuration via Wayland output manager - Implement mode enumeration, deduplication, and marker labeling (current/preferred) for displayed modes - Enable fuzzy matching of target refresh‑rate when setting a new rateEnhancements - Register the `display` module in `src/commands/mod.rs` - Extend `AppState` with manager, heads, and modes maps plus configuration state tracking - Add dedicated error handling for unsupported compositorsBug Fixes - None
…tput Add function to retrieve and display active monitor information, and expose it via status command. New Features: - Implement get_active_display_info returning formatted display strings. - Extend status command to list active displays using the new function. Enhancements: - Improve console output for display information. - Update dependency usage for cleaner code. Bug Fixes: - None
Add native Wayland refresh rate control using zwlr_output_manager_v1, remove reliance on xrandr, and document limitations for GNOME/KDE. This enables on‑the‑fly Hz changes without external tools. - New Feature: Native Wayland refresh rate management - Enhancement: Updated requirements and limitations sections - Enhancement: Improved documentation for refresh rate control
- New Features: Add optional GPU switching requirement description for X11 (lapctl gpu) usage. - Enhancements: Improve clarity of system dependency documentation. - Bug Fixes: None.
- New Features - Introduce `Run` command with trailing var argument support for executing commands on the discrete GPU (requires Hybrid Mode) - Enhancements - Update CLI parsing to accept a vector of command strings - Bug Fixes - None
… discrete GPU 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.
The command enables launching Steam directly on the dGPU while in hybrid mode, improving performance for gaming workloads. New Features - Introduces `lapctl gpu run steam` to run Steam on dGPU directly in hybrid mode. Enhancements - Updated README with documentation for the new GPU command. Bug Fixes - None.
- New Features: - Enhancements: Clarify formatting of `lapctl gpu run steam` example. - Bug Fixes:
New Features - None Enhancements - Updated edition to 2024 Bug Fixes - None
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usage: