Jump to content

HP 6520s, 6720s, 6820s, 550 SL Install Package

* * * * * 1 votes

  • Please log in to reply
1443 replies to this topic

#1121
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine

YES, maybe you are missing something. Post yours and I will apply the exactly Update 1 fix, I mean the whole: EC and Battery involved code, just like the .dsl file I upload... that's it. My dsdt is very modified, and not standard YET. Coming soon.

Yes, you are right... after review my code, I have found place with wrong code... Now all works excellent...
Sorry for for disinformation about bug...

#1122
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,480 posts
  • Gender:Male
  • Location:Tru, Venezuela
I have almost fixed the thermal zones problem in DSDT at the same way (same procedure) of battery code fix. Thanks again to bcc9. It is a little bit more complicated but not impossible. For references about those issues (battery and thermal zones for us) and others, please see this commentary by THe KiNG about the new ACPI specification in Lion.

#1123
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,617 posts
  • Gender:Male
  • Location:BCN

I have almost fixed the thermal zones problem in DSDT at the same way (same procedure) of battery code fix. Thanks again to bcc9. It is a little bit more complicated but not impossible. For references about those issues (battery and thermal zones for us) and others, please see this commentary by THe KiNG about the new ACPI specification in Lion.

Great news!
You can download the full ACPI 4.0 specification PDF from the link on my post #1113, but I guess you already have that


EDIT:
Im using the old ACPIPlatform from 10.6.7 now to have active cooling enabled in Lion and something I noticed is that ACPIThermal.kext doesnt need to be unload with sleepwatcher for the machine to sleep and it loads again on wake.

#1124
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine
More about battery.

After comparison of EC device memory with and without battery I have found that some, currently not used, fields in memory can be related to battery :
C1EF - value is near 280,
C1AF - value is near 480,
C1F2 - for me it is constant 16608,
C1F8 - also constant 8.

May be this fields contains such info as cycle count, temperature, etc, but I don't know how to determine(only one suggestion is to try with some monitoring software on windows and compare it results with values in EC device, but i have no windows on my laptop at this time)....

About battery monitoring info with AppleACPIBattery:
cycle count = ( DesignCapacity - MaxCapacity) / 7
probably this is near correct value but this is FAKE.
temperature = CurrentVoltage / 4
also FAKE, but I am sure it have no chance to be correct.

To have this monitoring features we must find-out where to get this values and implement correct _BIX methods as gsly described in his topic.

UPD:

I have added _BIX method to dsdt to emulate the same cycle count as in ACPIBatteryManager for gsly driver, also I have replaced default PBIF by gsly one(it looks like more correct).
New methods:
Name (PBIX, Package (0x14){    0x00000001,     // 0x00, Revision //Integer    0x00000001,     // 0x01, Power Unit //Integer (DWORD)    0xFFFFFFFF,     // 0x02, Design Capacity //Integer (DWORD)    0xFFFFFFFF,     // 0x03, Last Full Charge Capacity //Integer (DWORD)    0x00000001,     // 0x04, Battery Technology //Integer (DWORD)    0xFFFFFFFF,     // 0x05, Design Voltage //Integer (DWORD)    0x000000FA,     // 0x06, Design Capacity of Warning //Integer (DWORD)    0x00000096,     // 0x07, Design Capacity of Low //Integer (DWORD)    0x00000000,     // 0x08, Cycle Count //Integer (DWORD)    0x00100000,     // 0x09, Measurement Accuracy //Integer (DWORD)    0xFFFFFFFF,     // 0x0a, Max Sampling Time //Integer (DWORD)    0xFFFFFFFF,     // 0x0b, Min Sampling Time //Integer (DWORD)    0xFFFFFFFF,     // 0x0c, Max Averaging Interval //Integer (DWORD)    0xFFFFFFFF,     // 0x0d, Min Averaging Interval //Integer (DWORD)    0x0000000A,     // 0x0e, Battery Capacity Granularity 1 //Integer (DWORD)    0x00000019,     // 0x0f, Battery Capacity Granularity 2 //Integer (DWORD)    " ",            // 0x10, Model Number //String (ASCIIZ)    " ",            // 0x11, Serial Number //String (ASCIIZ)    " ",            // 0x12, Battery Type //String (ASCIIZ)    " "             // 0x13, OEM Information //String (ASCIIZ)})// Return battery extended information in PBIXMethod (_BIX, 0, NotSerialized){    UPBX ()    Return (PBIX)}// Get and store battery extended information in PBIXMethod (UPBX, 0, NotSerialized){	UBIF()                                                   Store (0x00, Index (PBIX, 0x00))                         Store (0x01, Index (PBIX, 0x01))                           Store (DerefOf (Index (PBIF, One)),Local0) 			       Store (Local0, Index (PBIX, 0x02))                             Store (DerefOf (Index (PBIF, 0x02)),Local0) 		       Store (Local0, Index (PBIX, 0x03))                         Store (0x01, Index (PBIX, 0x04))                                                                                   Store (DerefOf (Index (PBIF, 0x04)),Local0) 		     Store (Local0, Index (PBIX, 0x05))                   Store (0xFA, Index (PBIX, 0x06))                     Store (0x96, Index (PBIX, 0x07))       //some magic as in AppleACPIBatteryManager                            Store (DerefOf (Index (PBIF, One)),Local0)                           Store (DerefOf (Index (PBIF, 0x02)),Local1)  	Subtract(Local0,Local1,Local2)                // TODO: Cycle Count	Divide (Local2, 7, Local0, Index (PBIX, 0x08))    						                      Store(100,Local0) // TODO: Measurement Accuracy    Multiply (Local0, 0x1000, Index (PBIX, 0x09))              Store (0xFFFFFFFF, Index (PBIX, 0x0a))                     Store (0xFFFFFFFF, Index (PBIX, 0x0b))                     Store (0x0000EA60, Index (PBIX, 0x0c))                     Store (0x0000EA60, Index (PBIX, 0x0d))                     Store (0x0A, Index (PBIX, 0x0e))                           Store (0x19, Index (PBIX, 0x0f))                                                 Store (DerefOf (Index (PBIF, 0x09)),Local0) 	    Store (Local0, Index (PBIX, 0x10))                                       Store (DerefOf (Index (PBIF, 0x0a)),Local0) 	    Store (Local0, Index (PBIX, 0x11))                                       Store (DerefOf (Index (PBIF, 0x0b)),Local0) 	    Store (Local0, Index (PBIX, 0x12))                                       Store (DerefOf (Index (PBIF, 0x0c)),Local0) 	    Store (Local0, Index (PBIX, 0x13))                   }

new PBIF:
Name (PBIF, Package (0x0D)
{
	0x00000001,	  // 0x00, Power Unit
	0xFFFFFFFF,	  // 0x01, Design Capacity
	0xFFFFFFFF,	  // 0x02, Last Full Charge Capacity
	0x00000001,	  // 0x03, Battery technology
	0xFFFFFFFF,	  // 0x04, Design voltage
	0x000000FA,	  // 0x05, Design capacity of warning
	0x00000096,	  // 0x06, Design capacity of low
	0x0000000A,	  // 0x07, Battery capacity gradularity 1
	0x00000019,	  // 0x08, Battery capacity gradularity 2
	"Primary",	   // 0x09, Model number
	"100000",		// 0x0a, Serial number
	"LIon",		  // 0x0b, Battery type
	"Hewlett-Packard" // 0x0c, OEM Information
})


To use this new methods in dsdt configure key "UseExtendedBatteryInformationMethod" to true in Info.plist, and install AppleSmartBattery.kext from gsly topic.

#1125
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,480 posts
  • Gender:Male
  • Location:Tru, Venezuela
Thank You, I want to try your work also on Lion. But please, can you upload your EC and all Battery involved code... into a .dsl file to avoid confusions about the order (and/or places) of the new additions and/or replacements in the DSDT.

EDIT:
Im using the old ACPIPlatform from 10.6.7 now to have active cooling enabled in Lion and something I noticed is that ACPIThermal.kext doesnt need to be unload with sleepwatcher for the machine to sleep and it loads again on wake.

Same behavior here in 10.6.8... Is not needed that daemon anymore. But I noticed this only after my last clean installation (new hdd) about three months ago.

#1126
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,617 posts
  • Gender:Male
  • Location:BCN

I have added _BIX method to dsdt to emulate the same cycle count as in ACPIBatteryManager for gsly driver, also I have replaced default PBIF by gsly one(it looks like more correct).

Testing on 10.6.8. Works fine. Information is the same as before but now cycles count shows a value
Thanks!

#1127
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine

Thank You, I want to try your work also on Lion. But please, can you upload your EC and all Battery involved code... into a .dsl file to avoid confusions about the order (and/or places) of the new additions and/or replacements in the DSDT.

Sure. DSDT wich i am using now attachments.

Attached Files



#1128
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine

I have almost fixed the thermal zones problem in DSDT at the same way (same procedure) of battery code fix. Thanks again to bcc9. It is a little bit more complicated but not impossible. For references about those issues (battery and thermal zones for us) and others, please see this commentary by THe KiNG about the new ACPI specification in Lion.


I have an idea about fixing our DSDT for lion.

Recently I have looked to DSDT from MacBook 3.1, and I have found:

* that they are compiled with 20061109 compiler version - that version cannot support ACPI 4.0a
* I have found two DSDT from MB3.1 - and they are different.
* I have noticed 16 bit IO for memory in EC ... - this seems dont work in lion, right?

So I can suppose that apple has updated DSDT in macbook too, and maybe in new dsdt, if it was updated, we can found some fixes for us.


Also for compiling DSDT for Lion probably we need to use most recent iasl with ACPI 4.0a support - today I have compiled it from latest sources(todays version), you can download it from attachments.

Attached Files

  • Attached File  iasl.zip   283.71KB   19 downloads


#1129
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,617 posts
  • Gender:Male
  • Location:BCN

So I can suppose that apple has updated DSDT in macbook too, and maybe in new dsdt, if it was updated, we can found some fixes for us.

I belive that would imply a firmware (EFI rom) update for the macbooks... Has apple released such a update lately?

#1130
Flier-D

Flier-D

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts
Hello everybody!

I have strange problem with my video on 6720s. Earlier I have 10.6.8 installed. Now I am trying to set up Lion. After verbose booting I always get strange pictures on screen instead of login screen:
Attached File  IMG_0072.JPG   578.33KB   9 downloads
Attached File  IMG_0073.JPG   518.7KB   12 downloads
Attached File  IMG_0074.JPG   486.03KB   8 downloads

I had the same problem with Snow Leopard, but it was once on 50 boots.

I have tried many versions of drivers from this post, but have no chance to get login screen. In addition I haven't found any solution of it.

Any ideas?
Thanks!

#1131
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine

Any ideas?


You need to override your display EDID... Some time ago I had same problem(on snow leopard), and after doing this I never have this problem again..

#1132
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine
I have just installed Lion, currently I have version 10.7.1..

I am using GMAX3100 drivers from 10.7.0 (not updated in 10.7.1), I have patched those drivers for 2a12 video id - and I have full acceleration and no bugs with this driver(like, mouse freezing).. upd: with freezing bug - mouse is almost smooth but sometimes it freezes...

Also I have made patch for brightness control (like I have done before for 10.6):

To get work of native brightness control, replace in AppleIntelGMAX3100FB
this bytecode:
8b46588b885412060083e1fe39d17413

by this one:
8b465869d28400000081ca0000ffff90


this would replace original code:
movl		  0x58(%esi),%eax
movl		  0x00061254(%eax),%ecx
andl		  $0xfe,%ecx
cmpl		  %edx,%ecx
je		  0x00002461
by this:
movl		  0x58(%esi),%eax
imull		  $0x00000084,%edx,%edx 
orl			$0xffff0000,%edx
nop

Original and patched drivers in attachments.

Attached Files



#1133
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,617 posts
  • Gender:Male
  • Location:BCN

To get work of native brightness control, replace in AppleIntelGMAX3100FB
this bytecode:

8b46588b885412060083e1fe39d17413

by this one:
8b465869d28400000081ca0000ffff90

Great. Thanks a lot!

EDIT:
I do get mouse freezing with those kexts

#1134
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,480 posts
  • Gender:Male
  • Location:Tru, Venezuela

I am using GMAX3100 drivers from 10.7.0 (not updated in 10.7.1), I have patched those drivers for 2a12 video id - and I have full acceleration and no bugs with this driver(like, mouse freezing)..
Original and patched drivers in attachments.

+1 with BlackCH. Video stuttering (mouse freezing) here as EXPECTED about those "original" drivers because... are the exactly same group of drivers that we all have/know from the GM11A511 (and retail app store). BTW, just to clarifying one thing: 10.7 x3100 drivers stay intact in 10.7.1 and 10.7.2 (last Beta)... I mean have not been updated at all, therefore is the ONLY ONE x3100 drivers version (7.0.52) made by Apple for Lion at moment. Do not exist another.

#1135
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine
About graphics in lion - After more testing I have seen mouse freezing too ... mouse is almost smooth but sometimes it freezes :) ... Maybe later, I will try to compare Lion and Snow framebufer to find out changes that can be reason of bug, but chances of success are small...

Also:

I have problems with wifi, AirPortBrcm4311.kext(which is used on snow for my BCM4312) not exist on lion, I have tried to replace IO80211Family with snow one(10.6.8) - seams to work, but no internet sharing over wifi... Any ideas about this?

AppleSmartBattary.kext - is working good as in Snow Leopard, except info in system profiler.

#1136
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,480 posts
  • Gender:Male
  • Location:Tru, Venezuela
System Profiler is not working for almost everybody also with AppleACPIBatteryManager. It seems that voodoobattery does the trick, but I have not tested.

About WiFi thanks God I bought the 4328 (Broadcom BCM94321MCP1 P3) originally from a HP Pavilion TX1320US Series TX1000. I recommend a compatible "N" card to work on vanilla Lion + Hacked BIOS + Rebranding = No problem (perfect).

#1137
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine

About WiFi thanks God I bought the 4328 (Broadcom BCM94321MCP1 P3) originally from a HP Pavilion TX1320US Series TX1000. I recommend a compatible "N" card to work on vanilla Lion + Hacked BIOS + Rebranding = No problem (perfect).

I have tried to rebrand my card - rebranded without any problems (now I have "AirPort Extreme (0x14E4, 0x4E)")... Also I have hacked BIOS...
Card work excellent in snow... but, no luck in lion :)

#1138
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,617 posts
  • Gender:Male
  • Location:BCN

I have tried to rebrand my card - rebranded without any problems (now I have "AirPort Extreme (0x14E4, 0x4E)")... Also I have hacked BIOS...
Card work excellent in snow... but, no luck in lion :)

What is the problem exaclty?

I have a rebranded BCM4311 (802.11 b/g) and it works without problem in both systems.

#1139
ThirdSmile

ThirdSmile

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Ukraine

What is the problem exaclty?

I have a rebranded BCM4311 (802.11 b/g) and it work without problem in both systems.


Interesting ... Hope is not dead..

My BCM4312 seam to work only in snow:
loaded kexts in snow:
$ kextstat | grep Brcm
   55	0 0x996000   0x176000   0x175000   com.apple.driver.AirPortBrcm43224 (428.42.4) <54 40 14 7 5 4 3 1>
   56	0 0xb0c000   0x1d0000   0x1cf000   com.apple.driver.AirPortBrcm43xx (423.91.27) <54 40 14 7 5 4 3 1>
Info in system profiler:
Software Versions:  Menu Extra:	6.2.2 (622.2)  configd plug-in:	6.2.5 (625.6)  System Profiler:	6.0.1 (601.1)  Network Preference:	6.2.2 (622.2)  AirPort Utility:	5.5.3 (553.20)  IO80211 Family:	3.2 (320.1)  Interfaces:en0:  Card Type:	AirPort Extreme  (0x14E4, 0x4E)  Firmware Version:	Broadcom BCM43xx 1.0 (5.10.91.27)  Locale:	Unknown  Country Code:	DE  Supported PHY Modes:	802.11 a/b/g  Supported Channels:	1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140  Status:	Connected

But in lion I have this pictuture:
Posted Image


@BlackCH
What subsystem product you have used to rebrand? What kexts are used for wifi in lion? Have you made modifications for AirPort device in DSDT except implemented in DSDT_v0.20?
Can you upload your IOReg, please? Thanks.

Attached Files



#1140
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,617 posts
  • Gender:Male
  • Location:BCN

@BlackCH
What subsystem product you have used to rebrand? What kexts are used for wifi in lion? Have you made modifications for AirPort device in DSDT except implemented in DSDT_v0.20?
Can you upload your IOReg, please? Thanks.

-The subsystem product is the same you used: 0x14E4, 0x4E
-Im using stock lion kexts (no modification)
-I use the standart DSDT

The broadcom kext is not loading on your system. I guess your device ID could be missing from the broadcom kext.
Two things I can think of:
-You can try to insert the 4312 dev ID into the info.plist
-You could try to fake the device ID via DSDT. Set it to 4311 (then you dont need to mod the info.plist). The method is explained somewhere in this thread by juanerson

I will attach my lion ioreg later.

One thing to notice is that in snow I have just one kext loaded:
79	0 0x5c0ad000 0x176000   0x175000   com.apple.driver.AirPortBrcm43224 (428.42.4) <78 77 14 7 5 4 3 1>

EDIT:
I just checked myself and the kext in lion actually HAS the 4312 ID in the info.plist.
So I dont know... You could still try to fake the ID via DSDT





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