Skip to content

Commit

Permalink
feat: added Media Engine sensors for m1 SoC (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Dec 16, 2023
1 parent fb4f57e commit 329521b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Modules/Sensors/values.swift
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,13 @@ internal let SensorsList: [Sensor] = [
Sensor(key: "Tg0L", name: "GPU 3", group: .GPU, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra], average: true),
Sensor(key: "Tg0T", name: "GPU 4", group: .GPU, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra], average: true),

Sensor(key: "Tm02", name: "Memory 1", group: .GPU, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra], average: true),
Sensor(key: "Tm06", name: "Memory 2", group: .GPU, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra], average: true),
Sensor(key: "Tm08", name: "Memory 3", group: .GPU, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra], average: true),
Sensor(key: "Tm09", name: "Memory 4", group: .GPU, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra], average: true),
Sensor(key: "Tm02", name: "Memory 1", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),
Sensor(key: "Tm06", name: "Memory 2", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),
Sensor(key: "Tm08", name: "Memory 3", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),
Sensor(key: "Tm09", name: "Memory 4", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),

Sensor(key: "TCMb", name: "Media Engine 1", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),
Sensor(key: "TCMz", name: "Media Engine 2", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]),

// M2
Sensor(key: "Tp0A", name: "CPU core 1", group: .CPU, type: .temperature, platforms: [.m2, .m2Max, .m2Pro, .m2Ultra], average: true),
Expand Down Expand Up @@ -462,7 +465,9 @@ internal let SensorsList: [Sensor] = [
Sensor(key: "PC3C", name: "RAM", group: .sensor, type: .power, platforms: Platform.all),
Sensor(key: "PPBR", name: "Battery", group: .sensor, type: .power, platforms: Platform.all),
Sensor(key: "PDTR", name: "DC In", group: .sensor, type: .power, platforms: Platform.all),
Sensor(key: "PSTR", name: "System Total", group: .sensor, type: .power, platforms: Platform.all)
Sensor(key: "PSTR", name: "System Total", group: .sensor, type: .power, platforms: Platform.all),

Sensor(key: "PDBR", name: "Power Delivery rrightness", group: .sensor, type: .temperature, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra])
]

internal let HIDSensorsList: [Sensor] = [
Expand Down

0 comments on commit 329521b

Please sign in to comment.