Glaedr Posted June 12, 2014 Share Posted June 12, 2014 Hello everybody, My machine is a HP Pavilion P6230it with the addition of a TP-LINK TG-3468 LAN interface, and I'm running OS X 10.9.3. I'm approaching DSDT and SSDT editing in order to get as many features as possible to work natively without the need of patched kexts of sort. As of my understandment of the practice its two goals are: 1 - To update the code so that it matches the latest iASL compiler syntax and standars. 2 - To modify the names and specifications of listed devices to match the names that the system natively expects to find. Still I can't find an exhaustive list of global or common modifications, providing explanations so that I understand what I'm turning into what and why. For example, I'm trying to get the devices to match those contained into the iMac11,1, which seems to me close enough to my machine. In a previous attempt to edit AGPM.kext to set better fitting thresholds I found that the graphic device is listed as GFX0: Which leads me into thinking that's the name given by Apple to graphic devices at least in this Mac. In my current DSDT the graphic device is also listed as GFX0, does this mean I should leave it as it is for the OS to find it? Am I getting this right? Thanks in advance. Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 Hello everybody, My machine is a HP Pavilion P6230it with the addition of a TP-LINK TG-3468 LAN interface, and I'm running OS X 10.9.3. I'm approaching DSDT and SSDT editing in order to get as many features as possible to work natively without the need of patched kexts of sort. As of my understandment of the practice its two goals are: 1 - To update the code so that it matches the latest iASL compiler syntax and standars. 2 - To modify the names and specifications of listed devices to match the names that the system natively expects to find. Still I can't find an exhaustive list of global or common modifications, providing explanations so that I understand what I'm turning into what and why. For example, I'm trying to get the devices to match those contained into the iMac11,1, which seems to me close enough to my machine. In a previous attempt to edit AGPM.kext to set better fitting thresholds I found that the graphic device is listed as GFX0: Schermata 2014-06-12 alle 12.24.28.png Which leads me into thinking that's the name given by Apple to graphic devices at least in this Mac. In my current DSDT the graphic device is also listed as GFX0, does this mean I should leave it as it is for the OS to find it? Am I getting this right? Thanks in advance. On Macs, GFX0 is for discrete card and IGPU is for Intel integrated. Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 On Macs, GFX0 is for discrete card and IGPU is for Intel integrated.So what should I do with it now, should I leave the section as it is? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 So what should I do with it now, should I leave the section as it is? Not enough information as you don't provide detailed specs on your computer. If you have Intel integrated graphics, then generally you rename GFX0 to IGPU in DSDT/SSDTs. Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 Not enough information as you don't provide detailed specs on your computer. If you have Intel integrated graphics, then generally you rename GFX0 to IGPU in DSDT/SSDTs. Sorry, I assumed you would rather check the detailed specs yourself by searching the PC model. It is a MSi GeForce GT 220. Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 Sorry, I assumed you would rather check the detailed specs yourself by searching the PC model. It is a MSi GeForce GT 220. No, I'll let you check the specs yourself. You have the machine, right? 1 Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 I mean, having a discrete NVidia card, should I edit something? What could I need to modify? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 I mean, having a discrete NVidia card, should I edit something? What could I need to modify? Discrete cards in PC DSDT are usually under PEG0.PEGP (not GFX0). Look in ioreg to verify (use IORegistryExplorer). Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 I extracted it from within Mac OS, does it matter? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 I extracted it from within Mac OS, does it matter? Extracted what? Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 The DSDT Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 The DSDT As long as you didn't have a patched DSDT installed at the time of extract under OSX and are using no Clover "auto patches" for DSDT, the DSDT you get is the same as if you extracted on Linux or Windows. It is not possible to extract native DSDT under OS X if the bootloader is providing a replacement. Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 As long as you didn't have a patched DSDT installed at the time of extract under OSX and are using no Clover "auto patches" for DSDT, the DSDT you get is the same as if you extracted on Linux or Windows. It is not possible to extract native DSDT under OS X if the bootloader is providing a replacement. Well I'm booting with Chameleon and I made sure to delete any ACPI table and reboot before extracting it. Anyway, this is what I get: I compiled the DSDT and put it in /Extra, made sure it was loaded by checking bdmesg after reboot, but I get this error during boot: [AGPM Controller] unknownPlatform This post suggests that the names of the devices don't match. As I said before, my SMBios is iMac11,1 and thus AGPM.kext should be looking for a device named GFX0, which as you can see the DSDT is providing. Where am I wrong? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 Well I'm booting with Chameleon and I made sure to delete any ACPI table and reboot before extracting it. Anyway, this is what I get: Schermata 2014-06-12 alle 17.24.25.png That is Intel integrated not discrete. Your discrete card may be in an SSDT (very common). Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 That is Intel integrated not discrete. Your discrete card may be in an SSDT (very common). So should I rename it to IGPU (just for the sake of it) and look it out in my SSDTs? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 So should I rename it to IGPU (just for the sake of it) and look it out in my SSDTs? Your real focus is on renaming the discrete object to GFX0. Of course, to be able to do that, you'll need to rename your existing GFX0 (which is your integrated device) to something else. IGPU is a good choice. Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 Your real focus is on renaming the discrete object to GFX0. Of course, to be able to do that, you'll need to rename your existing GFX0 (which is your integrated device) to something else. IGPU is a good choice. How do I tell if the device I find is the discreet card or the integrated one? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 How do I tell if the device I find is the discreet card or the integrated one? How do I tell if the device I find is the discreet card or the integrated one? You said you only had discrete (nvidia). Is that not the case? As far as DSDT, GFX0 is integrated. Discrete will be something like PEGP or DGFX... Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 You said you only had discrete (nvidia). Is that not the case? As far as DSDT, GFX0 is integrated. Discrete will be something like PEGP or DGFX... Yes but my question was about the DSDT. How could you tell that code I posted was describing an integrated card? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 Yes but my question was about the DSDT. How could you tell that code I posted was describing an integrated card? 0x20000 is always memory address for integrated graphics. IGDM probably stands for Integrated Graphics Device Memory. The ACPI definitions for your discrete card will be in one of the SSDTs. Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 0x20000 is always memory address for integrated graphics. IGDM probably stands for Integrated Graphics Device Memory. The ACPI definitions for your discrete card will be in one of the SSDTs. So what text should I look for in my SSDT? Link to comment Share on other sites More sharing options...
RehabMan Posted June 12, 2014 Share Posted June 12, 2014 So what text should I look for in my SSDT? Read post #8. Link to comment Share on other sites More sharing options...
Glaedr Posted June 12, 2014 Author Share Posted June 12, 2014 Read post #8.As I thought, ok then, will try tomorrow. Link to comment Share on other sites More sharing options...
Recommended Posts