Jump to content

speedstep trouble after sleep / wake


sailor25462
 Share

26 posts in this topic

Recommended Posts

Dear All,

 

I'm trying to get my sleep/wake right using below hardware/software combination (see signature).

 

On normal boot, speedster works fine, although this CPU will only give 16/33 natively with turbo boost of 34/35/36/37, depending how many cores are busy.

 

Now what happens after sleep/wake is that all cores will never get below x34, but mostly run at x35 and x36 individually.

So my understanding is that they run at turbo modes at all times, even though there's no load and under normal boot they'd all run at x16 only.

 

Unfortunately, this will make my sleep pretty useless after all.

 

Anyone having an idea how to solve this?

 

I tried different setting in my clover config, incl. drop OEM and generating the p- and c-states. basically all work fine under normal boot but show same issue after sleep/wake.

 

My present clover config ACPI and DSDT part and and my boot.log look like this:

<key>ACPI</key>
	<dict>
		<key>DSDT</key>
		<dict>
			<key>Debug</key>
			<false/>
			<key>DropOEM_DSM</key>
			<false/>
			<key>Fixes</key>
			<dict>
				<key>AddDTGP_0001</key>
				<true/>
				<key>FIX_S3D_2000000</key>
				<true/>
				<key>FixDarwin_0002</key>
				<true/>
				<key>FixHDA_8000</key>
				<true/>
				<key>FixSBUS_0080</key>
				<true/>
				<key>NewWay_80000000</key>
				<true/>
			</dict>
			<key>Name</key>
			<string>DSDT.aml</string>
			<key>ReuseFFFF</key>
			<false/>
			<key>SlpSmiAtWake</key>
			<true/>
		</dict>
		<key>HaltEnabler</key>
		<true/>
		<key>SSDT</key>
		<dict>
			<key>DropOem</key>
			<false/>
			<key>Generate</key>
			<false/>
		</dict>
0:100  0:100  MemLog inited, TSC freq: 3309717530
0:100  0:000  
0:100  0:000  Now is 10.4.2015,  10:4:37 (GMT+2047)
0:100  0:000  Starting Clover rev 3193 on American Megatrends EFI
(...)
0:100  0:000  SelfDirPath = \EFI\BOOT
0:100  0:000  Total Memory Slots Count = 4
0:100  0:000  Type 17 Index = 0
0:100  0:000  SmbiosTable.Type17->Speed = 1600MHz
0:100  0:000  SmbiosTable.Type17->Size = 2048MB
0:100  0:000  SmbiosTable.Type17->Bank/Device = BANK 3 ChannelB-DIMM1
0:100  0:000  Type 17 Index = 1
0:100  0:000  SmbiosTable.Type17->Speed = 1600MHz
0:100  0:000  SmbiosTable.Type17->Size = 2048MB
0:100  0:000  SmbiosTable.Type17->Bank/Device = BANK 1 ChannelA-DIMM1
0:100  0:000  Type 17 Index = 2
0:100  0:000  SmbiosTable.Type17->Speed = 1600MHz
0:100  0:000  SmbiosTable.Type17->Size = 2048MB
0:100  0:000  SmbiosTable.Type17->Bank/Device = BANK 2 ChannelB-DIMM0
0:100  0:000  Type 17 Index = 3
0:100  0:000  SmbiosTable.Type17->Speed = 1600MHz
0:100  0:000  SmbiosTable.Type17->Size = 2048MB
0:100  0:000  SmbiosTable.Type17->Bank/Device = BANK 0 ChannelA-DIMM0
0:100  0:000  Boot status=0
0:100  0:000  Clover revision: 3193  running on To be filled by O.E.M.
0:100  0:000  ... with board Z68AP-D3
0:100  0:000  CPU Vendor = 756E6547 Model=206A7
0:100  0:000  The CPU supported turbo
0:100  0:000  BrandString = Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz
0:100  0:000  MSR 0xE2 before patch 1E000403
0:100  0:000  MSR 0xE4              00010414
0:100  0:000  MSR 0xCE              00001000_70012100
0:100  0:000  non-usable FLEX_RATIO = 90000
0:100  0:000  corrected FLEX_RATIO = 80000
0:100  0:000  MSR 0x1B0             00000000
0:100  0:000  FSBFrequency=103MHz DMIvalue=100000kHz
0:100  0:000  Corrected FSBFrequency=100MHz
0:100  0:000  Vendor/Model/Stepping: 0x756E6547/0x2A/0x7
0:100  0:000  Family/ExtFamily: 0x6/0x0
0:100  0:000  MaxDiv/MinDiv: 33.0/16
0:100  0:000  Turbo: 34/35/36/37
0:100  0:000  Features: 0xBFEBFBFF
0:100  0:000  Threads: 4
0:100  0:000  Cores: 4
0:100  0:000  FSB: 100 MHz
0:100  0:000  CPU: 3400 MHz
0:100  0:000  TSC: 3400 MHz
0:100  0:000  PIS: 400 MHz
0:100  0:000  PCI (00|00:00.00) : 8086 0100 class=060000
0:100  0:000  PCI (00|00:01.00) : 8086 0101 class=060400
0:100  0:000  PCI (00|01:00.00) : 10DE 0FC1 class=030000
0:100  0:000  Found NVidia model=Palit GeForce GT 640
0:100  0:000  PCI (00|01:00.01) : 10DE 0E1B class=040300
0:100  0:000  PCI (00|00:16.00) : 8086 1C3A class=078000
0:100  0:000  PCI (00|00:16.01) : FFFF FFFF class=FFFFFF
0:100  0:000  PCI (00|00:16.02) : FFFF FFFF class=FFFFFF
0:100  0:000  PCI (00|00:16.03) : FFFF FFFF class=FFFFFF
0:100  0:000  PCI (00|00:1A.00) : 8086 1C2D class=0C0320
0:100  0:000  PCI (00|00:1B.00) : 8086 1C20 class=040300
0:100  0:000  PCI (00|00:1C.00) : 8086 1C10 class=060400
0:100  0:000  PCI (00|00:1C.01) : 8086 1C12 class=060400
0:100  0:000  PCI (00|03:00.00) : 1B6F 7023 class=0C0330
0:100  0:000  PCI (00|00:1C.02) : 8086 1C14 class=060400
0:100  0:000  PCI (00|04:00.00) : 10EC 8168 class=020000
0:100  0:000  LAN 0, Vendor=10EC, MMIO=D000
0:100  0:000  PCI (00|00:1C.03) : 8086 244E class=060401
0:100  0:000  PCI (00|05:00.00) : 8086 244E class=060401
0:100  0:000  PCI (00|06:00.00) : 1000 0001 class=010000
0:101  0:000  PCI (00|06:01.00) : 104C 8020 class=0C0010
0:101  0:000  PCI (00|00:1D.00) : 8086 1C26 class=0C0320
0:101  0:000  PCI (00|00:1F.00) : 8086 1C44 class=060100
0:101  0:000  PCI (00|00:1F.02) : 8086 1C02 class=010601
0:101  0:000  PCI (00|00:1F.03) : 8086 1C22 class=0C0500
0:101  0:000  PCI (00|00:1F.06) : FFFF FFFF class=FFFFFF
0:101  0:000  Clover load options size = 4 bytes
0:101  0:000  Found Plist String = , parse XML in LoadOptions
0:101  0:000  Xml in load options is bad
0:105  0:004  Using OEM config.plist at path: EFI\CLOVER\config.plist
0:106  0:000  EFI\CLOVER\config.plist loaded: Success
0:107  0:001  Found theme directory: applestyle
0:110  0:003  Found theme directory: BOOTCAMP
0:112  0:002  Found theme directory: EMBEDDED
0:114  0:001  Found theme directory: RANDOM
0:115  0:001  Loading early settings
0:115  0:000  timeout set to 5
0:115  0:000  Custom boot CUSTOM_BOOT_DISABLED (0x0)
0:115  0:000  ForceKextsToLoad: 1 requested
0:115  0:000  ForceKextsToLoad 0: GenericUSBXHCI
0:115  0:000  KextsToPatch: 3 requested
0:115  0:000  KextToPatch 0: AppleHDA (t1-10.9/AppleHDA/Realtek ALC889) Kext bin patch, data len: 4
0:115  0:000  KextToPatch 1: AppleHDA (t1-10.9/AppleHDA/Resources/xml>zml) Kext bin patch, data len: 6
0:115  0:000  KextToPatch 2: AppleAHCIPort (External icons patch) Kext bin patch, data len: 8
0:115  0:000  Default theme: bootcamp
0:115  0:000  Hiding entries with string Windows
0:115  0:000  Hiding entries with string \EFI\BOOT\BOOTX64.EFI
0:115  0:000  LoadDrivers() start
0:117  0:001  Loading FSInject-64.efi  status=Success
0:119  0:002  Loading OsxFatBinaryDrv-64.efi  status=Success
0:121  0:001  Loading VBoxHfs-64.efi  status=Success
0:124  0:002   - driver needs connecting
0:124  0:000  Loading DataHubDxe-64.efi  status=Success
0:167  0:043  Loading OsxAptioFixDrv-64.efi  status=Success
0:169  0:001  Loading PartitionDxe-64.efi  status=Success
0:172  0:002   - driver needs connecting
0:172  0:000  2 drivers needs connecting ...
0:172  0:000  PlatformDriverOverrideProtocol->GetDriver overriden
0:172  0:000  Partition driver loaded: CD disconnect Success
0:172  0:000  Searching for invalid DiskIo BY_DRIVER connects: not found, all ok
0:411  0:239  LoadDrivers() end
0:411  0:000  Dump SMC keys from NVRAM:
0:458  0:046  SetScreenResolution: 1680x1050 - already set
0:458  0:000  Console modes reported: 1, available modes:
0:458  0:000    Mode 1: 80x25 (current mode)

(...)

0:458  0:000  ScanSPD() start
0:459  0:000  SMBus CmdReg: 0x1
0:459  0:000  Scanning SMBus [8086:1C22], mmio: 0xF7305004, ioport: 0xF000, hostc: 0x1
0:459  0:000  Slots to scan [8]...
0:473  0:014  SPD[0]: Type 11 @0x50 
0:482  0:009  DDR speed 1600MHz 
0:482  0:000  Slot: 0 Type 24 2048MB 1600MHz Vendor=Hynix Semiconductor PartNo=HMT325U6CFR8C-PBN0 SerialNo=00020406030F0C0C 
0:497  0:014  SPD[1]: Type 11 @0x51 
0:506  0:009  DDR speed 1600MHz 
0:506  0:000  Slot: 1 Type 24 2048MB 1600MHz Vendor=Hynix Semiconductor PartNo=HMT325U7CFR8C-PBT0 SerialNo=0403090B090D0009 
0:521  0:014  SPD[2]: Type 11 @0x52 
0:530  0:009  DDR speed 1600MHz 
0:530  0:000  Slot: 2 Type 24 2048MB 1600MHz Vendor=Hynix Semiconductor PartNo=HMT325U7CFR8C-PBT0 SerialNo=04030A0B090C0B05 
0:544  0:014  SPD[3]: Type 11 @0x53 
0:554  0:009  DDR speed 1600MHz 
0:554  0:000  Slot: 3 Type 24 2048MB 1600MHz Vendor=Hynix Semiconductor PartNo=HMT325U7CFR8C-PBT0 SerialNo=0309030C01070C0B 
0:578  0:024  ScanSPD() end
0:578  0:000  Get Acpi Tables List from RSDT:
0:578  0:000   Found table: FACP  A M I len=132
0:578  0:000   Found table: APIC  A M I len=114
0:578  0:000   Found table: MCFG  A M I len=60
0:578  0:000   Found table: HPET  A M I len=56
0:578  0:000   Found table: SSDT  SataTabl len=877
0:578  0:000   Found table: SSDT  Cpu0Ist len=2474
0:578  0:000   Found table: SSDT  CpuPm len=2706
0:578  0:000   Found table: BGRT  A M I len=56
0:578  0:000  Calibrated TSC frequency =3309717530 =3309MHz
0:578  0:000  Loading main settings
0:578  0:000  Config set Fixes will override FixMask mask!
0:578  0:000     final mask=82008083
0:578  0:000  Config set ChassisType=0xD
0:579  0:000  found 15 volumes with blockIO

(...)

0:657  0:000    Result of bootcode detection: bootable Windows (vista,win)
0:659  0:002  Using theme 'bootcamp' (EFI\CLOVER\themes\bootcamp)
0:659  0:000  Choosing theme bootcamp
0:660  0:000  found boot-args in NVRAM:kext-dev-mode=1 nvda_drv=1, size=27
0:660  0:000  ...found arg:kext-dev-mode=1
0:660  0:000  ...found arg:nvda_drv=1
0:660  0:000  Custom entries start
0:660  0:000  Custom entries finish
0:660  0:000  Scanning loaders...
0:660  0:000   0: 'Whole Disc Boot' no file system
0:660  0:000   1: 'Whole Disc Boot' no file system
0:660  0:000   2: 'Whole Disc Boot' no file system
0:660  0:000   3: 'Whole Disc Boot' no file system
0:660  0:000   4: 'Whole Disc Boot' no file system
0:660  0:000   5: 'EFI'
0:666  0:006      AddLoaderEntry for Volume Name=EFI
0:691  0:024   6: 'Legacy HD2' no file system
0:691  0:000   7: 'Boot OS X'
0:693  0:002      AddLoaderEntry for Volume Name=Boot OS X
0:694  0:000      Check if volume Is Hibernated:
0:694  0:000      Check sleep image 'by signature':
0:694  0:000      read prefs \Library\Preferences\SystemConfiguration\com.apple.PowerManagement.plist status=Not Found
0:694  0:000      using default sleep image name = \private\var\vm\sleepimage
0:694  0:000      sleepimage not found -> Not Found
0:694  0:000       hibernated: no - sign

(...)

3:301  0:000  StartLoader() start
3:301  0:000  Finally: Bus=100294kHz CPU=3309MHz
3:301  0:000  Kernel and Kext Patches at CE19BA30:
3:301  0:000  	Allowed: y
3:301  0:000  	Debug: n
3:301  0:000  	KernelCpu: n
3:301  0:000  	Lapic: n
3:301  0:000  	Haswell-E: n
3:301  0:000  	AICPUPM: n
3:301  0:000  	AppleRTC: n
3:301  0:000  	KernelPm: n
3:301  0:000  	FakeCPUID: 0x0
3:301  0:000  	ATIController: null
3:301  0:000  	ATIDataLength: 0
3:301  0:000  	1 Kexts to load
3:301  0:000  	  KextToLoad[0]: GenericUSBXHCI
3:301  0:000  	3 Kexts to patch
3:301  0:000  	  KextPatch[0]: 4 bytes, AppleHDA
3:301  0:000  	  KextPatch[1]: 6 bytes, AppleHDA
3:301  0:000  	  KextPatch[2]: 8 bytes, AppleAHCIPort
3:301  0:000  Loading boot.efi  status=Success
3:486  0:184  GetOSVersion: : 10.10.3
3:486  0:000  insert table 9 for dev 0:0
3:486  0:000  insert table 9 for dev 0:0
3:486  0:000  insert table 9 for dev 1:0
3:486  0:000  Channels: 2
3:486  0:000  Interleave: 0 2 1 3 4 6 5 7
3:486  0:000  SMBIOS Type 17 Index = 0 => 0 0:
3:486  0:000  BANK0 DIMM0 1600MHz 2048MB
3:486  0:000  mTotalSystemMemory = 2048
3:486  0:000  SMBIOS Type 17 Index = 1 => 2 2:
3:486  0:000  BANK1 DIMM0 1600MHz 2048MB
3:486  0:000  mTotalSystemMemory = 4096
3:486  0:000  SMBIOS Type 17 Index = 2 => 1 1:
3:486  0:000  BANK0 DIMM1 1600MHz 2048MB
3:486  0:000  mTotalSystemMemory = 6144
3:486  0:000  SMBIOS Type 17 Index = 3 => 3 3:
3:486  0:000  BANK1 DIMM1 1600MHz 2048MB
3:486  0:000  mTotalSystemMemory = 8192
3:486  0:000  NumberOfMemoryDevices = 4
3:486  0:000  Type20[0]->End = 0x7FFFFF, Type17[3] = 0x2000
3:486  0:000  Type20[1]->End = 0x5FFFFF, Type17[2] = 0x3800
3:486  0:000  Type20[2]->End = 0x3FFFFF, Type17[1] = 0x4800
3:486  0:000  Type20[3]->End = 0x1FFFFF, Type17[0] = 0x5000
3:486  0:000  Table 131 is present, CPUType=35
3:486  0:000  Change to: 603
3:486  0:000  RSDT 0xDE20F028
3:486  0:000  FADT from RSDT: 0xDE20F0E8
3:486  0:000  XSDT 0xDE20F070
3:486  0:000  FADT from XSDT: 0xDE219570
3:486  0:000  Xsdt reallocation done
3:486  0:000  old FADT length=F4
3:486  0:000  Found OperationRegion(GNVS, SystemMemory, DE22BE18, ...)
3:486  0:000  Found OperationRegion(MCHT, SystemMemory, FED10000, ...)
3:486  0:000  Found OperationRegion(RCRB, SystemMemory, FED1C000, ...)
3:486  0:000  Found OperationRegion(CPSB, SystemMemory, DE108F98, ...)
3:486  0:000  Found OperationRegion(IGDM, SystemMemory, 0, ...)
3:488  0:001  Apply DsdtFixMask=0x82008083 new way
3:488  0:000     drop _DSM mask=0x0000
3:488  0:000  ========= Auto patch DSDT Starting ========
3:488  0:000  VideoCard devID=0xFC110DE
3:488  0:000  DisplayADR1[0] = 0x10000, DisplayADR2[0] = 0x0
3:488  0:000  USBADR[0] = 0x1A0000 and PCIe = 0xFFFE
3:799  0:310  Audio HDA (addr:0x1B0000) setting specified layout-id=1 (0x1)
3:799  0:000  USBADR[1] = 0x1C0001 and PCIe = 0x0
3:799  0:000  USBADR[2] = 0x1D0000 and PCIe = 0xFFFE
3:799  0:000  first CPU found at 80DE offset 80E1
3:799  0:000  score candidate at 80DA
3:799  0:000  score inserted in acpi_cpu_score _PR_
3:799  0:000  Found ACPI CPU: CPU0 And CPU1 And CPU2 And CPU3 And CPU4 And CPU5 And CPU6 And CPU7 
  within the score: _PR_
3:800  0:000  Found PCIROOTUID = 0
3:800  0:000  Start SBUS Fix PCI=1125 len=A439
3:800  0:000  device (SBUS) found at 5F9E
3:800  0:000  SBUS code size fix = 0x0000005D
3:800  0:000  patch HDEF in DSDT 
3:800  0:000  Start HDA Fix
3:800  0:000  found HDA device NAME(_ADR,0x001B0000) And Name is HDEF
3:800  0:000  NewName HDEF already present, renaming impossibble
3:800  0:000  Start _S3D Fix
3:801  0:000  Start Darwin Fix
3:801  0:000  Name _OSI present at 0x1887, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8AEE, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8AF5, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8B11, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8B31, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8B51, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8B6F, renaming to OOSI
3:801  0:000  Name _OSI present at 0x8B8B, renaming to OOSI
3:801  0:000  ========= Auto patch DSDT Finished ========
3:801  0:000  Patch table: SSDT  SataTabl
3:801  0:000   SSDT len = 0x36D
3:801  0:000  Patch table: SSDT  Cpu0Ist
3:801  0:000   SSDT len = 0x9AA
3:801  0:000  Patch table: SSDT  CpuPm
3:801  0:000   SSDT len = 0xA92
3:801  0:000  Drop tables from Xsdt, SIGN=XXXX TableID= Length=0
3:801  0:000   Xsdt has tables count=8 
3:801  0:000  corrected XSDT length=100
3:801  0:000   CPUBase=0 and ApicCPUBase=1 ApicCPUNum=4
3:801  0:000  EdidDiscovered size=128
3:801  0:000  00 | 00 FF FF FF FF FF FF 00 06 10 22 92 47 F7 00 02 
3:801  0:000  16 | 10 10 01 03 80 2B 1B 78 2E C6 01 A3 57 4A 9D 25 
3:801  0:000  32 | 12 50 54 00 00 00 B3 00 01 01 01 01 01 01 01 01 
3:801  0:000  48 | 01 01 01 01 01 01 7C 2E 90 A0 60 1A 1E 40 30 20 
3:801  0:000  64 | 36 00 B1 0E 11 00 00 1A 00 00 00 FF 00 32 41 36 
3:801  0:000  80 | 31 36 31 54 4D 55 46 5A 0A 20 00 00 00 FC 00 43 
3:801  0:000  96 | 69 6E 65 6D 61 0A 20 20 20 20 20 20 00 00 00 00 
3:801  0:000  112 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 F2 
3:801  0:000  NVidia GFX injection not set
3:801  0:000  USB Controller [8086:1C2D] :: PciRoot(0x0)\Pci(0x1A,0x0)
3:801  0:000  HDA Controller [8086:1C20] :: PciRoot(0x0)\Pci(0x1B,0x0) => setting specified layout-id=1 (0x1)
3:801  0:000  USB Controller [1B6F:7023] :: PciRoot(0x0)\Pci(0x1C,0x1)\Pci(0x0,0x0)
3:801  0:000  LAN Controller [10EC:8168] :: PciRoot(0x0)\Pci(0x1C,0x2)\Pci(0x0,0x0)
3:801  0:000  USB Controller [8086:1C26] :: PciRoot(0x0)\Pci(0x1D,0x0)
3:801  0:000  stringlength = 2292
3:801  0:000  CurrentMode: Width=1680 Height=1050
3:801  0:000  FSInjection: using kexts path: 'EFI\CLOVER\kexts\10.10'FSInjectionInstall ...
- Our FSI_SIMPLE_FILE_SYSTEM_PROTOCOL installed on handle: D1DBC398
3:803  0:001  
3:814  0:011  MSR 0x1B0   set to        00000000
3:814  0:000    Force kext: GenericUSBXHCI
3:814  0:000  Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10.10
3:815  0:000    Extra kext: EFI\CLOVER\kexts\10.10\FakeSMC.kext
3:820  0:005      Extra PlugIn kext: EFI\CLOVER\kexts\10.10\FakeSMC.kext\Contents\PlugIns\ACPISensors.kext
3:824  0:003      Extra PlugIn kext: EFI\CLOVER\kexts\10.10\FakeSMC.kext\Contents\PlugIns\CPUSensors.kext
3:827  0:003      Extra PlugIn kext: EFI\CLOVER\kexts\10.10\FakeSMC.kext\Contents\PlugIns\GPUSensors.kext
3:832  0:004      Extra PlugIn kext: EFI\CLOVER\kexts\10.10\FakeSMC.kext\Contents\PlugIns\LPCSensors.kext
3:839  0:007    Extra kext: EFI\CLOVER\kexts\10.10\GenericUSBXHCI.kext
3:844  0:004    Extra kext: EFI\CLOVER\kexts\10.10\realtekALC.kext
3:846  0:002    Extra kext: EFI\CLOVER\kexts\10.10\RealtekRTL8111.kext
3:853  0:006  SetStartupDiskVolume:

(...)
Link to comment
Share on other sites

Try use Piker's script.

 

Send me a copy of IOReg.

 

And search about "Wake Reason" in Console.app

 

Ok, I ran the script (just for good order's sake with debug output), so this is what was given back:

System information: Mac OS X 10.10.3 (14D131)
Brandstring 'Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz'

Downloading extractACPITables.zip ...Unzipping extractACPITables.zip ...Setting executing bit ...Cleanups ...Extracting ACPI tables ...Done.Name (_HID, "ACPI0004") NOT found in the DSDT
1 Scope (_PR_) {..} object(s) found in the DSDT
scopeObjectData: 104e065f50525f
Two-byte encoding detected (maximum length 0x0FFF/4095)
pkgLengthByte: 0x4e/78
packageLength: 0x06e/110
scopeLength: 110
scopeLength: 206 (egrep pattern length)
scopeObjectData length 220 (includes egrep pattern)
ACPI Processor declaration (CPU0) {0x0b bytes} found in the DSDT (ACPI 1.0 compliant)
logicalCore: 0 CPU0
logicalCore: 1 CPU1
logicalCore: 2 CPU2
logicalCore: 3 CPU3
Scope (_PR_) {220 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant)
Extracting ACPI tables ...Done.Generating ssdt.dsl for a 'iMac13,1' with board-id [Mac-xxxxxxxxxxxx]
Sandy Bridge Core i5-2500 processor [0x206A7] setup [0x0603]
With a maximum TDP of 95 Watt, as specified by Intel
Number logical CPU's: 4 (Core Frequency: 3300 MHz)
Number of Turbo States: 4 (3400-3700 MHz)
Number of P-States: 22 (1600-3700 MHz)
targetCStates: 29
Adding C1
Adding C3
Adding C6
Adding C7
Injected C-States for CPU0 (C1,C3,C6,C7)

I then put the aml file into /EFI/CLOVER/ACPI/patched/

 

boot.log confirms:

3:297  0:000  Drop tables from Xsdt, SIGN=SSDT TableID= Length=0
3:297  0:000   Xsdt has tables count=8 
3:297  0:000   Table: SSDT  SataTabl  877 dropped
3:297  0:000   Table: SSDT  Cpu0Ist  2474 dropped
3:297  0:000   Table: SSDT  CpuPm  2706 dropped
3:297  0:000  corrected XSDT length=76
3:297  0:000  Inserting SSDT.AML from EFI\CLOVER\ACPI\patched ... Success
3:298  0:001   CPUBase=0 and ApicCPUBase=1 ApicCPUNum=4

Reboots nicely and also speedstep remains fine under normal boot conditions.

 

Sleep works, wakeup is done by pwr button "kernel[0]: Wake reason: PWRB (User)" (which seems fine to me?)

 

ioreg (IORegistryExplorer Version 3.0.2 (14)) attached. (ok update: deleted attachment due to serial no included ;-) I'll send you PM)

 

Now I'm not sure about the correct clover config setting. I guess I should still drop OEM, but also create p- and c-states? Or don't it matter since it loads the ssdt.aml file at last?

Link to comment
Share on other sites

If you'll be dropping SSDT's (DropOEM true in config), you'll need to patch your ACPI tables and put them in clover/ACPI/patched dir (most of them will be required)

 

You should extract native ACPI tables and patch them.

 

Also check for assertions using this command "pmset -g assertions" before putting to sleep.

 

Follow what @Allan said.

 

@Allan:

 

AFAIK, PWRB is keyboard key (Power Button). Means, wake from sleep using any key from keyboard.

  • Like 1
Link to comment
Share on other sites

If you'll be dropping SSDT's (DropOEM true in config), you'll need to patch your ACPI tables and put them in clover/ACPI/patched dir (most of them will be required)

 

You should extract native ACPI tables and patch them.

 

Also check for assertions using this command "pmset -g assertions" before putting to sleep.

 

Follow what @Allan said.

 

@Allan:

 

AFAIK, PWRB is keyboard key (Power Button). Means, wake from sleep using any key from keyboard.

 

I also think the PWRB is ok, because I actually woke up the machine pressing the power button. Since I do have set the USB Clock ID, it is basically the only option to wake up from sleep. (without this setting, it will wake up within seconds after going to sleep.) 

If you use SSDT.aml just mark DropOEM in config.plist, and don't use the options for P/C states.

 

Try remove the "PWRB" devices into your DSDT.

 

I'm not using any DSDT, just pure and naked UEFI.


Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   InternalPreventDisplaySleep    1
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 48(powerd): [0x00000026001001a8] 00:02:37 InternalPreventDisplaySleep named: "com.apple.powermanagement.delayDisplayOff" 
	Timeout will fire in 148 secs Action=TimeoutActionTurnOff
   pid 97(hidd): [0x00000037000901aa] 00:02:20 UserIsActive named: "com.apple.iohideventsystem.queue.tickle" 
	Timeout will fire in 867 secs Action=TimeoutActionRelease
   pid 755(coreaudiod): [0x0000002f000101a4] 00:02:28 PreventUserIdleSystemSleep named: "com.apple.audio.context341.preventuseridlesleep" 
	Created for PID: 921. 
Kernel Assertions: 0xc=USB,BT-HID
   id=500  level=255 0x4=USB mod=10.04.15 15:59 description=EHC1 owner=AppleUSBEHCI
   id=501  level=255 0x4=USB mod=10.04.15 15:59 description=EHC2 owner=AppleUSBEHCI
   id=502  level=255 0x4=USB mod=10.04.15 16:00 description=PXSX owner=GenericUSBXHCI
   id=503  level=255 0x8=BT-HID mod=01.01.70 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice
   id=504  level=255 0x8=BT-HID mod=01.01.70 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

(audio prevent initiated by Spotify...)

 

This is what the assertions show before sleep

Link to comment
Share on other sites

Kernel Assertions: 0xc=USB,BT-HID
   id=500  level=255 0x4=USB mod=10.04.15 15:59 description=EHC1 owner=AppleUSBEHCI
   id=501  level=255 0x4=USB mod=10.04.15 15:59 description=EHC2 owner=AppleUSBEHCI
   id=502  level=255 0x4=USB mod=10.04.15 16:00 description=PXSX owner=GenericUSBXHCI
   id=503  level=255 0x8=BT-HID mod=01.01.70 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice
   id=504  level=255 0x8=BT-HID mod=01.01.70 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

Should be "0" (no assertions) for proper sleep. Follow what @Allan said in post #7. I do not have much idea about GenericUSHXHCI.kext.

 

The above assertions will cause issues with sleep. To check temporarily if sleep works, unload AppleUSBEHCI & GenericUSBXHCI (remember this will shut down the USB ports).

 

You will need to look into _PRW methods under EHC1 & EHC2 in DSDT to fix EHC assertions.

 

Also, check if AppleLPC is loading.

  • Like 1
Link to comment
Share on other sites

Kernel Assertions: 0xc=USB,BT-HID
   id=500  level=255 0x4=USB mod=10.04.15 15:59 description=EHC1 owner=AppleUSBEHCI
   id=501  level=255 0x4=USB mod=10.04.15 15:59 description=EHC2 owner=AppleUSBEHCI
   id=502  level=255 0x4=USB mod=10.04.15 16:00 description=PXSX owner=GenericUSBXHCI
   id=503  level=255 0x8=BT-HID mod=01.01.70 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice
   id=504  level=255 0x8=BT-HID mod=01.01.70 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

Should be "0" (no assertions) for proper sleep. Follow what @Allan said in post #7. I do not have much idea about GenericUSHXHCI.kext.

 

The above assertions will cause issues with sleep. To check temporarily if sleep works, unload AppleUSBEHCI & GenericUSBXHCI (remember this will shut down the USB ports).

 

You will need to look into _PRW methods under EHC1 & EHC2 in DSDT to fix EHC assertions.

 

Also, check if AppleLPC is loading.

 

Just to avoid any misunderstanding: sleep works well so far. The only issue is that after the wake up, the CPU's will run always above standard, i.e. with 3400 to 3600, instead of 3300 or less. Even with no load on the CPU's, it won't go down to 1600, as it would after normal boot.

So, I'm not so much worrying about the assertions right now  :angel_not: , but more how to keep (!) speed stepping up and running properly. 

Link to comment
Share on other sites

Just to avoid any misunderstanding: sleep works well so far. The only issue is that after the wake up, the CPU's will run always above standard, i.e. with 3400 to 3600, instead of 3300 or less. Even with no load on the CPU's, it won't go down to 1600, as it would after normal boot.

So, I'm not so much worrying about the assertions right now  :angel_not: , but more how to keep (!) speed stepping up and running properly. 

 

I don't know much but it could be connected to sleep. 

 

Did you check your P-states after normal boot? You are dropping CPU tables which is fine as long as you are injecting custom one. I think you should include all the SSDT's in ACPI/patched/ folder (patched ofcourse). Might help.

Link to comment
Share on other sites

I don't know much but it could be connected to sleep. 

 

Did you check your P-states after normal boot? You are dropping CPU tables which is fine as long as you are injecting custom one. I think you should include all the SSDT's in ACPI/patched/ folder (patched ofcourse). Might help.

Yes, after normal boot, everything works perfect. So I guess, all necessary things are "on board". It just breaks with sleep and wake.

Link to comment
Share on other sites

Yes, after normal boot, everything works perfect. So I guess, all necessary things are "on board". It just breaks with sleep and wake.

 

I would still say your sleep is broken. And it might be connected to your issue. Here's why:

  • You said you have to "add clock id" for USB from clover. Without it it'll wake up again.
  • USB assertions (EHC1, EHC2)

Most of the time if sleep is fixed, most problems are fixed automatically. Or you might say you have to fix some issues to get sleep working properly.

 

Simply put, sleep is important. Which btw reminds me that i've got to sleep too.  :D

Link to comment
Share on other sites

 

 

To check temporarily if sleep works, unload AppleUSBEHCI & GenericUSBXHCI (remember this will shut down the USB ports).

 

 

 

Call me stupid, but if I unload all my USB kexts and subsequently kill my USB ports, how should I then test my system without any input ???

 

 

I booted without the generic USB2 kext now, but still I get: (after wake, CPU's still run too fast)

Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=11.04.15 13:12 description=EHC2 owner=AppleUSBEHCI
   id=501  level=255 0x4=USB mod=11.04.15 13:12 description=EHC1 owner=AppleUSBEHCI

Link to comment
Share on other sites

Call me stupid, but if I unload all my USB kexts and subsequently kill my USB ports, how should I then test my system without any input ???

 

My bad i forgot you are using a desktop.

 

....I booted without the generic USB2 kext now, but still I get: (after wake, CPU's still run too fast)....

 

Probably a bad idea. Use GenericUSBXHCI.kext and follow post #7.

 

Post IOReg and bootlog from clover.

Link to comment
Share on other sites

Hey you are using a BLUETOOTH USB adapter, in some cases (in some cases) cause some problems with Sleep.

 

 

Yes I am, but I already tried to boot without it with same results. So leaving that one away doesn't seem to solve the issue.

 

As for the ioreg, I also noticed that the ACPICPU trees are different for cpu 1 to 3.. Only cpu 0 has ACPI_SMC_PlatformPlugin and AppleACPICPUInterruptController.

 

So if that is causing the trouble, how to solve? Any idea?

Link to comment
Share on other sites

Sorry for being slow in updating this here. Somehow I messed up my complete system on Sunday. Took me ages to get things back from the backup  :(

So now I have my system back form Saturday, I can take a breath and will look at it again this weekend I hope  :angel:


Look here.

 

Also you'll find many stickies here useful

 

Correct me if I'm wrong but most of the patches are excluding Sandy Bridge CPU's. since I have the good old i5-2500, I guess patching is not appropriate, right?

Link to comment
Share on other sites

  • 1 month later...
 Share

×
×
  • Create New...