Skip to content

Add haptic settings for Laptop 13 Pro touchpad#332

Merged
JohnAZoidberg merged 1 commit intomainfrom
haptic-settings
May 3, 2026
Merged

Add haptic settings for Laptop 13 Pro touchpad#332
JohnAZoidberg merged 1 commit intomainfrom
haptic-settings

Conversation

@JohnAZoidberg
Copy link
Copy Markdown
Member

See examples for details:

framework_tool --haptic-intensity 75
framework_tool --click-force high

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CLI support for configuring the Framework Laptop 13 Pro haptic touchpad via HID feature reports, and updates user-facing documentation and shell completions accordingly.

Changes:

  • Introduces --haptic-intensity (0/25/50/75/100) and --click-force (low/medium/high) CLI flags and wiring in the command dispatcher.
  • Implements HID feature-report writes in framework_lib::touchpad for intensity and click-force configuration.
  • Updates bash/zsh/fish completions and adds usage examples to EXAMPLES.md.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
framework_tool/completions/zsh/_framework_tool Adds zsh completion entries for the new flags and their allowed values.
framework_tool/completions/fish/framework_tool.fish Adds fish completions for haptic intensity and click force.
framework_tool/completions/bash/framework_tool Adds bash completions for the new flags (options list + per-flag value completion).
framework_lib/src/touchpad.rs Adds HID device discovery + feature report writes for haptic intensity and click force.
framework_lib/src/commandline/uefi.rs Initializes new CLI fields for UEFI builds (defaults to None).
framework_lib/src/commandline/mod.rs Adds new CLI args (haptic_intensity, click_force) and hooks them into run_with_args.
framework_lib/src/commandline/clap_std.rs Adds clap parsing for the new flags (including allowed-value validation).
EXAMPLES.md Documents how to use the new touchpad haptics flags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread framework_lib/src/touchpad.rs
Comment thread framework_lib/src/touchpad.rs Outdated
Comment thread framework_lib/src/touchpad.rs Outdated
Comment thread EXAMPLES.md Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread framework_lib/src/touchpad.rs
Comment thread framework_lib/src/touchpad.rs
Comment thread framework_lib/src/commandline/clap_std.rs Outdated
Comment thread EXAMPLES.md Outdated
See examples for details:

> framework_tool --haptic-intensity 75
> framework_tool --click-force high

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg merged commit 3a6c1f4 into main May 3, 2026
11 checks passed
@JohnAZoidberg JohnAZoidberg deleted the haptic-settings branch May 3, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants