Skip to content

framework12: Support reading touchpad version #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 12, 2025

Conversation

JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Apr 2, 2025

> framework_tool --versions
[...]
Touchpad
  IC Type:           0239
  Firmware Version: v0E07

@JohnAZoidberg JohnAZoidberg changed the title Touchpad framework12 framework12: Support reading touchpad version Apr 10, 2025
Must already be on firmware 0E06 or higher.

```
> framework_tool --versions
[...]
Touchpad
  IC Type:           0239
  Firmware Version: v0E06
```

Signed-off-by: Daniel Schaefer <dhs@frame.work>
On Windows you can read it using HidD_GetAttributes.
The Linux kernel does not expose this.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg marked this pull request as ready for review April 11, 2025 11:21
@JohnAZoidberg JohnAZoidberg force-pushed the touchpad-framework12 branch 2 times, most recently from fe7cb12 to 6e1d411 Compare April 11, 2025 11:39
Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg merged commit 84a79f9 into main Apr 12, 2025
6 checks passed
@@ -28,6 +37,7 @@ pub fn print_touchpad_fw_ver() -> Result<(), HidError> {
let vid = dev_info.vendor_id();
let pid = dev_info.product_id();
let usage_page = dev_info.usage_page();
let hid_ver = dev_info.release_number();
Copy link
Member Author

Choose a reason for hiding this comment

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

@aokblast could you please check if this value is populated with your changes?
The kernel and hidapi on Linux don't expose that, except for USB. But windows does.
I checked that the FreeBSD kernel does expose it, could you please make sure your hidapi changes do as well?
You can run with -vvv verbose logging and it'll be printed.

Copy link
Member Author

Choose a reason for hiding this comment

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

For reference, we checked that it is populated on FreebBSD.

@JohnAZoidberg JohnAZoidberg deleted the touchpad-framework12 branch April 25, 2025 17:04
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.

1 participant