Skip to content

Commit

Permalink
Merge pull request #39 from waydabber/add-m2-support
Browse files Browse the repository at this point in the history
  • Loading branch information
waydabber authored Oct 31, 2023
2 parents 5dbd160 + 19a8da9 commit c1353b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions m1ddc.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ int main(int argc, char** argv) {

IOAVServiceRef avService;

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"
"Control of displays attached via the HDMI port or by other means is not currently supported.\n"
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"
"Displays attached via the built-in HDMI port of M1 or entry level M2 Macs are not supported.\n"
"\n"
"Usage examples:\n"
"\n"
Expand Down Expand Up @@ -118,7 +118,7 @@ int main(int argc, char** argv) {
while ((service = IOIteratorNext(iter)) != MACH_PORT_NULL) {
io_name_t name;
IORegistryEntryGetName(service, name);
if ( !strcmp(name, "AppleCLCD2") ) {
if ( !strcmp(name, "AppleCLCD2") || !strcmp(name, "IOMobileFramebufferShim") ) {

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

Expand Down

0 comments on commit c1353b7

Please sign in to comment.