Jump to content

DSDT fixes for Gigabyte boards


  • Please log in to reply
1908 replies to this topic

#101
iSoprano

iSoprano

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
  • Gender:Male

There's only one AppleIntel*Profile and thus it's ok.


@chief, I have a question, my sleep works fine and wakes up fine but suppose say I leave my machine sleeping for more than 1 or 2 hrs, the machine wakes up but the monitor doesn't come back on. Can this be fixed through DSDT? or is it related to video card and nothing can be done? I use nVidia 9600GT

#102
William Parker

William Parker

    InsanelyMac Protégé

  • Members
  • PipPip
  • 75 posts
@ Master Chief

Followed up to the last post here. Frankly this is all too akin to rocket science for me. I used mm67's DSDT as guide, as well as your posts & managed to compile DSDT with 0 errors 0 warnings. It is working.
But still my Apple keyboard does not wake the system. It is plugged to the motherboard USB port at the back as is the mouse. Also no auto sleep.
Mouse wakes system & I have the following 2 things in the log -
21-10-09 11:07:57 AM kernel USB (EHCI):Port 3 on bus 0xfa has remote wakeup from some device
21-10-09 11:07:57 AM kernel USB (UHCI):Port 2 on bus 0x3a has remote wakeup from some device
System extensions loads Penryn Merom & Nehalem profiles but after a while I see only AppleIntelPenrynProfile Loaded.
Since this is getting way too complicated could you please help clean up the mess I am making. This way over my head.

Attaching my latest DSDT

Also if anyone is interested kind user oldnapalm has posted an edited version of fakesmc which uses istat menus to show temperatures of all 4 CPUs. so we do not need other utils to keep an eye on that. Attaching it here as well should any one need it

Thank you

/Edit

This DSDT breaks sleep on my machine. Pls see my next post.

Attached Files



#103
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK

UPDATE- Fellow Gigabyte users, Master Chief, who is well known in our community has kindly agreed to help GB users in patching our DSDT to enable speedstepping, sleep(which is a major pain in most of the boards) and also polish some of the fixes which are already floating around in the forum. Part 1, USB fixes has been given below. Waiting for Part 2 from Master Chief.

Hi iSoprano, congratulations for starting this thread.

This is something I am interested in and after a quick look through it and I have to admit I am out of my depth with all this, but can I say thanks to everyone contributing and a big thanks to Master Chief for his time, dedication and for sharing his expertise. I am going to have to find time to read, learn and attempt to understand this level of technical knowledge.

There is absolutely nothing I can contribute at the moment but maybe in time I will feel qualified to do so.

Keep up the good work :thumbsup_anim:

#104
iSoprano

iSoprano

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
  • Gender:Male

Hi iSoprano, congratulations for starting this thread.

This is something I am interested in and after a quick look through it and I have to admit I am out of my depth with all this, but can I say thanks to everyone contributing and a big thanks to Master Chief for his time, dedication and for sharing his expertise. I am going to have to find time to read, learn and attempt to understand this level of technical knowledge.

There is absolutely nothing I can contribute at the moment but maybe in time I will feel qualified to do so.

Keep up the good work :angel:


Blackosx, appreciation and thanks should go to Master Chief who is the light at the end of the tunnel for Gigabyte users :thumbsup_anim:
But seriously, the work Chief has done in getting his rig close to a Mac is awesome and with his help we(Gigabyte) users are hoping to achieve the same. Also many thanks to people who are helping Chief in debugging and testing on our boards. Please feel free to spread the word :D

#105
xopher

xopher

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 178 posts
  • Gender:Male
  • Location:Finland

Also if anyone is interested kind user oldnapalm has posted an edited version of fakesmc which uses istat menus to show temperatures of all 4 CPUs. so we do not need other utils to keep an eye on that. Attaching it here as well should any one need it


Thanks, I'll try this one out :-) Edit: Confirmed working here too.

#106
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

@chief, I have a question, my sleep works fine and wakes up fine but suppose say I leave my machine sleeping for more than 1 or 2 hrs, the machine wakes up but the monitor doesn't come back on. Can this be fixed through DSDT? or is it related to video card and nothing can be done? I use nVidia 9600GT

I have a BIOS setting called "Repost Video on S3 Resume" but you might need to help it a little by adding a Notification (\_SB.PCI0.P0P2, Zero) to Method _WAK

Note: You should already have a few notifications in Method _WAK, just add this one, but make sure to verify whether your video card shows up in IORegistryExplorer on P0P2 or somewhere else.

@ Master Chief
Followed up to the last post here. Frankly this is all too akin to rocket science for me. I used mm67's DSDT as guide, as well as your posts & managed to compile DSDT with 0 errors 0 warnings. It is working.
But still my Apple keyboard does not wake the system. It is plugged to the motherboard USB port at the back as is the mouse. Also no auto sleep.

Yes it ain't easy, but no I don't have time to fix your DSDT. You are supposed to do this yourself, with help of others here, or I will have a meltdown one day soon.

BTW: I see that you are using some kind of mod BIOS, which might be a/the problem. Please try the latest official BIOS.

Mouse wakes system & I have the following 2 things in the log -
21-10-09 11:07:57 AM kernel USB (EHCI):Port 3 on bus 0xfa has remote wakeup from some device
21-10-09 11:07:57 AM kernel USB (UHCI):Port 2 on bus 0x3a has remote wakeup from some device

Which is fine.

p.s. My oldest daughter is having her 16th birthday today so I won't be much here!

#107
xopher

xopher

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 178 posts
  • Gender:Male
  • Location:Finland

p.s. My oldest daughter is having her 16th birthday today so I won't be much here!

Congrats! :-) She's past the worst age already! Hehe

#108
iSoprano

iSoprano

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
  • Gender:Male

Will this dsdt.aml work with my board? Isn't it suggested not to use dsdt.aml from other motherboards?


you could compare the dsdt with yours and make appropriate changes.

#109
William Parker

William Parker

    InsanelyMac Protégé

  • Members
  • PipPip
  • 75 posts
@ Master Chief

Wishing you daughter a Very Happy Birthday! & God Bless.

I know you're pressed for time but if at all possible please do look into the DSDT, I promise not to push any more. This is just a sincere heartfelt request.
As for my BIOS it is F10 & the only mod is AHCI module version 1.20E, because the older one 1.07 was notoriously slow to boot. No other Mod. Latest is F11e, which, though official, is still beta. I am waiting for it to release before updating.

Have a nice time with your family. (Oh! reminds me - my son turns 8 in exactly a week! Holy moly - how time flies!)


/Edit
The newest suggestions implemented in DSDT apparently work but my sleep is broken. System goes to sleep all right but does not wake. Lights & Fans come on but display remains off.

#110
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK
I know I am not qualified to understand all this yet, but one thing I am interested in is can bonjour networking be enabled via DSDT? I currently use a rebuilt ifconfig command to set the NIC in to promiscuous mode on the EP45-DS3L, and I know this also works on other boards too. Anyway, I guess that's something for the future as I have a lot of reading to do for now. ;)

#111
mm67

mm67

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 673 posts
  • Gender:Male
  • Location:Finland

Our goal is to have one Return() only! But that's not all of it because here's the longest part of it


Ok, here is my latest version with all PICM stuff removed and only APIC code left.
Once again 600 lines shorter.

Attached File  stripped3.dsl.zip   9.76KB   107 downloads

#112
William Parker

William Parker

    InsanelyMac Protégé

  • Members
  • PipPip
  • 75 posts

Ok, here is my latest version with all PICM stuff removed and only APIC code left.
Once again 600 lines shorter.

Attached File  stripped3.dsl.zip   9.76KB   107 downloads



Could you please tell us whether your sleep wake works properly, even after the machine has been sleeping more than 20 minutes? Thank you.

#113
mm67

mm67

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 673 posts
  • Gender:Male
  • Location:Finland

Could you please tell us whether your sleep wake works properly, even after the machine has been sleeping more than 20 minutes? Thank you.


No problems waking up. This morning woke up after 6 hours of sleep and this afternoon when I came back from work woke up nicely after 7 hours of sleeping. Only thing that doesn't work is automatic sleep because of this stupid Samsung DVD.

#114
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK
Okay I am going to take my time so I can understand what I am doing and I have downloaded the ACPIspec30b PDF, and both the ICH9R and ICH10 Datahseet PDF's for me to do some reading and for reference. But anyway I will document my progress as and when I get time.

ROUND 1
Results after Master Chief's first round of fixes from post #2 for changing USB0-5 to UHC1-6 (I haven't gone as far as USBE yet).

My EP45-DS3L uses ICH10 so I have commented out the device specific method to assign device-id for each UHCn device. I found USB3 was in my IOReg so I left it in.

Changes successfully made, file re-complied fine and rebooted. Everything working fine and now I can wake from sleep with the keyboard & mouse, which I couldn't do before. So thank you Master Chief. :)

#115
nrgexplosion

nrgexplosion

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
Hey guys, so I tried these fixes, speedstep works perfectly etc... but with one caveat, with speedstep/applecpupowermanagement enabled the video gets choppy, once I disable it again with nullcpupowermanagement it's as smooth as silk again. Ati 4870, any ideas?

#116
William Parker

William Parker

    InsanelyMac Protégé

  • Members
  • PipPip
  • 75 posts

Hey guys, so I tried these fixes, speedstep works perfectly etc... but with one caveat, with speedstep/applecpupowermanagement enabled the video gets choppy, once I disable it again with nullcpupowermanagement it's as smooth as silk again. Ati 4870, any ideas?



Yes please go back to http://www.insanelym...howtopic=181631 The answer is there somewhere. Sorry I do not remember the post so you'll have to sift thru all. It involves some patching in dsdt irq values. I did not have this issue so do not know the exact method.Thanks.

#117
THX

THX

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
  • Gender:Male
  • Location:Russia
Hello,
Sorry my noob questions and poor english... mm67 sorry for disturbing, but maybe you can help me. I've tried to apply some fixes as you do in your dsdt file and get kernel panic immediately after booting up... I have EP45-DS3P mobo (as you can see in my signature). Can you take a look on my dsdt file, maybe i've cut some useful things from it, but i have no errors while compiling it.
For now i get working video (there is an issue with incorrect PCI-E link speed, system profiler shows only 2.5GT/s), lan, native sound (only 2.1) and usb via my dsdt. Also i remove some devices such as FDD, system speaker, PS2 mouse & keyboard from dsdt file.

kexts in Extra/Extensions: fakesmc, NullCPUPowerManagment, OpenHaltRestart, PlatformUUID, SleepEnabler.

There is my working dsdt:

Attached File  dsdt_v1.08.dsl.zip   11.35KB   6 downloads

#118
mm67

mm67

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 673 posts
  • Gender:Male
  • Location:Finland

Hello,
Sorry my noob questions and poor english... mm67 sorry for disturbing, but maybe you can help me. I've tried to apply some fixes as you do in your dsdt file and get kernel panic immediately after booting up... I have EP45-DS3P mobo (as you can see in my signature). Can you take a look on my dsdt file, maybe i've cut some useful things from it, but i have no errors while compiling it.
For now i get working video (there is an issue with incorrect PCI-E link speed, system profiler shows only 2.5GT/s), lan, native sound (only 2.1) and usb via my dsdt. Also i remove some devices such as FDD, system speaker, PS2 mouse & keyboard from dsdt file.

kexts in Extra/Extensions: fakesmc, NullCPUPowerManagment, OpenHaltRestart, PlatformUUID, SleepEnabler.

There is my working dsdt:

Attached File  dsdt_v1.08.dsl.zip   11.35KB   6 downloads


Can't see any major problems with it, boots just fine for me. Looks like you still have some more modifications to do.

#119
milanca

milanca

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts
Hi guys! yes, this is great thread for sure and in no time, i'm sure, it'll be all worked out.

I am porting all these new tweaks to my EP35-DS3. A bit different dsdt from P45 models. L,P,R models have very similar dsdt's, if not exactly the same dsdt's - R variant has exactly the same one, but different bioses and they don't work the same way.

iSoprano managed to get it to sleep with L model, not 100% sure but i think the same dsdt as mine and my model couldn't wake (immediate restart on wake).

So far, with many new tweaks from CM (thanks for helping us bud) sleep/wake is working flawlessly. I continue to slim down the code. Side effect is my temp raised for 7-8C with the same speedstep code, used to sit idle at 38-39C, now its ~47C. I will have to investigate some more, hope i can solve it soon. If someone knows what might raise the temp i am all ears.

kextstat | grep AppleIntel
   14	0 0xffffff7f80660000 0x18000	0x18000	com.apple.driver.AppleIntelCPUPowerManagement (90.0.0) <7 6 5 4 3 1>
   24	0 0xffffff7f806c6000 0x3000	 0x3000	 com.apple.driver.AppleIntelCPUPowerManagementClient (90.0.0) <7 6 5 4 3 1>
   54	0 0xffffff7f80888000 0x8000	 0x8000	 com.apple.driver.AppleIntelMeromProfile (19) <53 6 5 4 3>
kextstat | grep SMBus
   28	1 0xffffff7f80713000 0x2000	 0x2000	 com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>


#120
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

Ok, here is my latest version with all PICM stuff removed and only APIC code left.
Once again 600 lines shorter.

Attached File  stripped3.dsl.zip   9.76KB   107 downloads

Great. You can also remove the following snippet:
If (LEqual (Arg0, 0x04))
		{
			If (LNot (PICF))
			{
				Sleep (0x64)
			}
		}
You no longer use PICF – which otherwise should have been 0x01 anyway. Making the following snippet also a prime target for removal:
Scope (\)
	{
		Name (PICF, Zero)
		Method (_PIC, 1, NotSerialized)
		{
			Store (Arg0, PICF)
		}
	}
No need to initialize PICF since you no longer use it.

Next up: Take a look at DBG1 / ESMI and see what they do. You'll need the ICH9/10 datasheet for this, and please explain people here what you've found out about it... and more importantly how you found this info.

p.s. Thank you for the kind words everyone!

...I continue to slim down the code. Side effect is my temp raised for 7-8C with the same speedstep code, used to sit idle at 38-39C, now its ~47C. I will have to investigate some more, hope i can solve it soon. If someone knows what might raise the temp i am all ears.

kextstat | grep SMBus
   28	1 0xffffff7f80713000 0x2000	 0x2000	 com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>

Ripped out a little too much? Here's mine:
30	2 0x555fd000 0x3000	 0x2000	 com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>
   67	0 0x5ca45000 0x2000	 0x1000	 com.apple.driver.AppleSMBusPCI (1.0.2d0) <14 5 4 3>
   79	0 0x5536a000 0x9000	 0x8000	 com.apple.driver.AppleSMBusController (1.0.2d0) <30 14 13 5 4 3>
Concentrate on the Devices SBUS/EC for a starter.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy