mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-21 06:46:18 -06:00
Add check for M1 Pro/Max Macbook Pro HDMI (#904)
This commit is contained in:
parent
2805f40a95
commit
370d6cf890
1 changed files with 7 additions and 2 deletions
|
|
@ -278,8 +278,13 @@ class Arm64DDC: NSObject {
|
||||||
if let modelData = IORegistryEntryCreateCFProperty(platformExpertDevice, "model" as CFString, kCFAllocatorDefault, 0).takeRetainedValue() as? Data, let modelIdentifierCString = String(data: modelData, encoding: .utf8)?.cString(using: .utf8) {
|
if let modelData = IORegistryEntryCreateCFProperty(platformExpertDevice, "model" as CFString, kCFAllocatorDefault, 0).takeRetainedValue() as? Data, let modelIdentifierCString = String(data: modelData, encoding: .utf8)?.cString(using: .utf8) {
|
||||||
modelIdentifier = String(cString: modelIdentifierCString)
|
modelIdentifier = String(cString: modelIdentifierCString)
|
||||||
}
|
}
|
||||||
// First service location of Mac Mini HDMI is broken for DDC communication
|
// First service location of M1 Mac Mini & Macbook Pro HDMI is broken for DDC communication
|
||||||
if ioregService.transportDownstream == "HDMI", ioregService.serviceLocation == 1, modelIdentifier == "Macmini9,1" {
|
let ddcBlockedModels = [
|
||||||
|
"Macmini9", // Mac mini M1 2020
|
||||||
|
"MacBookPro18", // Macbook Pro M1 Pro/Max 2021 (14", 16")
|
||||||
|
]
|
||||||
|
let isBlockedModel = ddcBlockedModels.contains { $0.starts(with: modelIdentifier) }
|
||||||
|
if ioregService.transportDownstream == "HDMI", ioregService.serviceLocation == 1, isBlockedModel {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue