Skip to content

Detect sensor presence and location via motion sense host commands#16

Merged
JohnAZoidberg merged 5 commits intomainfrom
motionsense
Aug 6, 2025
Merged

Detect sensor presence and location via motion sense host commands#16
JohnAZoidberg merged 5 commits intomainfrom
motionsense

Conversation

@JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented May 15, 2025

Reason: Support different devices in the future. Not critical for Framework 12 right now.

  • Support host commands
  • Add motionsense host commands
  • Determine sensor presence and location based on motionsense commands

@JohnAZoidberg JohnAZoidberg changed the title WIP: Host commands Detect sensor presence and location via motion sense host commands Aug 2, 2025
@JohnAZoidberg
Copy link
Member Author

I think it's ready, need to test on hardware.

@JohnAZoidberg JohnAZoidberg marked this pull request as ready for review August 2, 2025 11:52
Copy from FrameworkArgb 3a8d21ebae7ee6c0adc579c8e86f3e9f0bb7dfa

Signed-off-by: Daniel Schaefer <dhs@frame.work>
So that we can share code referencing it between projects.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
So that we can build it from VisualStudio

Signed-off-by: Daniel Schaefer <dhs@frame.work>
If no sensors available, abort AccelerometerClient.
Next step is to find which sensor is at which index.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Useful in case the lid sensor is not the first one in the memmap.
On Framework 12 it currently is (BIOS 3.03) but it might not be in the
future.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg
Copy link
Member Author

Works now.

@JohnAZoidberg JohnAZoidberg merged commit bc56a83 into main Aug 6, 2025
2 checks passed
@JohnAZoidberg JohnAZoidberg deleted the motionsense branch August 6, 2025 09:51
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