Skip to content

Commit c1353b7

Browse files
authored
Merge pull request #39 from waydabber/add-m2-support
2 parents 5dbd160 + 19a8da9 commit c1353b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

m1ddc.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ int main(int argc, char** argv) {
2828

2929
IOAVServiceRef avService;
3030

31-
NSString *returnText =@"Controls volume, luminance (brightness), contrast, color gain, input of a single external Display connected via USB-C (DisplayPort Alt Mode) over DDC on an M1 Mac.\n"
32-
"Control of displays attached via the HDMI port or by other means is not currently supported.\n"
31+
NSString *returnText =@"Controls volume, luminance (brightness), contrast, color gain, input of an external Display connected via USB-C (DisplayPort Alt Mode) over DDC on an Apple Silicon Mac.\n"
32+
"Displays attached via the built-in HDMI port of M1 or entry level M2 Macs are not supported.\n"
3333
"\n"
3434
"Usage examples:\n"
3535
"\n"
@@ -118,7 +118,7 @@ int main(int argc, char** argv) {
118118
while ((service = IOIteratorNext(iter)) != MACH_PORT_NULL) {
119119
io_name_t name;
120120
IORegistryEntryGetName(service, name);
121-
if ( !strcmp(name, "AppleCLCD2") ) {
121+
if ( !strcmp(name, "AppleCLCD2") || !strcmp(name, "IOMobileFramebufferShim") ) {
122122

123123
CFStringRef edidUUID = IORegistryEntrySearchCFProperty(service, kIOServicePlane, edidUUIDKey, kCFAllocatorDefault, kIORegistryIterateRecursively);
124124

0 commit comments

Comments
 (0)