Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FrameworkComputer/framework-win-sensor-driver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: FrameworkComputer/framework-win-sensor-driver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: rust
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 48 files changed
  • 2 contributors

Commits on Nov 25, 2026

  1. Rewrite the driver in Rust

    UMDF 2 SensorsCx client built on windows-drivers-rs, structured like
    crosecbus-rs:
    
    - sensors-core: no_std, no WDK dependency. The \Device\CrosEC IOCTL ABI,
      motion sense queries, accelerometer and ALS decoding and thresholding,
      and the polling schedule, unit tested against a simulated EC.
    - FrameworkSensors: the driver. WDF and SensorsCx callbacks, property
      lists, the EC handle. SensorsCx is bound through the WDK's
      sensorscxstub.lib; windows-sys provides the Win32 and SensorsUtils APIs.
    
    Sensors are Cargo features: accelerometer (default, as shipped) and als
    (compiled out in the C++ driver, now lux only).
    
    Keeps the INF, DLL name, persistent IDs and properties. Fixes: failed EC
    reads no longer report zeros, the EC handle is no longer opened
    overlapped without an OVERLAPPED, sensor state is locked, the timer can't
    be re-armed after stop, and the schedule survives the millisecond counter
    wrapping. cargo make stamps a fixed DriverVer (0.1.0.0).
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    JohnAZoidberg and claude committed Nov 25, 2026
    Configuration menu
    Copy the full SHA
    6ac7d8e View commit details
    Browse the repository at this point in the history
  2. Remove the C++ driver sources

    Replaced by the Rust driver. FrameworkSensors.inx stays and is used by
    the Rust build. The disabled SimpleDeviceOrientation client (it never
    read hardware) is not carried over.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    JohnAZoidberg and claude committed Nov 25, 2026
    Configuration menu
    Copy the full SHA
    eebe8f4 View commit details
    Browse the repository at this point in the history
  3. CI: build, lint and package the Rust driver

    Replaces the MSBuild workflow with formatting, sensors-core tests, clippy
    (including the als feature) and the driver build on stable and nightly,
    plus a cargo make test-signed package as the
    framework_win_sensors_release artifact, with install-testsigned.ps1.
    
    The C++ CodeQL / DVL workflow is removed since there are no C++ sources
    left. WHCP static analysis for the Rust driver still needs a plan.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    JohnAZoidberg and claude committed Nov 25, 2026
    Configuration menu
    Copy the full SHA
    ba9d972 View commit details
    Browse the repository at this point in the history
  4. README: document the Rust driver

    Layout, mapping from the C++ sources, compatibility and intentional
    differences, sensor features, building, and installing test builds.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    JohnAZoidberg and claude committed Nov 25, 2026
    Configuration menu
    Copy the full SHA
    47b7891 View commit details
    Browse the repository at this point in the history
Loading