Jump to content

HowTo - SSE3 Kernel with Sleep + SpeedStep


Prasys
 Share

323 posts in this topic

Recommended Posts

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 1

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=66650000, cutoff=50000000

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: Throttle failed with cur_status=0xb2c, want_status=0x0!

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 1

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=66650000, cutoff=50000000

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: Throttle succeeded with cur_status=0x81d, want_status=0x0!

Mar 6 17:40:47 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=66650000, cutoff=50000000

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 0

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=91650000, cutoff=50000000

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: Throttle failed with cur_status=0x82c, want_status=0x0!

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 0

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=91650000, cutoff=50000000

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: Throttle succeeded with cur_status=0xb2c, want_status=0x0!

Mar 6 17:40:48 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=91650000, cutoff=50000000

Mar 6 17:40:49 xhost kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 1

Mar 6 17:40:49 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=66650000, cutoff=50000000

Mar 6 17:40:49 xhost kernel[0]: ACPICPUThrottle: Throttle succeeded with cur_status=0x81d, want_status=0x0!

Mar 6 17:40:49 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=66650000, cutoff=50000000

Mar 6 17:40:50 xhost kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 0

Mar 6 17:40:50 xhost kernel[0]: ACPICPUThrottle: rtc_cycle_count=91650000, newcount=91650000, cutoff=50000000

Mar 6 17:40:50 xhost kernel[0]: ACPICPUThrottle: Throttle failed with cur_status=0x82c, want_status=0

 

infinite loop during osx works..

 

anyone..same problem?

Link to comment
Share on other sites

root# sysctl -a | grep freq

kern.exec: unknown type returned

hw.busfrequency = 1064000000

hw.cpufrequency = 1596000000

hw.tbfrequency = 1000000000

kern.cputhrottle_curfreq: 1596

kern.cputhrottle_freqs: 1596 1862

hw.busfrequency: 1064000000

hw.busfrequency_min: 1064000000

hw.busfrequency_max: 1064000000

hw.cpufrequency: 1596000000

hw.cpufrequency_min: 1596000000

hw.cpufrequency_max: 1862000000

hw.tbfrequency: 1000000000

 

Thanks for getting this working :P

 

edit: this is using the updated Direct Drive Kext, tried the kext in release.zip but it wouldn't load :-(

Edited by ritalin
Link to comment
Share on other sites

Kiko...

 

I have a Core Duo (not core 2 duo)

 

The following failure message depends on that?

 

etc : TTY=ttyp1; PWD=/Library/StartupItems/ACPICPUThrottle; USER=root; COMMAND=/sbin/kextload ACPICPUThrottle.kext/
kernel[0]: ACPICPUThrottle: Adding CPU0
kernel[0]: ---> P0, 1660Mhz, 31000mW, 10us, 10us (ctrl=0xa2c, status=0xa2c)
kernel[0]: ---> P1, 1330Mhz, 22000mW, 10us, 10us (ctrl=0x820, status=0x820)
kernel[0]: ---> P2, 1000Mhz, 13000mW, 10us, 10us (ctrl=0x613, status=0x613)
kernel[0]: ---> P3, 65535Mhz, 4294967295mW, 255us, 255us (ctrl=0xffff, status=0xffff)
kernel[0]: ACPICPUThrottle: Using direct drive of Intel throttling
kernel[0]: ACPICPUThrottle: Throttle failed with cur_status=0xa2c, want_status=0x0!
kernel[0]: ACPICPUThrottle: Adding CPU1
kernel[0]: ACPICPUThrottle: No valid CPUs returned by ACPI! It's possible your BIOS does not think your system should be throttled and therefore did not return any available power states, or maybe your CPU only supports one other power state than maximum which is below 1Ghz!

 

PS I have both cores enabled...

Link to comment
Share on other sites

if you have sse2, you have to wait. And Carpao, i'll put a kext for core duo users up tonight, i think i know why it is failing. In the meantime, try the directdrive kext (unless your using that already)

Link to comment
Share on other sites

For the record folks, I've already had confirmed coreduos working perfectly (thinkpad A60) with the throttle kext that is included in my installation package.

My packages kext does not support core2duo's however.

 

Paulicat

Link to comment
Share on other sites

you using paulicats kernel? Try this kext

Heres a updated Direct Drive Kext

 

 

Hi, Kiko

Your new updated direct drive kext works well, but it still doesn't recognize more "steps" of cpu freq except the min and Max

I remember you mentioned it can be manuelly add the state with FID VID combination into kext

How can I do that?

 

 

Here is my log for sysctl -a | grep freq

 

kern.exec: unknown type returned

hw.busfrequency = 800000000

hw.cpufrequency = 2400000000

hw.tbfrequency = 1000000000

kern.cputhrottle_curfreq: 2400

kern.cputhrottle_freqs: 2400 3400

hw.busfrequency: 800000000

hw.busfrequency_min: 800000000

hw.busfrequency_max: 800000000

hw.cpufrequency: 2400000000

hw.cpufrequency_min: 2400000000

hw.cpufrequency_max: 3400000000

hw.tbfrequency: 1000000000

 

 

 

Here is the dmesg

dmesg.txt

Edited by offall
Link to comment
Share on other sites

offall. i was looking at a older kext, but i could compile it if i found the data sheet for your cpu.

 

Hi, Kiko, Thanks a lot for offering

here is the spec of my CPU

tell me what else you need

 

Here is I found on rightmark cpu clock utility (I guess this is what you need)

 

Supported PM Features: EIST TM1 ODCM C1E

FID: startup 17.0x

FID: min 12x max 170

Reg.Vcore start up 1.288v

VID: min 1.225v max 1.288v

FID/VID combination: 12x 1.225v; 13x 1.237v; 14x 1.250v; 15x 1.263v; 16x 1.275v; 17x 1.288v

 

 

 

And following are the specs I found on CPUZ

Code name: Presler Technology 65nm Voltage 1.292 v

Specification: Intel® Pentium® D CPU 3.40GHZ

Cores: 2

Family F Model 6 Stepping 4

Revision C1

INstruction: MMX SSE SSE2 SSE3 EM64T

Bus Speed 199.5Mhzz

Rated FSB 798 MHZ

L1 Data 2x16k

L1 Trace 2x12 kuops

 

 

additional info I found on wikipedia

Model Number PentiumD 945

sSpec Number SL9QQ (D0)

Frequency 3400 MHz

L2-Cache 2 × 2048 KiB

Front Side Bus 800 MT/s

Mult 17x max

Voltage 1.2/1.337 V

TDP 95 W

Socket LGA 775

 

 

Let me know what else do you need, thanks again

Link to comment
Share on other sites

Or use paulicats if you have a core duo, link on page 3

 

I think that I tried with both...

the kernel is the same right?

and about the /Library/StartupItems

in one case there is a ACPICPUThrottle

in the other case there is ACPICPUThrottler

 

right?

Link to comment
Share on other sites

Kiko...

 

I have a Core Duo (not core 2 duo)

 

The following failure message depends on that?

 

etc : TTY=ttyp1; PWD=/Library/StartupItems/ACPICPUThrottle; USER=root; COMMAND=/sbin/kextload ACPICPUThrottle.kext/
kernel[0]: ACPICPUThrottle: Adding CPU0
kernel[0]: ---> P0, 1660Mhz, 31000mW, 10us, 10us (ctrl=0xa2c, status=0xa2c)
kernel[0]: ---> P1, 1330Mhz, 22000mW, 10us, 10us (ctrl=0x820, status=0x820)
kernel[0]: ---> P2, 1000Mhz, 13000mW, 10us, 10us (ctrl=0x613, status=0x613)
kernel[0]: ---> P3, 65535Mhz, 4294967295mW, 255us, 255us (ctrl=0xffff, status=0xffff)
kernel[0]: ACPICPUThrottle: Using direct drive of Intel throttling
kernel[0]: ACPICPUThrottle: Throttle failed with cur_status=0xa2c, want_status=0x0!
kernel[0]: ACPICPUThrottle: Adding CPU1
kernel[0]: ACPICPUThrottle: No valid CPUs returned by ACPI! It's possible your BIOS does not think your system should be throttled and therefore did not return any available power states, or maybe your CPU only supports one other power state than maximum which is below 1Ghz!

 

PS I have both cores enabled...

 

uhm...

I don't know what changed because I'm pretty sure that I tried both beofre...

however Now I have the following status

Mar  7 17:52:26 kernel[0]: ACPI CPU Throttle loaded
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: Adding CPU0
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: type=82, datalen=12, _ASI=7f, _RBW=0, _RBO=0, _ADR=0
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: ACPI returns no ACPI throttling available
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: type=82, datalen=12, _ASI=7f, _RBW=0, _RBO=0, _ADR=0
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: ACPI returns no ACPI throttling available
Mar  7 17:52:26  kernel[0]: ---> P0, 1660Mhz, 31000mW, 10us, 10us (ctrl=0xa2c, status=0xa2c)
Mar  7 17:52:26  kernel[0]: ---> P1, 1330Mhz, 22000mW, 10us, 10us (ctrl=0x820, status=0x820)
Mar  7 17:52:26  kernel[0]: ---> P2, 1000Mhz disabled
Mar  7 17:52:26  kernel[0]: ---> P3, 65535Mhz, 4294967295mW, 255us, 255us (ctrl=0xffff, status=0xffff)
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: Intel processor detected, family=6, model=e
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: Using direct drive of Intel throttling
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: Setting CPU0 to powerstate 1
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: rtc_cycle_count=83000000, newcount=66500000, cutoff=50000000
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: Throttle succeeded with cur_status=0x820, want_status=0x0!
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: rtc_cycle_count=83000000, newcount=66500000, cutoff=50000000
Mar  7 17:52:26  kernel[0]: ACPICPUThrottle: Adding CPU1
Mar  7 17:52:26   kernel[0]: ACPICPUThrottle: Failed with code -536870212

 

I started the Application CPUThrottle, and it presents the three possible values (including the P3 wrong one). I set the minimum to P1 value and maximum to P0 value and it seems (from its status taht effectively it is working...)

 

in the console are presents many messages (some time of Filed switch, sometimes of succeeded switch).

 

the bus speed results set to 100Mhz :-(

 

Finally I have the impression that if the Application CPUThrottle2 is not executed the freq is fixed (from teh sysctl output)

 

So I have many doubts

 

what means that CPU1 fails? (I have both core enabled!)

in the console the messages refers always inly to CPU0 about trhottling...

Link to comment
Share on other sites

you can fix ur bus speed by getting the last kext i posted, called Direct Drive, and im still trying to find out why it only throttles one cpu.

 

Where is the new version? I made search for Direct Drive and went to your profile and didn't find anything.

 

BTW, if the picture in your profile is you--use Photoshop to erase the little mold you have in the thigh. Use the STAMP tool, very useful.

Link to comment
Share on other sites

BE CAREFULL I'M LOOKING FOR MAKE IT DETERMINISTIC... BECAUSE IT IS NOT CLEAR....

 

 

you can fix ur bus speed by getting the last kext i posted, called Direct Drive, and im still trying to find out why it only throttles one cpu.

 

I'll try it....

 

but meanwhile I have a (partial) good news for the sleep...

I have a M400

 

with paulicat kernel... I thought to have the common problem of not wake up of the system...

but actually I noted that after the wake up I have a black screen with first the cursor and then the coloured wheel (not spinning)...

 

it was possible for me:

- move the cursor,

- connect remotely by ssh

 

but the screen stays black...

 

One time I leave the machine untouched and after more or less one minute I saw the form for the password and immediately the machine returned in sleep mode without possible interaction...

 

I wake it again and tried to blindly enter the password...

nothing happened,

 

BUT again after more or less one minute, again I see the password form and this time it didn't disappear and the value was inserted...

All I had to do was to press the OK button and I had my machine ready to work.

 

I repeat this several time (so that now I'm able to have my machine woke up in just a minute) It is not perfect... but it is just something.

 

At this point I have one question...

This is the "soft" sleep... I know that there exists also the availability of a "hard" sleep (or hibernation...).

In the past I deleted a file from /private/var/tmp that was named something like sleep.image because I didn't want to waste 2 GB of disk for something that I cannot use...

So the question is... is it possible to have hibernation too? what are the steps?

Edited by carpao
Link to comment
Share on other sites

I started a discussion thread for the no wake from sleep problem: http://forum.insanelymac.com/index.php?showtopic=44283

 

I will outline my findings there. Sounds like you may be on to something...

 

As for hibernate, this is something i've been wondering too...

 

http://andrewescobar.com/archive/2005/11/1...sleep-your-mac/

 

If you search that page for the word 'hackintosh' you see someone reporting it working on his hack. :thumbsup_anim: might try this myself :thumbsup_anim:

Link to comment
Share on other sites

 Share

×
×
  • Create New...