Skip to content

Commit 61536fb

Browse files
committed
Use FRMWC006
Then we don't have to use devcon to create a software device. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 44166c5 commit 61536fb

2 files changed

Lines changed: 33 additions & 8 deletions

File tree

README.md

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,43 @@ Sensor Driver for Windows on Framework systems
55
# Build
66
msbuild .\SensorsComboDriver\SensorsComboDriver.sln /property:Platform=x64 /property:Configuration=Debug
77
8-
# First install
9-
# TODO: Should move to ACPI\FRMWC006
10-
> sudo .\devcon.exe install .\SensorsComboDriver\x64\Debug\SensorsComboDriver\SensorsComboDriver.inf umdf2\SensorsComboDriver
11-
12-
# Subsequent installs
13-
> sudo pnputil /add-driver .\SensorsComboDriver\x64\Debug\SensorsComboDriver\SensorsComboDriver.inf /install
14-
158
# Distributing
169
.\SensorsComboDriver\x64\Debug\
1710
SensorsComboDriver.pdb
1811
SensorsComboDriver\sensorscombodriver.cat
1912
SensorsComboDriver\sensorscombodriver.dll
2013
SensorsComboDriver\sensorscombodriver.inf
2114
# Use signtool to sign .cat file and package all 4 files
15+
16+
# Install
17+
> sudo pnputil /add-driver SensorsComboDriver.inf /install
18+
19+
```
20+
21+
Check if the driver is installed and loaded:
22+
23+
```
24+
# Framework EC driver
25+
> pnputil /enum-devices /deviceid "acpi\frmwc004"
26+
Microsoft PnP Utility
27+
28+
Instance ID: ACPI\FRMWC004\1
29+
Device Description: Framework EC
30+
Class Name: System
31+
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
32+
Manufacturer Name: Framework
33+
Status: Started
34+
Driver Name: oem2.inf
35+
36+
# Sensor driver
37+
> pnputil /enum-devices /deviceid "acpi\frmwc006"
38+
Microsoft PnP Utility
39+
40+
Instance ID: ACPI\FRMWC006\1
41+
Device Description: Sensors Combo Driver - ALS, Accelerometer, Orientation
42+
Class Name: Sensor
43+
Class GUID: {5175d334-c371-4806-b3ba-71fd53c9258d}
44+
Manufacturer Name: Manufacturer Name
45+
Status: Started
46+
Driver Name: oem194.inf
2247
```

SensorsComboDriver/SensorsComboDriver.inx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SensorsComboDriver.dll = 1,,
3737
[SensorsComboDriver_Device.NT$ARCH$.10.0...22000]
3838
; DisplayName Section DeviceId
3939
; ----------- ------- --------
40-
%SensorsComboDriver_DevDesc% = SensorsComboDriver_Inst, umdf2\SensorsComboDriver
40+
%SensorsComboDriver_DevDesc% = SensorsComboDriver_Inst, ACPI\FRMWC006
4141

4242
[SensorsComboDriver_Inst.NT]
4343
Include=WUDFRD.inf

0 commit comments

Comments
 (0)