Skip to content

Commit 7a287da

Browse files
committed
wmi: Add AMD drivers
Graphics driver has wrong version Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 7126a8b commit 7a287da

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

framework_lib/src/wmi.rs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ use wmi::*;
2121
// Get-WmiObject -query "SELECT * FROM Win32_PnPEntity WHERE ConfigManagerErrorCode <> 0"
2222
//
2323
// Win32_PnpSignedDriver
24-
// get-wmiobject Win32_PnpSignedDriver | select Manufacturer,DeviceName,HardwareID,DriverVersion
24+
// get-wmiobject Win32_PnpSignedDriver | select Manufacturer,DeviceName,HardwareID,DriverVersion
2525
// get-wmiobject Win32_PnpSignedDriver | where manufacturer -like 'Goodix' | select Manufacturer,DeviceName,HardwareID,DriverVersion
2626
// get-wmiobject Win32_PnpSignedDriver | where manufacturer -like 'Intel' | select Manufacturer,DeviceName,HardwareID,DriverVersion
2727
//
2828
// Win32_Product
2929
// Get-WmiObject -Class Win32_Product | select IdentifyingNumber, Name, Version
30+
//
31+
// Get-WmiObject -Class Win32_Product | select IdentifyingNumber, Name, Version | Format-Table | Out-String -width 9999 > product.txt
32+
// get-wmiobject Win32_PnpSignedDriver | select Manufacturer,DeviceName,HardwareID,DriverVersion | Format-Table | Out-String -width 9999 > pnp.txt
33+
// get-wmiobject Win32_SystemDriver | select DisplayName,Name,@{n="version";e={(gi $_.pathname).VersionInfo.FileVersion}},PathName | Format-Table | Out-String -width 9999 > system.txt
3034

3135
pub fn print_yellow_bangs() {
3236
println!("Devices with Yellow Bangs");
@@ -98,6 +102,16 @@ const PNP_DRIVERS: &[&str] = &[
98102
// Also in system_drivers
99103
// Not using the one here, because it doesn't show up when the card isn't plugged in
100104
// Genesys Logic Framework SD Expansion Card USB\VID_32AC&PID_0009&REV_0003 4.5.10.201
105+
106+
// MediaTek, Inc. RZ616 Wi-Fi 6E 160MHz PCI\VEN_14C3&DEV_0616&SUBSYS_E61614C3&REV_00 3.3.0.908
107+
"RZ616 Wi-Fi 6E 160MHz",
108+
// Mediatek Inc. RZ616 Bluetooth(R) Adapter USB\VID_0E8D&PID_E616&REV_0100&MI_00 1.1037.0.395
109+
"RZ616 Bluetooth(R) Adapter",
110+
// For both of these WMI shows 31.0.24018.2001 instead of 23.40.18.02. But it's actually the same version
111+
// Advanced Micro Devices, Inc. AMD Radeon(TM) 780M PCI\VEN_1002&DEV_15BF&SUBSYS_0005F111&REV_C1 31.0.24018.2001
112+
"AMD Radeon(TM) 780M",
113+
// Advanced Micro Devices, Inc. AMD Radeon(TM) RX 7700S PCI\VEN_1002&DEV_7480&SUBSYS_0007F111&REV_C1 31.0.24018.2001
114+
"AMD Radeon(TM) RX 7700S",
101115
];
102116

103117
const PRODUCTS: &[&str] = &[
@@ -108,6 +122,9 @@ const PRODUCTS: &[&str] = &[
108122
"Intel(R) Chipset Device Software",
109123
// {00000060-0230-1033-84C8-B8D95FA3C8C3} Intel(R) Wireless Bluetooth(R) 23.60.0.1
110124
// {1C1EBF97-5EC2-4C01-BCFC-037D140796B4} Intel(R) Serial IO 30.100.2405.44
125+
126+
// {35143df0-ba1c-4148-8744-137275e83211} AMD_Chipset_Drivers 5.06.29.310
127+
"AMD_Chipset_Drivers",
111128
];
112129

113130
pub fn print_drivers() {
@@ -235,6 +252,11 @@ pub fn print_drivers() {
235252
//"IntcAzAudAddService", // Service for Realtek HD Audio (WDM)
236253
//"intelpmax", // Intel(R) Dynamic Device Peak Power Manager Driver
237254
//"IntelPMT", // Intel(R) Platform Monitoring Technology Service
255+
256+
// Mediatek PCI LE Extensible Wireless LAN Card Driver mtkwlex 3.3.0.0908 C:\Windows\system32\drivers\mtkwl6ex.sys
257+
// ("mtkwlex", Some("RZ616 WiFi Driver")),
258+
// MTK BT Filter Driver MTKBTFilterx64 1.1037.0.395 TK C:\Windows\system32\drivers\mtkbtfilterx.sys
259+
// ("MTKBTFilterx64", Some("RZ616 Bluetooth Driver")),
238260
]);
239261

240262
let results: Vec<HashMap<String, Variant>> = wmi_con

0 commit comments

Comments
 (0)