DoiX Posted August 16, 2012 Share Posted August 16, 2012 I only started having this problem with ML, people reported it since Lion. I checked the source code, it's a problem with the IOGraphicsFamily.kext. There is no DSDT workaround that i'm aware of, the kexts handles pretty much everything and apple doesn't bother updating their kext to compile without issues. There are some osx86 kext alternatives but i'm not sure they work for this laptop without editing the code in the kext/DSDT. Link to comment Share on other sites More sharing options...
killer567 Posted August 16, 2012 Share Posted August 16, 2012 I only started having this problem with ML, people reported it since Lion. I checked the source code, it's a problem with the IOGraphicsFamily.kext. There is no DSDT workaround that i'm aware of, the kexts handles pretty much everything and apple doesn't bother updating their kext to compile without issues. There are some osx86 kext alternatives but i'm not sure they work for this laptop without editing the code in the kext/DSDT. Hmm, alright. Another one though What version of BIOS are you using currently? I am using A10. cause AFAIK, that makes a lot of difference in the DSDT. Thanks Link to comment Share on other sites More sharing options...
DoiX Posted August 16, 2012 Share Posted August 16, 2012 It doesn't. The bios for our laptop is mostly {censored}. I'm still using A06 because sleep is working with that. More info: i dumped the DSDT from A06 to A11, they are identical, nothing changed Link to comment Share on other sites More sharing options...
killer567 Posted August 16, 2012 Share Posted August 16, 2012 It doesn't. The bios for our laptop is mostly {censored}. I'm still using A06 because sleep is working with that. More info: i dumped the DSDT from A06 to A11, they are identical, nothing changed @DoiX, Thanks for the heads up @DoiX, I think for the brightness issue, you were correct. We might need to make modifications in the IOGraphicsFamily and especially in http://opensource.apple.com/source/IOGraphics/IOGraphics-441/IOGraphicsFamily/IOBacklightDisplay.cpp This might be the key to getting proper brightness as soon as the login screen comes up. Link to comment Share on other sites More sharing options...
DoiX Posted August 16, 2012 Share Posted August 16, 2012 Yes, i tried binpatching fMinBrightness = 0; to fMinBrightness = 25; and this chunk of code switch (value) { case 0: value = 0; // This to 25 break; case 1: value = fMinBrightness; break; case 2: value = fDisplayDims ? (fMinBrightness + 1) : fMaxBrightness; break; case 3: value = fMaxBrightness; break; } Didn't affect anything. The patch was correct (checked in disassembler) but it simply didn't fix it. It could be that i'm overlooking something in the code that might need patching as well or it's the bios that handles the min max values and injects them despite DSDT/ kext changes. Link to comment Share on other sites More sharing options...
Alex DeWolf Posted August 16, 2012 Share Posted August 16, 2012 *sigh* I don't know what happened but I can't get iATKOS or any osx to boot. At the initial screen of "/ \ |" it sticks at "/". Sounds like I will have to stick with Linux..... Link to comment Share on other sites More sharing options...
amh10 Posted August 16, 2012 Share Posted August 16, 2012 This happened to me a fair bit. It always came down to bad media. I would suggest re-burning iAktos L2 slowly and or/ building a new ML install USB stick from a new InstallEMD.dmg You may need to persevere but it will work! AMH. Link to comment Share on other sites More sharing options...
Alex DeWolf Posted August 17, 2012 Share Posted August 17, 2012 Ok retrying. Link to comment Share on other sites More sharing options...
killer567 Posted August 17, 2012 Share Posted August 17, 2012 Yes, i tried binpatching fMinBrightness = 0; to fMinBrightness = 25; and this chunk of code switch (value) { case 0: value = 0; // This to 25 break; case 1: value = fMinBrightness; break; case 2: value = fDisplayDims ? (fMinBrightness + 1) : fMaxBrightness; break; case 3: value = fMaxBrightness; break; } Didn't affect anything. The patch was correct (checked in disassembler) but it simply didn't fix it. It could be that i'm overlooking something in the code that might need patching as well or it's the bios that handles the min max values and injects them despite DSDT/ kext changes. @DoiX: What the value 25 signifies here (is it max brightness)? i am particularly interested in the chunk of code listed below:- if ((kIOFBNotifyDidWake == event) && (info)) { fProviderPower = true; fCurrentPowerState = kIODisplayMaxPowerState; updatePowerParam(); } I had the chance to get the IOREG outputs before the max brightness thing and after that also and found out that the key devicePowerState was missing when the display was dim and when the display went to sleep and came back the key devicePowerState was set to 0x03. (I guess 0x03 is the max power state here) Kinda strange, but to me .... i think forcefully setting the devicePowerState to 0x03 can bring the panel to full brightness. I may be completely wrong, Please share your thoughts on this. Thanks Link to comment Share on other sites More sharing options...
DoiX Posted August 17, 2012 Share Posted August 17, 2012 PowerStates are general values for devices. No relation to the brightness of the screen. Changing value 0 to value 25 was to check whether it will set the min brightness. Frankly, i think the bios is setting the min/max values and overriding everything else. Link to comment Share on other sites More sharing options...
killer567 Posted August 17, 2012 Share Posted August 17, 2012 PowerStates are general values for devices. No relation to the brightness of the screen. Changing value 0 to value 25 was to check whether it will set the min brightness. Frankly, i think the bios is setting the min/max values and overriding everything else. @DoiX, Are you able to compile IOGraphicsFamily successfully? If so, Can you please guide me through the process (or point to some article regarding that)? F.Y.I, I am available with Xcode 4.4 Thanks Link to comment Share on other sites More sharing options...
DoiX Posted August 17, 2012 Share Posted August 17, 2012 I can't compile it successfully, i've already mentioned in a previous post that Apple is unable to provide compilable sources. I can't even help you debug it since any bad code line results in a general "clang error". I believe you need Lion and it's appropriate XCODE version to compile for ML or at least to be able to debug it. This is why i turned to bin patching, but ofc it's limited... Link to comment Share on other sites More sharing options...
AKennedy_4 Posted August 18, 2012 Share Posted August 18, 2012 Hey guys! Long time since I been around this thread! I am looking to upgrade my OSX Lion install to ML. Just 3 quick questions 1) I found this link for DoiX install packages. Any other helpful posts floating around? Like I seen a post about a recovery disk creator or something like that 2) How did getting the Nvidia card working turn out? 3) Have their been any updated USB 3.0 kexts that fix the bugs found in them like sleep Link to comment Share on other sites More sharing options...
effatum Posted August 18, 2012 Share Posted August 18, 2012 Hello everyone, I just chowed down entire thingie.... I'm an xps 15z user (L511Z) and I'm trying to create a functioning install... first of all trying to recompile the ML dmg with the package gives me connection error... ''connection is invalid''... m I the only one having this prblm?? second, is there anyone out there that has the 15z? I already managed a lion install but I am not really shure if I should make it stable or try to make an ML install and work on that... ps: gotta make it as stable as humanely possible... I want to use it as the main OS... cheers Link to comment Share on other sites More sharing options...
burrows1980 Posted August 19, 2012 Share Posted August 19, 2012 Have I missed something, but when resuming from sleep in ML sound doesnt work.. Has anyone else had a problem with this? Link to comment Share on other sites More sharing options...
DoiX Posted August 19, 2012 Share Posted August 19, 2012 (edited) Notice: [ML]AppleHDA breaks after waking from sleep. I said i'll release a script to fix that.. and i'll do it as soon as i have some spare time, kinda busy this weekend. I guess i'll be doing that now. Here it is: AppleHDA WakeUp Script - InsanelyMac L502x Thread..zip Installing instructions are in the ReadME! file. It basically unloads the AppleHDA.kext when the system goes to sleep, then loads them back on wake. Loading the kext is not instant, will take some seconds. Edited August 19, 2012 by DoiX Link to comment Share on other sites More sharing options...
burrows1980 Posted August 20, 2012 Share Posted August 20, 2012 @DoiX, thanks for that mate, I thought you'd posted something about that but couldn't find it.. Will give it a go later on. Again thanks for your hard work, really appreciated!! Link to comment Share on other sites More sharing options...
DoiX Posted August 20, 2012 Share Posted August 20, 2012 No problem, it's a pleasure to help. My way of giving back to the community after using hackintoshes for so many years. In case the scripts don't get initialized open Console and search for AppleHDA, post a screenshot with the results. Link to comment Share on other sites More sharing options...
burrows1980 Posted August 20, 2012 Share Posted August 20, 2012 @DoiX, works fine mate, as you say it takes a few seconds for it to work, but I can live with that.. Ive installed ML on a separate HD to what my original Lion install was on, when running both HD's in ML the Lion partition takes ages to show up then an error message appears on screen saying its corrupt and must be formatted... No wonder nothing worked on it god knows what I did to it Link to comment Share on other sites More sharing options...
Ahmed_shiko Posted August 23, 2012 Share Posted August 23, 2012 Diox , How to resolve Artifacts with the Intel 3000 HD GPU Link to comment Share on other sites More sharing options...
darren cox Posted August 23, 2012 Share Posted August 23, 2012 10.8.1 is out... anyone tried it yet? Once i've backed up I'll have a go later, expect usual process to work...i hope Link to comment Share on other sites More sharing options...
DoiX Posted August 23, 2012 Share Posted August 23, 2012 Mac OS X 10.8.1: Manually install the update, before resetting do the following: Rollback AppleSmartBattery.kext if VoodooBattery isn't installed. Rollback AHCIFamily.kext to be able to boot with the kext cache Optional: If Wi-Fi doesn't work restore IO80211Familly.kext Link to comment Share on other sites More sharing options...
iMac2009 Posted August 24, 2012 Share Posted August 24, 2012 (edited) Optional: If Wi-Fi doesn't work restore IO80112Familly.kext Typo? Guess you mean IO80211Familly.kext ? I'm giving the wireless-fix a try, since i've got connectivity problems with ML and Wireless: Got two Wifis up and running - one on 2.4GHz band, the other on 5GHz. Since ML connecting to the 5GHz Wifi works, but ML behavior is like there is no DNS present. Sometimes even no connection over IP. 2.4GHz no prob at all. 5GHz Wifi working on Windows & 10.7 flawless EDIT: Update installed, rolled back IOAHCIFamily.kext, reboot, done 2.4 GHz Wifi working. Testing 5GHz when im back home. Edited August 24, 2012 by iMac2009 Link to comment Share on other sites More sharing options...
DoiX Posted August 24, 2012 Share Posted August 24, 2012 Oops, yes, typo Link to comment Share on other sites More sharing options...
adv392 Posted August 25, 2012 Share Posted August 25, 2012 (edited) I am getting this error while using the os86 retaildisk kitgen v1.1 using Mountain Lion .dmg format Is it possbile that the image is corrupted? Thank you for all your efforts DoiX cant thank you enough! EDIT: just saw burrows1980 also had similar problem, can you please tell me how you rectified this problem, thanks Edited August 25, 2012 by adv392 Link to comment Share on other sites More sharing options...
Recommended Posts