Jump to content

tluck

tluck

Member Since 27 Jan 2012
Offline Last Active Today, 04:49 PM
*****

#2371365 Lenovo ThinkPad T420 with UEFI Only

Posted by tluck on Yesterday, 07:02 PM

well good news. there seems to be a brightness fix for 10.12.4 ... Turns out to be simple matter of each person creating the Injector to match your Panel to get full range. The brightness change is not as smooth on the transitions as with IntelBacklight.kext but there is a full brightness range. and no DSDT edits needed for me. i'll post a new zip with the script to create the injector later today.

#2370924 [GUIDE] HWP(Intel Speed Shift) enable with full power management

Posted by tluck on 21 February 2017 - 07:10 PM

as we just heard from Slice, if using Clover 4016 with HWPEnable and PStates true - then an extra SSDT for P states is not needed.but before 4016, seems a proper SSDT for P states (or mini-SSDT ) is needed. the HWP value will set the parameters. AsmWriteMsr64 (MSR_IA32_HWP_REQUEST, gSettings.HWPValue); i have not used this method - as I am using the X86Platform injector.

#2370222 [GUIDE] HWP(Intel Speed Shift) enable with full power management

Posted by tluck on 20 February 2017 - 04:00 AM

here is a bundle I adapted fromsyscl's X86PlatformInjector kextsyscl's small SSDTpike's freqvector script (modified)install the Injector kext in /Library/Extensions replace SSDT in EFI/CLOVER/ACPI/patched (or OEM) run the injector-freqVectorsEdit.sh script to create your HWP profile to match your model and CPU The 1st run of the script will list all the Resource files and copy the selected one into the Injector - from the standard X86Platform Resource plists. Edit the one of the Frequencies to match your CPU max turbo if necessary.  If you run it a 2nd time, the script will look in the Injector for the Resources vs original So pick a resource plist for a model that matches your current model. and then modify the speed to match our CPU. Notes: it will check to see determine if the Vector Frequencies match your CPU Max Turbo speedit will change the LFM to 400 MHz (or what ever you set with -f option)it will change EPP to 128 (or what ever you se...

#2369480 [GUIDE] HWP(Intel Speed Shift) enable with full power management

Posted by tluck on 18 February 2017 - 04:52 AM

@PMHeart- yeah i seem to be wrong on the EPP  (wrong location in freq vector ?) - how did you change it? in freq vector... much deeper in the string... - my EPP shows as 0x80 = 12800001c40: 0000 0000 6570 7000 0000 0000 0000 0000  ....epp......... 00001c50: 0000 0000 0000 0000 8000 0000 0000 0000  ................ - my EPP Overide is 0x78 = 120 00001cf0: 0000 0000 0000 0000 6570 705f 6f76 6572  ........epp_over 00001d00: 7269 6465 0000 0000 0000 0000 7800 0000  ride........x... from Pike's freq vector script:Examining data of: Mac-473D31EABEB93F9B.plist (MacBookPro13,1) ... ----------------------------------------------------------------- Max Turbo Boost: 3000 MHz (FrequencyVectors @ 1) Converted to: /tmp/Mac-473D31EABEB93F9B-1.bin (7668 bytes) Settings: Low Frequency Mode: 400 MHz BACKGROUND, KGROUND, REALTIME_SHORT, KERNEL, THRU_TIER2, THRU_TIER3, THRU_TIER4, THRU_TIER5 ubpc (1), off (0), on (0), hwp (1), epp (128), perf-bias...

#2369259 [GUIDE] HWP(Intel Speed Shift) enable with full power management

Posted by tluck on 17 February 2017 - 04:20 PM

How did you change the EPP to 192? I could not find where to change this value.  the EPP (energy performance preference)  value is in the FrequencyVectors string from Mac-473D31EABEB93F9B.plist - used with MBP13,1 02000000 04000000 01000000 00000000 BC020000 00000000 19000000 00000000 0064FFFF FFFFFFFF 0F000000 ... 00000000         ^-- min P state (LFM)            for my I5-6300U:P-state - I changed from 0D (x13) to 04 (x4) note: 128 decimal means default - balanced, 0 = high-perf, 255 = low-perf for max battery life from some code i googled:+ if (static_cpu_has(X86_FEATURE_HWP_EPP)) { +  /* + * Range: + * 0x00-0x3F : Performance + * 0x40-0x7F : Balance performance + * 0x80-0xBF : Balance power + * 0xC0-0xFF : Power

#2367053 [GUIDE] HWP(Intel Speed Shift) enable with full power management

Posted by tluck on 12 February 2017 - 05:02 PM

ok switching to MBP13,1 was not enough. editing the Mac-473D31EABEB93F9B.plist to match my CPU was a key step.  The default values of 3100/3400 and Freq Vector data did not match my i5-5300u proc. I figured something was wrong as battery was drained really fast yesterday. i noticed that my speed step would only go down to x13 (which matches the default 0D in the freq vector entry) so now i changed frequencies to2400/3000and then in the vectors changed 0D to 05 and now much better. i wonder what the rest of the Frequency Vector values mean? questions on this using full SSDT-PR via "pike script" vs bare bones SSDT PR cpuPM etc.what is the best approach? does it conflict in some way?

#2366967 Lenovo ThinkPad T420 with UEFI Only

Posted by tluck on 12 February 2017 - 01:50 PM

@fibroga- just change the config on the USB installer to match the display resolution.- if you have BIOS higher than 1.46, search this thread for the DMG/ISO image to create a bootable CD downgrade to 1.46.

#2365386 Clover Bug/Issue Report and Patch

Posted by tluck on 09 February 2017 - 02:14 PM

v.14 and v.15 works fine for me. (i already use .metadata_never_index) also, maybe we could also remove .Spotlight?  v16 - how does the 80.nvram script get called twice? do you mean from LogoutHook and CloverDaemon? nice job on the scripts, btw.

#2364480 [GUIDE] Lenovo T460 macOS with Clover

Posted by tluck on 07 February 2017 - 08:41 PM

@loppol - the other key factor is the kext - AppleHDA (or AppleALC.kext)  layout file. I added a property in there. 

#2363705 Clover Bug/Issue Report and Patch

Posted by tluck on 06 February 2017 - 01:24 PM

@syscl, fun to collaborate! there are nice improvement in error checking - but in 1 key area we are back to the same discussion as before,you are solving the busy problem in a different way. 1) problem with busy:if using CloverDaemon, any user mounted filesystem get unmounted by diskarbitrationd upon logout.so if there are some ESP and other filesystems mounted they will become unmounted after logout - exactly at the time the rc.shutdown script is running. i solved this conflict, by putting in check/wait loop for /sbin/umount initiated by diskarbitration to completeyou solve by doing unmount/remount - which does the same thing in effect - puts in a delay However, I still say and ask why use umount -f to cause corruption? this is a bad idea.if ESP is busy during an unmount - just wait if ESP is busy due to indexing etc - don't unmount - just use it. Note: all that said - this is about using CloverDaemon, and is not an issue with LogoutHook method. 2...

#2363238 Clover Bug/Issue Report and Patch

Posted by tluck on 05 February 2017 - 04:40 PM

@sherlocks and other EmuVariable script testers: Ok! I recoded the script once again and added a bit more status checking etc. Note: i finally had a failures similar to sherlocks - which helps in debugging.And now I expect version will fix the failures to mount and find an ESP with Clover. general aspects:runs ok with Standard CloverDaemon or with LogoutHook flow:looks for all ESP partitions with CLOVERit will re-use an existing already mounted ESP vs doing an unmount/mountif the ESP is not mounted, first determine the fs type - versus using a trial and error approach to mount the ESPfinally if there are mounted ESPs with CLOVER, then remove any old /nvram.plist from the OS root.and then write nvram.plist to all mounted ESP locations that have CLOVERNote: attempts to gracefully unmount the ESP after use - but will not force an unmount. attached is v1.10 80.save_nvram_plist.local.  please test and report.   Attached Files  nvram_v...

#2362853 Clover General discussion

Posted by tluck on 04 February 2017 - 09:57 PM

great. please provide more information on the failure when you have it. understood: 1) requirement - the /etc/rc.shutdown.d/script will work with standard CloverDaemon (and LogoutHook)2) feature - add check to remove OS /nvram.plist if at least 1 ESP is found. i will test and repost soon. 

#2362800 Clover General discussion

Posted by tluck on 04 February 2017 - 06:21 PM

@sherlocks - ok - your 1.8 nvram script works... BUT it does a few things that may need some further scrutiny - and of course is the reason I use the attached scripts. Question:do you use LogoutHookoras shutdown script in CloverDaemon sleep loop only run on shutdown? The general logical flow of the script is: 1) fndESP- loop to find all ESP partitions on all disks- mount the ESP to check for EFI/CLOVER- and if no EFI/CLOVER unmount since it is not needing nvram file. 2) dmpNVRAMthe loop on all the mounted ESP locations to write nvram.plist  Questions/issues:--------1) _fndESP your script will try to unmount an ESP if it is already mounted.why bother to do this unmount?  - the mounting of the filesystem is the most time-consuming and resource intensive aspect, so(A) why not use the existing mount? - the unmount procedure - if busy - you revert to forced unmount - why risk corrupting the filesystem only to remount it in the next s...

#2360930 Lenovo ThinkPad T420 with UEFI Only

Posted by tluck on 01 February 2017 - 02:54 PM

@dio_do - you are welcome!  @theslashy - did you get wifi working? you see anything in your clover boot log - that shows that is sees an airport card? something like this? $ cat /Library/Logs/Clover/boot.log | grep -i air5:269  0:000  Found Airport Atheros at 0x1C0001, 0x0, DeviceID=0x002A 5:271  0:000  Start Airport Fix 5:271  0:000  AirportADR=71E1 add patch size=B0 using the dspci command tool, does it list it as PCI device?  google DPCIManager if you dont have it.  

#2360433 [Guide] Lenovo Thinkpad L420 with El Capitan

Posted by tluck on 31 January 2017 - 05:35 PM

there are some others reporting CMOS errors on the latest Clover. a solution could be to compile Clover say 3994 with older edk2 like 23701

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy