Jump to content

Patchowanie AppleLPC w locie


Recommended Posts

Krótki poradnik jak patchować w locie AppleLPC (ma zastosowanie także do patchowania w locie innych kextów).

 
Musimy ustalić jakim LPC dysponujemy. Najłatwiej dokonać tego w Menadżerze urządzeń Windows (menadżer urządzeń - urządzenia systemowe - *LPC* (szukamy sterownika LPC) - klikamy właściwości - szczegóły - wybieramy z listy identyfikator sprzętu)
W moim wypadku jest to 8c5c. (screen poniżej)
 
Przystępujemy do patchowania:
Po pierwsze należy wymusić załadowanie się Kexta żebyśmy mieli co patchować, dodajemy w tym celu do config.plist wpis który powinien się znajdować w sekcji KernelAndKextPatches
<key>ForceKextsToLoad</key>
		<array>
			<string>\System\Library\Extensions\AppleLPC.kext</string> 
		</array>

Następnie dodajemy patch w  KernelAndKextPatches - KextToPatch

                         <dict>
				<key>Comment</key>
				<string>AppleLPC</string>
				<key>Find</key>
				<string>1e44 jest to wartość którą podmieniamy(może zostać taka)</string>
				<key>InfoPlistPatch</key>
				<string>Yes</string>
				<key>Name</key>
				<string>AppleLPC</string>
				<key>Replace</key>
				<string>8c5c tutaj należy wpisać wartość którą odnaleźliśmy w Windows</string>
			</dict>

Tak powinno wyglądać wszystko w KernelAndKextPatches

<key>KernelAndKextPatches</key>
	<dict>
		<key>AppleRTC</key>
		<false/>
		<key>AsusAICPUPM</key>
		<false/>
		<key>ForceKextsToLoad</key>
		<array>
			<string>\System\Library\Extensions\AppleLPC.kext</string>
		</array>
		<key>KernelPm</key>
		<false/>
		<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>AppleLPC</string>
				<key>Find</key>
				<string>1e44</string>
				<key>InfoPlistPatch</key>
				<string>Yes</string>
				<key>Name</key>
				<string>AppleLPC</string>
				<key>Replace</key>
				<string>8c5c</string>
			</dict>
		</array>
	</dict>

Jeżeli są jakieś błędy proszę o poprawki. Pozdrawiam

post-4031-0-58628100-1421958876_thumb.jpg

Link to comment
Share on other sites

  • 10 months later...

Wyskakuje mi 

   45    0 0xffffff7f8322d000 0x13000    0x13000    org.hwsensors.driver.LPCSensors (1372) 4E8FF86C-FDCD-35CE-A7D2-659B37284AA4 <21 12 11 7 5 4 3>
   83    0 0xffffff7f82ce1000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 0C90B22D-637B-3000-8C44-B7955D57E10A <81 12 5 4 3>

Więc rozumiem że mam szukać błędu? Gdzie mógłbym się dowiedzieć więcej o działaniu PM w Macach (chodzi o wytłumacznie w stylu www.linuxatemyram.com )?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.