Jump to content

HowTo - SSE3 Kernel with Sleep + SpeedStep


  • Please log in to reply
322 replies to this topic

#1
Prasys

Prasys

    Cheese Cheese cheese

  • Retired Developers
  • 380 posts
  • Gender:Male
  • Location:Malaysia
Hey guys,

Guess what. Mr Paulicat has done it again. This time he has fixed Semthex's kernel to support Sleep - aka S3 Sleep. Usually , you could sleep the hack , but then if you try to wake it up..It does not. So , Mr Paulicat has found a way to fix it , its simply by creating a patched Kernel to support SpeedStep Extensions and S3 Sleep. So if you're on a laptop , you'll know that you need it soo much

Please bear in mind , this whole thing is 'Beta'. Meaning that , it might or might not work for you.


Please backup your kernel and your Library/StartupItems folder.

Oh one more thing , if you plan to use your Old Kernel back , make sure you delete the ACPI Folder from the StartupItems. Otherwise you'll get a Kernel Panic

Oh yeah , it does not work on AMDs !

Okay , enough of the blah blah blahing . Now lets get back to our topic

Firstly , please make sure you're using OSX 10.4.8 with 8.8.1 Kernel [and please make sure your Processor supports SSE3 Extensions and Intel ® SpeedStep ™ Technology [ this includes the enhanced version found on Core 2 Duo , Core Duo , Core Solo processors]


Link down

3. Install it and reboot . If everything goes okay , you should have OSX Kickin' In. You may want to test Sleep [if it wakes up - kudos] , if it does not [Then I am sorry]. Thirdly , you might also notice that this 'patch' increases your battery life. Whenever you unplug , the processor automatically goes to power-saving mode a.k.a the 'slowest' speed to 'extend your battery life'

#2
joe75

joe75

    InsanelyMacaholic

  • Retired
  • 2,517 posts
  • Gender:Not Telling
It didn't work for me :thumbsdown_anim:

No wake from any sleep options and I cant see any speed stepping affects. Oh well, I'll keep dreaming....

Why do I have Loading Kext/Finished Loading Kext on boot now???

Edited by joe75, 19 February 2007 - 05:16 AM.


#3
Chrysaor

Chrysaor

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 525 posts
  • Gender:Male
Thanks, Sleep and SpeedStep works here. Sleep never worked with any of Semthex's kernels for me before (it didn't wake up).
Still need to use cpus=1 though, without cpus=1 system stutters and locks up. Is there any way to fix both cores for some notebooks?

#4
joe75

joe75

    InsanelyMacaholic

  • Retired
  • 2,517 posts
  • Gender:Not Telling
Do you have the Loading Kext stuff on boot with -v??

Ok, I lied. I do have sleep if I let Energy Saver time out, but thats it, no power button and no lid close wake :hysterical:

Edited by joe75, 19 February 2007 - 06:57 AM.


#5
consolation

consolation

    I am not expendable, I'm not stupid and I'm not going.

  • Members
  • PipPipPipPipPipPipPip
  • 878 posts
So close now.... I get the picture of my desktop back, then nothing... HD spins for a bit then it's just a frozen desktop. Before I just got the HD spin and no picture.

#6
DiaboliK

DiaboliK

    DiaboliK <- Capital K!

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,336 posts
  • Gender:Male
  • Location:Hollyweird, CA
dont forget to add that the 2007-02 update messes with this a little bit.

-DiaboliK

#7
walterav

walterav

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts

Is this the same thing like CPU-throthler, but than for 10.4.8?

Howdo speedstep and cpu throthler compare?


Nevermind...

I found the updated CPu-throttler thread... Its the updated and upgraded version...

Edited by walterav, 19 February 2007 - 03:53 PM.


#8
XanthraX

XanthraX

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 440 posts
  • Gender:Male
  • Location:Romania
Didn't works and messed my system (If I try open "Apple SAystem Profiler" from "About This Mac window - the finder are reseted). How I can uninstall it? I deleted ACPI files from the /Library/StartupItems, but the problem remains. Thanks in advance and even the problems are in my system, I appreciate your work.

#9
BiTRiP

BiTRiP

    InsanelyMac Sage

  • Donators
  • 330 posts
  • Gender:Not Telling

So close now.... I get the picture of my desktop back, then nothing... HD spins for a bit then it's just a frozen desktop. Before I just got the HD spin and no picture.


Yup, exactly the same here!
But i'm not on laptop, maybe this is the beginning for the fix for desktops too....
Good work so far Paulicat.

BiTRiP

#10
cyclonefr

cyclonefr

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,751 posts
  • Gender:Male
  • Location:Paris, France
Xanthrax go in -s
mount -uw /
rm -R /Library/Startupitems/ACPI..........blabla
then u can run the regular kernel

#11
munky

munky

    Agent of Evolution

  • Retired
  • 2,901 posts
  • Location:The Land of Hairy-Arsed Highlanders
think this might help my Pentium D920 machine wake from sleep? (see sig for spec)

EDIT: it didnt help. ah well.

#12
cyclonefr

cyclonefr

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,751 posts
  • Gender:Male
  • Location:Paris, France
in my concerning the kernel + the acpi kext did freeze my core2duo vaio after gui was loaded so i had to remove it...i only could move the mouse cursor after 1 second the DOCK wasnt responding

#13
Jaco

Jaco

    InsanelyMac Protégé

  • Donators
  • 54 posts
  • Gender:Male
  • Location:Austin, Texas
Sleep only works when I let Energy saver options kick in. Does not work when I put computer in Sleep mode or when I closes the lid - goes to sleep but can't get it out of sleep.

Keep up the good work guys!

#14
consolation

consolation

    I am not expendable, I'm not stupid and I'm not going.

  • Members
  • PipPipPipPipPipPipPip
  • 878 posts
Ok, i think I worked it out. If I let energy saver kick in it works (with fans running), provided I wake it up reasonably early. If it's left sitting for a while it will get me only the frozen desktop, same as if I select sleep from the menu.

My theory is that there are two 'levels' of sleep and we are only getting the first stage, the deeper "hibernation" mode is still broken.

BTW, regardless, kudos to you prasys.

#15
Analog

Analog

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
This information may be useful to kernel coders looking at this, I hope.

Questioning install of kernel or testing of it:

I am currently running the DaemonES kernel without sleep or speedstep (I would assume). HOWEVER - when I run XBench I get a performance of 80-85 when OSX is booted of my AC adapter. After I go on battery mode, I get a score around 50-60 consistantly. I assume this would be due to speedstep being set to my low frequency (1GHz). CPU performance itself goes from 60 to 30 according to XBench when on battery. When I plug my AC adapter back in, however, XBench score match those of running on battery, and will never recover to 80+ until I reboot (on AC). So:

- Is XBench really a good benchmarking tool for this? When I get a difference between battery and AC performance, is it due to speedstep throttling my CPU and I just never recover on AC, or am I getting flaky results due to XBench itself?

- I get the same results with both the DaemonES kernel (which, I believe, doesn't support speedstep) and the new Paulicat kernel. Does that mean that DES and PC both support speedstep, or is the PC kernel not running properly on my machine?

- Both DES and PC kernels report the same battery life (around 6 hours) on battery, which moves a little erratically to about 5.5 hours and is stable from there, with wireless enable and screen brightness knocked down a few notches. Again, does this mean both are using speedstepping, or neither are?

- Still can't wake from sleep (for what it is worth - just reporting this).

Thought these results might be interesting to build on the progress so far -_- Thanks for the work, everyone! Outside of sleep, the known headphone/speaker issue and possibly speedstep(?), my Dell 640m-acintosh is running perfectly!


EDIT: I have a Dell 640m, Core Duo T2300 - thought I should specify so you know what processor/platform this is occuring on. Thanks!

Edited by Analog, 20 February 2007 - 08:01 AM.


#16
paulicat

paulicat

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 241 posts
Hi all,
First things first, the sleep fix was an unintended side effect since the wake function needed to be rewritten to support some of the other changes I needed to make for speedstep.
However, it did fix wake on my laptop so thats why I made mention of it.

As for speedstep, lets make some things clear, any 10.4.8 kernel besides mine has panic calls to speedstepping functions. However, some bioses have speedstep support built in. Mine doesnt so I can't test how it would work enabled in the bios or disabled...but...last night I helped a fellow get speedstep going on his Thinkpad T60 with coreduo. (On that model notebook, it works fine with both cores btw). Initially, he had speedstep enabled in the bios, and it showed 1:30 of time left on the battery. Also, the throttle kext would not load.
So I suggested he disable it in the speedstep. He did, and when he came back, his 1.87ghz coreduo was running at 1ghz, and his time went up to 2:10.
He did say he would try to make a success story post here today.

Now, back to wake, I found something out last night, purely by accident. My laptop loads a kext called AppleACPILPC.kext (plugin of AppleACPIPlatform.kext), I found that I needed to remove that kext in order for my laptop to reboot properly (previously, it would power off instead of reboot).
Once I removed that kext, my laptop reboots properly, however, I noticed I can no longer wake from sleep.
A bit of investigation into what the LPC bus is used for showed me that OSX uses the LPC bus to wake from sleep.
So...long story short, if your pc (laptop or desktop) does not load the AppleACPILPC.kext I doubt you'll be able to wake from sleep on any current kernel.

For Analog: DES kernel is not controlling speedstep, likely, its your BIOS. How the bios interacts with osx I can't say.

If anyone has any other questions, put them here and Ill do my best to answer them.

Paulicat.

Edited by paulicat, 20 February 2007 - 06:45 PM.


#17
consolation

consolation

    I am not expendable, I'm not stupid and I'm not going.

  • Members
  • PipPipPipPipPipPipPip
  • 878 posts
Pentium Ds 805 & 820 do not support speedstep (EIST). I don't think that AppleACPILPC.kext gets loaded (can't see it in sys profiler anyway) on my computer. So sounds like you need a least an 830 for dual or a 630 for a single to get desktop sleep. Note: EIST is not available on all cedarmill revisions, some 6x1s have it disabled due to a fck up by Intel.



P.S. http://en.wikipedia....i/Low_Pin_Count

Edited by consolation, 20 February 2007 - 10:23 PM.


#18
offall

offall

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts
I have a Pentium D 945, which support EIST TM2 C1E (so inhanced speedstep is supported, so does the S3), after I installed the kernel and startup Item,
first time there is a warning after reboot says the ACPI folder has something doesn't match securty check, need to be fix and reboot

then I am able to going to sleep, during wake up, the desktop shows but mouse freeze.

It's great progress though, Thank you Paulicat!

about loaded kext, I used ioreg to check (I am not a experienced mac user) and didn't see any entry for AppleACPILPC so I guess it is not loaded, is trying to load it manually will help?

As to speedstep, I feel my CPUs is not slowing down and overheat, but I have no way to know the realtime frequency VID or PID,

Paulicat, I was wondering Is there a way that I can see my real time cpu frequency?
I tried several apps (temp monitor, cpu throttle.... ) but none works,
I guess the Reggie SE may work but it seems to complicated


Any cue how I can monitor the realtime frequency or VID PID?

Edited by offall, 21 February 2007 - 09:26 AM.


#19
Analog

Analog

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
Paulicat, thanks for the information :thumbsdown_anim:

That's interesting about the bios controlling the speedstep. Definitely good to note! I don't have AppleACPILPC.kext, which could definitely be a leading reason I can't get my computer to sleep. Is there a source I could use to snag the AppleACPILPC.kext from, off hand to try to sleep with?

Thanks again, Paulicat! Your work on this is appreciated by many on the board, including me :)

#20
consolation

consolation

    I am not expendable, I'm not stupid and I'm not going.

  • Members
  • PipPipPipPipPipPipPip
  • 878 posts

Paulicat, thanks for the information ;)

That's interesting about the bios controlling the speedstep. Definitely good to note! I don't have AppleACPILPC.kext, which could definitely be a leading reason I can't get my computer to sleep. Is there a source I could use to snag the AppleACPILPC.kext from, off hand to try to sleep with?

Thanks again, Paulicat! Your work on this is appreciated by many on the board, including me :)


Have you looked INSIDE AppleACPIPlatform.kext?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy