Jump to content

kosakgroove

Members
  • Content Count

    685
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    kosakgroove got a reaction from sbonkov in Lenovo ThinkPad L420 macOS Sierra   
    Lenovo Thinkpad L420 macOS Sierra Guide
     
    Thanks to the good old mighty Clover Bootloader, we have so much better support for laptops and different alternative hardware. I have made a few HackBook Pros but without a shadow of a doubt this Lenovo L420 is almost a perfect Apple computer. Even better in some aspects if you ask me about it.
     
    Lenovo theme on Clover in my L420
     


     
    I will be quoting a good fellow of the community, tluck , who made an awesome guide for his Lenovo T420, and he also helped me achieve better functionality. Regards to you my friend.
     
    I have already written a guide for installing and perfecting Mac OS X El Capitan on this PC, but I wanted to see how good Sierra could run, and OH BOY it is running like a charm. Here are the specs of the machine. In my case I added 8GB of RAM.
     

     
    I understand this is not a highly popular laptop outside corporations, I don’t even know if it was ever sold to the general public, so I guess this post will help me know that hahah anyway a friend of mine gave me two of them, one with i5 another with i3. This tutorial applies to any of those models. It should also apply to older versions of Mac OS X all the way until Snow Leopard (little modifications required as well as appropriate kexts)
     
     
    What is working
    WiFi , Bluetooth, Airdrop (Wifi replaced with Atheros AR9285)
    Full QE/CI acceleration with integrated Intel HD3000 graphics
    Trackpad with 1 finger , 2 finger and 3 finger gestures
    keyboard as well as function keys (brightness, volume)
    Battery percentage
    Sleep, Shutdown and Reboot
    Sound working on ALC269 mobile
    DVD Drive
    DisplayPort audio and video
    VGA out
    USB 3.0 ExpressCard (Renesas)
    iMessage and Facetime
    Recovery Partition
     
     
    What is not working
    You tell me
     
     
    1. Creating the install media
     
    The best way to install macOS to our Hackintosh is definitely to create a USB with the latest version of macOS Sierra (10.12.5 as of writing this guide) and to use the createinstallmedia method. For that you will need either a Macintosh computer, an existing Hackintosh or a Virtual Machine running OS X 10.6 or above.
     
    This way you will end up with a clean vanilla install , and with a recovery partition capable of booting and capable of using FindMyMac / FindMyiPhone
    I won’t go into too much details about this since this is one of the first things you should know when attempting to Hackintosh.
     
    This procedure is for a new macOS installation using a USB Installer.
    Download macOS from the App Store - it is freely available
    One can build a macOS USB installer with the standard macOS installer app downloaded from the "App Store". Download and extract the zip file from this post to build a Clover-based USB installer. This same bundle will be installed later on HD.
     
    Install macOS to a GPT formatted disk using the standard Install macOS.app downloaded from the Apple Store.
    Create a macOS USB installer
    Partition an 8GB (or larger) USB formatted with GUID Partition Table (GPT)
    - use the Partition Options... menu to change from MBR to GPT
    - Name the partition USB - the install process will rename it, but it matches the script below.
    - Use format: Mac OS Extended (Journaled) (formerly OS X Extended)
     
    Note: if you have a larger USB (say 16GB) you can split into 2 8GB partitions, so you can have 10.12 and 10.11 installers on the same USB key
     
    Run this command to copy the bits to the USB key:
    Note: if using an older version of macOS, replace with the corresponding app name.
     
     

    sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction 2. Install bootloader (Clover) to install media
     
    You should select your USB in the Clover installer and then hit “Customize”
    Select the next options:
     
    Install Clover in the ESP
    Install boot0ss in MBR
    Clover EFI 64bits SATA
    CSMVideoDxe-64
    EmuVariableUEFI-64
    OsxAptioFix2Drv-64
    Fat64
     
     
     
    3. Configuring the bootloader
     
    After installation is complete, the EFI partition we want to configure will already be mounted, so we proceed to open it and do the following
    Install HFSPlus.efi and NTFS.efi in drivers64UEFI folder and remove VboxHFS.efi. Because this PC doesn’t have any UEFI you should also install HFSPlus.efi and NTFS.efi to the drivers64 folder.
     
    Open the folder /EFI/Clover/kexts and delete all the folders starting by 10 and leave only the “other” folderIn the above mentioned “other” folder.
    Place the kexts that I will quote next (you can download the ones attached to the post, but I always recommend the latest versions) :
     
    ACPIBatteryManager.kext
    AppleALC.kext
    CodecCommander.kext
    FakePCIID_XHCIMux.kext
    FakePCIID.kext
    FakeSMC, HWInfo, IntelCPUMonitor (HwSensors3 from Slice)
    GenericUSBXHCI.kext (only if you use an USB3.0 ExpressCard)
    RealtekRTL8111.kext
    USBInjectAll.kext
    VoodooPS2Controller.kext (tluck's version)
     
    L420 kextpack.zip
     
     
    Notes on VoodooPS2 (tluck)
     
    VoodooPS2Controller.kext (v1.8.25f) - New custom T420 version of RehabMans's PS2 Keyboad/TouchPad/TrackPoint
    - This version has extra T420 definitions in the Info.plist files.
    Tweaks to help with TrackPoint on startup
    Jakibaki's cut/paste fix for middle button + scrolling fix.
    if MiddeMouseScroll is set to true scrolling TrackPoint works.
    Sierra PrefPane integration and other fixes (smoothness and caps-lock) by usr-sse2 (see this post on GitHub)
    Modified Info.plist(s) to add LENOVO T420 override settings.
    ​TrackPad pressure FingerZ value set to 47 - up from default of 30 - change to suite your touch in VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2TrackPad.kext/Contents/Info.plist
    Various Default overrides such as MouseMultiplier X and Y for TrackPoint.
    Note: VoodooPS2Controller keyboard mappings have 3 or 4 finger swipe left/right to back/forward configured for Safari browser vs space swipe
    Optional Key Map: This map works in El Capitan. Since the NX keys are in a state of flux for Sierra - it is disabled by default now. If you would want to use this new map, edit the Info.plist file and rename the T420 key map entry. The F1-F15 key mappings are VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.key.plist:
    F1 - LCD Brightness Down
    F2 - LCD Brightness Up
    F3 - Mission Control App Selector
    F4 - Launchpad
    F5 -
    F6 -
    F7 - Mirror Displays
    F8 - Disable/Enable TouchPad
    F9 -
    F10 - Mute Volume
    F11 - Volume Down
    F12 - Volume Up
    PrtSc - Scan Previous Track
    ScrLck - iTunes Play/Pause
    Pause - Scan Next Track
    Insert - Eject
     
     
     
    After all the kexts are in the correct folder you should tweak your config.plist as follows, I recommend using a proper plist editor , the best is Xcode.
     
     
    config.plist.zip
     
    Lenovo mostly whitelist the Wifi cards on their laptops (and some desktops) so you will have to use a custom BIOS for this. There is one here luckily.
     
    If you need me to explain how to flash it then you shouldn’t really be Hackintoshing in the first place.
    After you have flashed the BIOS make sure you set the SATA controller to AHCI. You should be able to boot from the Clover USB and install Mac OS X
    Remember to use a GUID partition scheme for the drive you will use. Recovery partition should be generated automatically by the OS X installer.
     
    4. Hopefully you boot and get to install macOS well.
    Boot Clover from USB Installer and select Install macOS
    Install the OS on your GPT disk on the macOS partition.
     
    Make sure the drive is formatted using:
    Scheme: GUID Partition Map (GPT)
    Partition Name: macOS
    Format: macOS Extended (Journaled)
     
    Dual BOOT tip:
    If you plan to dual boot Windows from the same HD - DO NOT make the 2nd partition NTFS or ExFAT with the Disk Utility app.
    Make them both "Mac OS Extended (Journaled)"
    Size the 2 partitions appropriately - but later you will delete/reformat the 2nd partition for Windows.
     
     
    Click through GUI Install menus and wait for the installation to fully complete - on a spinning disk takes about 30-45 minutes.
    Follow these Notes and Tips:
    When the installer screens shows: "To pair a Bluetooth keyboard, turn it on and wait for your computer to connect to it.”
    Hit the Space Bar to get past this step.
     
    When installer seems to hang at: "About a second remaining”
    Don’t Panic, this "second" may take about 10 minutes or more to finish.
    Just wait for the installer to reboot the computer and continue the installation.
    The whole install process takes about 1 hour to complete.
     
    On the first boot from the HD when asked: "How Do You Connect?”
    Select: “My computer does not connect to the Internet”
    You can set up the network later after installation of the NIC driver kext.
    Your Intel WiFi will not work. Period.
     
     
    5. Next you have to install the boot loader to the HDD
    You should select your USB in the Clover installer and then hit “Customize”
    Select the next options:
     
    Install Clover in the ESP
    Install boot0ss in MBR
    Clover EFI 64bits SATA
    CSMVideoDxe-64
    EmuVariableUEFI-64
    OsxAptioFix2Drv-64
    Fat64
    Install all RC scripts to target partition
     
    After installation is complete, the EFI partition we want to configure will already be mounted, so we proceed to open it and do the following
    Again we install HFSPlus.efi and NTFS.efi in drivers64UEFI folder and remove VboxHFS.efi. Because this PC doesn’t have any UEFI you should also install HFSPlus.efi and NTFS.efi to the drivers64 folder. Also copy your ACPI files and config.plist at the right places.
     
    6. In order to get everything working properly , follow these guidelines for ACPI tables patching.
    Firstly, press F4 at Clover GUI in order to dump the native ACPI tables. You will most probably get a crash, a red screen full of weird black numbers and strange symbols, do not worry, just force shutdown. At the next boot if you look in /EFI/Clover/ACPI/origin you should have a bunch of files.
    After getting MaciASL and acpica tools from RehabMan (always updated) and installing them, and adding rehabman’s laptop dsdt patch repository, which is this:
     
    https://github.com/RehabMan/Laptop-DSDT-Patch
     
     
    Delete all files except DSDT, SSDT-0 and SSDT-1 in /EFI/Clover/ACPI/origin
     
    You should decompile the DSDT , SSDT-0 and SSDT-1 using the following commands (make sure you create a .txt document containing the following external references and place it in the same place where the ACPI files are)
     

    External(MDBG, MethodObj, 1)External(_GPE.MMTB, MethodObj, 0)External(_SB.PCI0.LPCB.H_EC.ECWT, MethodObj, 2)External(_SB.PCI0.LPCB.H_EC.ECRD, MethodObj, 1)External(_SB.PCI0.LPCB.H_EC.ECMD, MethodObj, 1)External(_SB.PCI0.PEG0.PEGP.SGPO, MethodObj, 2)External(_SB.PCI0.GFX0.DD02._BCM, MethodObj, 1)External(_SB.PCI0.SAT0.SDSM, MethodObj, 4)External(_GPE.VHOV, MethodObj, 3)External(_SB.PCI0.XHC.RHUB.TPLD, MethodObj, 2) Then do: 

    cd /path/to/your/filesiasl -da -dl -fe refs.txt *.aml After obtaining the .dsl files you should open them and check for errors.The only error you will find will be in one of the SSDTs and it can be fixed using the Remove _PSS placeholders patch to fix that SSDT that only contains info about the CPU and is full of “Package (0x06)”
    When your files are nice and clean and in .dsl format you can happily apply the following patches to DSDT
     
     
    Use the patch “Rename GFX0 to IGPU”
    Use the patch “Rename B0D3 to HDAU”
    Use the patch "DTGP" (easy to find with our buddy Google)
    Use the patch "Fix _WAK Arg0 v2"
    Use the patch "HPET Fix"
    Use the patch "SMBUS Fix"
    Use the patch "IRQ Fix"
    Use the patch "RTC Fix"
    Use the patch "OS Check Fix"
    Use the patch "Fix Mutex with non-zero SyncLevel"
    Use the patch "Add IMEI"
    Use the patch “6 Series USB”
    Use the patch "USB PRW 0x6D"
    Use the patch "Audio Layout id 3"
    Use the patch "L420 battery patch"
     
    For Brightness keys (Q14 and Q15 in DSDT)
     
    In Method _Q14 add at the end:
     

    Notify (PS2K, 0x0206)Notify (PS2K, 0x0286) In Method _Q15 add at the end:
     

    Notify (PS2K, 0x0205)Notify (PS2K, 0x0285) If you are lost with ACPI here is how you should place the code: 

     
    Little bonus, since the ThinkVantage key does absolutely nothing, I patched the DSDT so that when you hit that key, the fans will remain at 100% speed all the time. Hit it again and they go back to auto mode Cool Right? Replace your _Q19 method with this (credits to tluck)
     

    Method (_Q19, 0, NotSerialized) // _Qxx: EC Query { Name (FANS, One) Store (HFSP, FANS) XOr (FANS, 0x80, Local0) If (Local0) { Store (0x80, HFSP) } Else { Store (0x07, HFSP) } }  
     
    After all the ACPI tables are properly patched save them all and compile your tables
     

    cd /path/to/patched/tablesiasl *.dsl After getting the resulting patched aml files, place them in /EFI/Clover/ACPI/patched for Clover to load itFinally you will need to generate an SSDT using ssdtPRGen.sh
     
    Note:
    - If you want working brightness in Sierra make sure to download my ACPI files pack and use the provided SSDT-PNLF
    - Also if you use Atheros AR9285 like me you can use the attached SSDT-2 and see if it works, otherwise provide here your DSDT
     
     
    7. After you have your DSDT, SSDT-0, SSDT-1 and SSDT (the one generated by the script) , along with SSDT-PNLF and SSDT-2 if you need them, place them all together in /EFI/Clover/ACPI/patched and in the ACPI section of your config.plist make sure to "Drop OEM" tables and set the "Sorted Order"
     
     
    Overall I would say this laptop is quite perfect for a Hackintosh , I use it for a few months and I love it, hope you do too.
     
    This Hack is functioning almost 100% in Mac OS X and certainly it performs so much better than in Windows
    Enjoy our fully functional Hack
     

     
    General Notes and Random Fixes
     
    The stock Intel WiFi will not work. The common approach is use a modded BIOS and replace the WiFi with a Broadcom or Atheros chip (I went for AR9285).
     
    Enable (turn on) Bluetooth so the green light is showing on the LCD bezel (do from Windows or Ubuntu).
    Also make sure the side switch is set to green too!
    When using external headphones or speakers, may need to plug and unplug 1 or 2 times for recognition.
     
    iMessage/Facetime may not register without overriding the Clover generated values with real ROM and MLB values from a real Apple Mac. Search thread for ROM to get more info.
    ​Clover can possibly generate proper values and inject using RtVariables - use mac address -- see wiki for details.
     
     
    Hibernation - Use OsxAptioFix2Drv-64.efi instead of OsxAptioFixDrv-64.efi UEFI driver for restart from hibernation. Suggested settings if you don't want or use hibernation:
    sudo pmset -a hibernatemode 0
    rm /var/vm/sleepimage
    if you want hibernation, then set hibernate mode to 7 (mode 7 is like mode 3 but without encryption) - may need to manually edit this value into the plist file now.
    sudo pmset -a hibernatemode 7
    Note: Booting up from the hibernated image may have jumbled or blank LCD until you do a sleep/wake cycle to reset the LCD.
     
    Add boot option darkwake=0 if you would like to disable power nap and have the lid wake the gfx instead of hitting extra key.
     
    TrackPoint may not be responsive on startup (random occurance) - a sleep/wake cycle should revive it.
     
     
     
    Here are my patched tables if you need them
    L420 patched ACPI Sierra.zip
  2. Sad
    kosakgroove got a reaction from ritaPi in The Ultimate Web Browser   
    Iridium browser defends your privacy while you can enjoy the speed and benefits of Chrome \m/
  3. Thanks
    kosakgroove got a reaction from ritaPi in The Ultimate Web Browser   
    Safari is doing great lately, I love it
     
    But Chrome remains my choice for video compatibility and script compatibility. Also Chrome loads things faster.
  4. Like
    kosakgroove reacted to WaldMeister in Computerbanen in Nederland   
    Hi,
     
    Ik denk dat je met je huidige profiel als aantoonbaar bij menig detacheerder wel aan de slag kunt. Brunnel IT is 1 van de beteren, stellen ook zeer hoge eisen. Dan heb je nog Centric, Peak-IT, Inwork, etc...
     
    Wat de meest gevraagde vaardigheden/talen zijn in Nederland, geen idee. Engels en Nederlands word over het algemeen wel gewaardeerd.
    Je zou eens rond kunnen kijken op bijvoorbeeld Monsterboard.nl of indeed.nl, zodat je een beetje een idee krijgt van wat gezocht wordt.
     
    Succes met de zoektocht en emi/immi -gratie
  5. Like
    kosakgroove reacted to Sherlocks in Lenovo ThinkPad L420 macOS Sierra   
    Tluck package has -f option if you made usb installer.
    If there is no -option, you manually type(add) "-f" on bootarg

    나의 LG-F800S 의 Tapatalk에서 보냄

  6. Like
    kosakgroove reacted to Sherlocks in Lenovo ThinkPad L420 macOS Sierra   
    Clover perfectly support Snow leopard on HD 3000 since 10.6.7-10.6.8
    I tested it on two sandy bridge laptop.
    You have to use exact setting for SL.
    No need extra iGPU setting. Just check inject Intel option. And spacebar on your snow usb and check "-f" option then can pass CPUPM panic.


    나의 LG-F800S 의 Tapatalk에서 보냄


  7. Like
    kosakgroove reacted to Allan in We are back! With a new style and many others features.   
    We are so exciting about this new update. Now we implement all the new features in our Forum.
    So, if the Forum are a bit slow, please be patience, our Admins are doing a great and hard (very hard) job to keep the Forum amazing as always.


    View full article
  8. Like
    kosakgroove got a reaction from sbonkov in Lenovo ThinkPad L420 macOS Sierra   
    Lenovo Thinkpad L420 macOS Sierra Guide
     
    Thanks to the good old mighty Clover Bootloader, we have so much better support for laptops and different alternative hardware. I have made a few HackBook Pros but without a shadow of a doubt this Lenovo L420 is almost a perfect Apple computer. Even better in some aspects if you ask me about it.
     
    Lenovo theme on Clover in my L420
     


     
    I will be quoting a good fellow of the community, tluck , who made an awesome guide for his Lenovo T420, and he also helped me achieve better functionality. Regards to you my friend.
     
    I have already written a guide for installing and perfecting Mac OS X El Capitan on this PC, but I wanted to see how good Sierra could run, and OH BOY it is running like a charm. Here are the specs of the machine. In my case I added 8GB of RAM.
     

     
    I understand this is not a highly popular laptop outside corporations, I don’t even know if it was ever sold to the general public, so I guess this post will help me know that hahah anyway a friend of mine gave me two of them, one with i5 another with i3. This tutorial applies to any of those models. It should also apply to older versions of Mac OS X all the way until Snow Leopard (little modifications required as well as appropriate kexts)
     
     
    What is working
    WiFi , Bluetooth, Airdrop (Wifi replaced with Atheros AR9285)
    Full QE/CI acceleration with integrated Intel HD3000 graphics
    Trackpad with 1 finger , 2 finger and 3 finger gestures
    keyboard as well as function keys (brightness, volume)
    Battery percentage
    Sleep, Shutdown and Reboot
    Sound working on ALC269 mobile
    DVD Drive
    DisplayPort audio and video
    VGA out
    USB 3.0 ExpressCard (Renesas)
    iMessage and Facetime
    Recovery Partition
     
     
    What is not working
    You tell me
     
     
    1. Creating the install media
     
    The best way to install macOS to our Hackintosh is definitely to create a USB with the latest version of macOS Sierra (10.12.5 as of writing this guide) and to use the createinstallmedia method. For that you will need either a Macintosh computer, an existing Hackintosh or a Virtual Machine running OS X 10.6 or above.
     
    This way you will end up with a clean vanilla install , and with a recovery partition capable of booting and capable of using FindMyMac / FindMyiPhone
    I won’t go into too much details about this since this is one of the first things you should know when attempting to Hackintosh.
     
    This procedure is for a new macOS installation using a USB Installer.
    Download macOS from the App Store - it is freely available
    One can build a macOS USB installer with the standard macOS installer app downloaded from the "App Store". Download and extract the zip file from this post to build a Clover-based USB installer. This same bundle will be installed later on HD.
     
    Install macOS to a GPT formatted disk using the standard Install macOS.app downloaded from the Apple Store.
    Create a macOS USB installer
    Partition an 8GB (or larger) USB formatted with GUID Partition Table (GPT)
    - use the Partition Options... menu to change from MBR to GPT
    - Name the partition USB - the install process will rename it, but it matches the script below.
    - Use format: Mac OS Extended (Journaled) (formerly OS X Extended)
     
    Note: if you have a larger USB (say 16GB) you can split into 2 8GB partitions, so you can have 10.12 and 10.11 installers on the same USB key
     
    Run this command to copy the bits to the USB key:
    Note: if using an older version of macOS, replace with the corresponding app name.
     
     

    sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction 2. Install bootloader (Clover) to install media
     
    You should select your USB in the Clover installer and then hit “Customize”
    Select the next options:
     
    Install Clover in the ESP
    Install boot0ss in MBR
    Clover EFI 64bits SATA
    CSMVideoDxe-64
    EmuVariableUEFI-64
    OsxAptioFix2Drv-64
    Fat64
     
     
     
    3. Configuring the bootloader
     
    After installation is complete, the EFI partition we want to configure will already be mounted, so we proceed to open it and do the following
    Install HFSPlus.efi and NTFS.efi in drivers64UEFI folder and remove VboxHFS.efi. Because this PC doesn’t have any UEFI you should also install HFSPlus.efi and NTFS.efi to the drivers64 folder.
     
    Open the folder /EFI/Clover/kexts and delete all the folders starting by 10 and leave only the “other” folderIn the above mentioned “other” folder.
    Place the kexts that I will quote next (you can download the ones attached to the post, but I always recommend the latest versions) :
     
    ACPIBatteryManager.kext
    AppleALC.kext
    CodecCommander.kext
    FakePCIID_XHCIMux.kext
    FakePCIID.kext
    FakeSMC, HWInfo, IntelCPUMonitor (HwSensors3 from Slice)
    GenericUSBXHCI.kext (only if you use an USB3.0 ExpressCard)
    RealtekRTL8111.kext
    USBInjectAll.kext
    VoodooPS2Controller.kext (tluck's version)
     
    L420 kextpack.zip
     
     
    Notes on VoodooPS2 (tluck)
     
    VoodooPS2Controller.kext (v1.8.25f) - New custom T420 version of RehabMans's PS2 Keyboad/TouchPad/TrackPoint
    - This version has extra T420 definitions in the Info.plist files.
    Tweaks to help with TrackPoint on startup
    Jakibaki's cut/paste fix for middle button + scrolling fix.
    if MiddeMouseScroll is set to true scrolling TrackPoint works.
    Sierra PrefPane integration and other fixes (smoothness and caps-lock) by usr-sse2 (see this post on GitHub)
    Modified Info.plist(s) to add LENOVO T420 override settings.
    ​TrackPad pressure FingerZ value set to 47 - up from default of 30 - change to suite your touch in VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2TrackPad.kext/Contents/Info.plist
    Various Default overrides such as MouseMultiplier X and Y for TrackPoint.
    Note: VoodooPS2Controller keyboard mappings have 3 or 4 finger swipe left/right to back/forward configured for Safari browser vs space swipe
    Optional Key Map: This map works in El Capitan. Since the NX keys are in a state of flux for Sierra - it is disabled by default now. If you would want to use this new map, edit the Info.plist file and rename the T420 key map entry. The F1-F15 key mappings are VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.key.plist:
    F1 - LCD Brightness Down
    F2 - LCD Brightness Up
    F3 - Mission Control App Selector
    F4 - Launchpad
    F5 -
    F6 -
    F7 - Mirror Displays
    F8 - Disable/Enable TouchPad
    F9 -
    F10 - Mute Volume
    F11 - Volume Down
    F12 - Volume Up
    PrtSc - Scan Previous Track
    ScrLck - iTunes Play/Pause
    Pause - Scan Next Track
    Insert - Eject
     
     
     
    After all the kexts are in the correct folder you should tweak your config.plist as follows, I recommend using a proper plist editor , the best is Xcode.
     
     
    config.plist.zip
     
    Lenovo mostly whitelist the Wifi cards on their laptops (and some desktops) so you will have to use a custom BIOS for this. There is one here luckily.
     
    If you need me to explain how to flash it then you shouldn’t really be Hackintoshing in the first place.
    After you have flashed the BIOS make sure you set the SATA controller to AHCI. You should be able to boot from the Clover USB and install Mac OS X
    Remember to use a GUID partition scheme for the drive you will use. Recovery partition should be generated automatically by the OS X installer.
     
    4. Hopefully you boot and get to install macOS well.
    Boot Clover from USB Installer and select Install macOS
    Install the OS on your GPT disk on the macOS partition.
     
    Make sure the drive is formatted using:
    Scheme: GUID Partition Map (GPT)
    Partition Name: macOS
    Format: macOS Extended (Journaled)
     
    Dual BOOT tip:
    If you plan to dual boot Windows from the same HD - DO NOT make the 2nd partition NTFS or ExFAT with the Disk Utility app.
    Make them both "Mac OS Extended (Journaled)"
    Size the 2 partitions appropriately - but later you will delete/reformat the 2nd partition for Windows.
     
     
    Click through GUI Install menus and wait for the installation to fully complete - on a spinning disk takes about 30-45 minutes.
    Follow these Notes and Tips:
    When the installer screens shows: "To pair a Bluetooth keyboard, turn it on and wait for your computer to connect to it.”
    Hit the Space Bar to get past this step.
     
    When installer seems to hang at: "About a second remaining”
    Don’t Panic, this "second" may take about 10 minutes or more to finish.
    Just wait for the installer to reboot the computer and continue the installation.
    The whole install process takes about 1 hour to complete.
     
    On the first boot from the HD when asked: "How Do You Connect?”
    Select: “My computer does not connect to the Internet”
    You can set up the network later after installation of the NIC driver kext.
    Your Intel WiFi will not work. Period.
     
     
    5. Next you have to install the boot loader to the HDD
    You should select your USB in the Clover installer and then hit “Customize”
    Select the next options:
     
    Install Clover in the ESP
    Install boot0ss in MBR
    Clover EFI 64bits SATA
    CSMVideoDxe-64
    EmuVariableUEFI-64
    OsxAptioFix2Drv-64
    Fat64
    Install all RC scripts to target partition
     
    After installation is complete, the EFI partition we want to configure will already be mounted, so we proceed to open it and do the following
    Again we install HFSPlus.efi and NTFS.efi in drivers64UEFI folder and remove VboxHFS.efi. Because this PC doesn’t have any UEFI you should also install HFSPlus.efi and NTFS.efi to the drivers64 folder. Also copy your ACPI files and config.plist at the right places.
     
    6. In order to get everything working properly , follow these guidelines for ACPI tables patching.
    Firstly, press F4 at Clover GUI in order to dump the native ACPI tables. You will most probably get a crash, a red screen full of weird black numbers and strange symbols, do not worry, just force shutdown. At the next boot if you look in /EFI/Clover/ACPI/origin you should have a bunch of files.
    After getting MaciASL and acpica tools from RehabMan (always updated) and installing them, and adding rehabman’s laptop dsdt patch repository, which is this:
     
    https://github.com/RehabMan/Laptop-DSDT-Patch
     
     
    Delete all files except DSDT, SSDT-0 and SSDT-1 in /EFI/Clover/ACPI/origin
     
    You should decompile the DSDT , SSDT-0 and SSDT-1 using the following commands (make sure you create a .txt document containing the following external references and place it in the same place where the ACPI files are)
     

    External(MDBG, MethodObj, 1)External(_GPE.MMTB, MethodObj, 0)External(_SB.PCI0.LPCB.H_EC.ECWT, MethodObj, 2)External(_SB.PCI0.LPCB.H_EC.ECRD, MethodObj, 1)External(_SB.PCI0.LPCB.H_EC.ECMD, MethodObj, 1)External(_SB.PCI0.PEG0.PEGP.SGPO, MethodObj, 2)External(_SB.PCI0.GFX0.DD02._BCM, MethodObj, 1)External(_SB.PCI0.SAT0.SDSM, MethodObj, 4)External(_GPE.VHOV, MethodObj, 3)External(_SB.PCI0.XHC.RHUB.TPLD, MethodObj, 2) Then do: 

    cd /path/to/your/filesiasl -da -dl -fe refs.txt *.aml After obtaining the .dsl files you should open them and check for errors.The only error you will find will be in one of the SSDTs and it can be fixed using the Remove _PSS placeholders patch to fix that SSDT that only contains info about the CPU and is full of “Package (0x06)”
    When your files are nice and clean and in .dsl format you can happily apply the following patches to DSDT
     
     
    Use the patch “Rename GFX0 to IGPU”
    Use the patch “Rename B0D3 to HDAU”
    Use the patch "DTGP" (easy to find with our buddy Google)
    Use the patch "Fix _WAK Arg0 v2"
    Use the patch "HPET Fix"
    Use the patch "SMBUS Fix"
    Use the patch "IRQ Fix"
    Use the patch "RTC Fix"
    Use the patch "OS Check Fix"
    Use the patch "Fix Mutex with non-zero SyncLevel"
    Use the patch "Add IMEI"
    Use the patch “6 Series USB”
    Use the patch "USB PRW 0x6D"
    Use the patch "Audio Layout id 3"
    Use the patch "L420 battery patch"
     
    For Brightness keys (Q14 and Q15 in DSDT)
     
    In Method _Q14 add at the end:
     

    Notify (PS2K, 0x0206)Notify (PS2K, 0x0286) In Method _Q15 add at the end:
     

    Notify (PS2K, 0x0205)Notify (PS2K, 0x0285) If you are lost with ACPI here is how you should place the code: 

     
    Little bonus, since the ThinkVantage key does absolutely nothing, I patched the DSDT so that when you hit that key, the fans will remain at 100% speed all the time. Hit it again and they go back to auto mode Cool Right? Replace your _Q19 method with this (credits to tluck)
     

    Method (_Q19, 0, NotSerialized) // _Qxx: EC Query { Name (FANS, One) Store (HFSP, FANS) XOr (FANS, 0x80, Local0) If (Local0) { Store (0x80, HFSP) } Else { Store (0x07, HFSP) } }  
     
    After all the ACPI tables are properly patched save them all and compile your tables
     

    cd /path/to/patched/tablesiasl *.dsl After getting the resulting patched aml files, place them in /EFI/Clover/ACPI/patched for Clover to load itFinally you will need to generate an SSDT using ssdtPRGen.sh
     
    Note:
    - If you want working brightness in Sierra make sure to download my ACPI files pack and use the provided SSDT-PNLF
    - Also if you use Atheros AR9285 like me you can use the attached SSDT-2 and see if it works, otherwise provide here your DSDT
     
     
    7. After you have your DSDT, SSDT-0, SSDT-1 and SSDT (the one generated by the script) , along with SSDT-PNLF and SSDT-2 if you need them, place them all together in /EFI/Clover/ACPI/patched and in the ACPI section of your config.plist make sure to "Drop OEM" tables and set the "Sorted Order"
     
     
    Overall I would say this laptop is quite perfect for a Hackintosh , I use it for a few months and I love it, hope you do too.
     
    This Hack is functioning almost 100% in Mac OS X and certainly it performs so much better than in Windows
    Enjoy our fully functional Hack
     

     
    General Notes and Random Fixes
     
    The stock Intel WiFi will not work. The common approach is use a modded BIOS and replace the WiFi with a Broadcom or Atheros chip (I went for AR9285).
     
    Enable (turn on) Bluetooth so the green light is showing on the LCD bezel (do from Windows or Ubuntu).
    Also make sure the side switch is set to green too!
    When using external headphones or speakers, may need to plug and unplug 1 or 2 times for recognition.
     
    iMessage/Facetime may not register without overriding the Clover generated values with real ROM and MLB values from a real Apple Mac. Search thread for ROM to get more info.
    ​Clover can possibly generate proper values and inject using RtVariables - use mac address -- see wiki for details.
     
     
    Hibernation - Use OsxAptioFix2Drv-64.efi instead of OsxAptioFixDrv-64.efi UEFI driver for restart from hibernation. Suggested settings if you don't want or use hibernation:
    sudo pmset -a hibernatemode 0
    rm /var/vm/sleepimage
    if you want hibernation, then set hibernate mode to 7 (mode 7 is like mode 3 but without encryption) - may need to manually edit this value into the plist file now.
    sudo pmset -a hibernatemode 7
    Note: Booting up from the hibernated image may have jumbled or blank LCD until you do a sleep/wake cycle to reset the LCD.
     
    Add boot option darkwake=0 if you would like to disable power nap and have the lid wake the gfx instead of hitting extra key.
     
    TrackPoint may not be responsive on startup (random occurance) - a sleep/wake cycle should revive it.
     
     
     
    Here are my patched tables if you need them
    L420 patched ACPI Sierra.zip
  9. Like
    kosakgroove reacted to cola4an in Lenovo ThinkPad L420 macOS Sierra   
    Hi kosakgroove,
     
    thanks for your answer, i will test it in the Christmas Holidays......
     
    greetz
  10. Like
    kosakgroove got a reaction from cola4an in Lenovo ThinkPad L420 macOS Sierra   
    Hey buddy, please give us some info on the machine, from a Linux Live USB,
    things like lshw , lspci -v would be useful! Also, my ACPI tables may not be working for you, since there are always variations in the machine, so trial and error with the ACPI patching and read the guide well!
  11. Like
    kosakgroove reacted to MaLd0n in Wake from sleep Reboot El Capitan EP45-UD3LR   
    u can add it in Low Pin Count, in a old Gigabytes mobos is a PX40 device 
    OperationRegion (LPC0, PCI_Config, 0xA4, 0x02) Field (LPC0, ByteAcc, NoLock, Preserve) { AG3E, 1 } and it in Prepare To Sleep
    Store (Zero, \_SB.PCI0.LPCB.AG3E) my old DSDT Mobo GA P35-DS3
    MaLd0n DSDT.aml.zip
  12. Like
    kosakgroove got a reaction from chris1111 in Show Your OS X Desktop!   
    Rocking my recently acquired MBA for all my development needs, with an Apple SSD
     

     

  13. Like
    kosakgroove got a reaction from chris1111 in Show Your OS X Desktop!   
    Rocking my recently acquired MBA for all my development needs, with an Apple SSD
     

     

  14. Like
    kosakgroove got a reaction from vandroiy2012 in Wake from sleep Reboot El Capitan EP45-UD3LR   
    Thanks to vandroiy2012 my PowerHack as I like to call it is completely working!!!
     
     

     
     
    I will make a post of the build! Less than 200€ hihih and works superbly now
     
     

     
    Thanks so much

  15. Like
    kosakgroove reacted to vandroiy2012 in Wake from sleep Reboot El Capitan EP45-UD3LR   
    Here is the fix http://www.insanelymac.com/forum/topic/329624-need-cmos-reset-after-sleep-only-after-login/?p=2534645
  16. Like
    kosakgroove reacted to WarDoc in Forum Dark theme   
  17. Like
    kosakgroove got a reaction from Enroidv7 in ASUS X550LDV Mac OS X Guide (UEFI-Clover)   
    With the purpose of running the beloved Apple Mac OS X on our Intel ASUS laptop I am writing this guide to share my experience and knowledge about this Hackintosh. This tutorial applies to running versions between 10.9 and 10.11.6, focusing specially in El Capitan.
     

     
    This method applies also for Sierra but at the moment my WiFi Card doesn't work well with 10.12 so I chose to remain in a stable Mac OS X
    I have 99% functionality:
     
    What Works  :
    WiFi, Bluetooth, Airdrop, HandOff, FindMyMac (WiFi card has to be replaced, I put a BCM94352HMB)
    Full QE/CI acceleration with integrated HD4400 graphics
    Trackpad with 1finger, 2finger, 3finger and 4finger gestures
    Keyboard (Perfect with Volume, Brightness, Play/Pause, Numpad working)
    Battery Percentage
    Sleep, Shutdown and Reboot
    Internal Speakers, Internal Microphone, Headphone Jack, HDMI audio
    DVD Drive
    HDMI audio and video
    VGA out
    iMessage and FaceTime
    Recovery Partition
     
    What is not working
    Internal SD Card Reader
     
    When you install Clover Bootloader to your USB media or HDD you should select the following options:
    - Install for UEFI booting only
    - Install Clover in the ESP
    - Drivers64UEFI (Fat-64, OSxAptioFix2Drv)
     
    After installation is complete, the EFI partition we want to configure will already be mounted, so we proceed to open it and do the following
    Install HFSPlus.efi and NTFS.efi in drivers64UEFI folder and remove VboxHFS.efi
    Open the folder /EFI/Clover/kexts and delete all the folders starting by 10 and leave only the “other” folder
     
    In the above mentioned “other” folder place the kexts that I will quote next, please note that the kexts marked in red are the absolute necessary ones for booting Mac OS X installer , the rest should only be installed afterwards, after having Mac OS X installed to your hard drive and directly to /System/Library/Extensions :
     
    ACPIBatteryManager.kext
    AppleALC.kext
    ApplePS2SmartTouchpad.kext
    BrcmFirmwareRepo.kext
    BrcmPatchRAM (Mavericks) or BrcmPatchRAM2 (Yosemite or later)
    CodecCommander.kext
    DisableTurboBoostBattery.kext
    FakePCIID_XHCIMux.kext (Only for El Capitan)
    FakePCIID_IntelHDMIaudio.kext
    FakePCIID_BroadcomWiFI.kext  (makes my BCM94352HMB work)
    FakePCIID_IntelHDGraphics.kext
    FakePCIID.kext
    FakeSMC, HWInfo, IntelCPUMonitor (HwSensors3 from Slice)
    IntelBacklight.kext
    RealtekRTL8111.kext
    USBInjectAll.kext (Only for El Capitan)
     
    After all the kexts necessary are in the correct folder, proceed to mimic my config.plist
    Note that the Kext patches included only work for El Capitan. If you want older version support, post here and I can help.
    I recommend using Clover Configurator App
     
    config.plist.zip
     
    For your SMBIOS choose MacbookPro11,2 and shake those serial numbers to really get a genuine one.
     
    In order to get everything working properly , follow these guidelines for ACPI tables patching. Firstly, press F4 at Clover GUI in order to dump the native ACPI tables. You will most probably get a crash, a red screen full of weird black numbers and strange symbols, do not worry, just force shutdown. At the next boot if you look in /EFI/Clover/ACPI/origin in your USB you should have a bunch of files.
    After getting MaciASL and acpica tools from RehabMan (always updated) and installing them, and adding rehabman’s laptop dsdt patch repository, which is this:
    https://github.com/R...ptop-DSDT-Patch
     
    I recommend patching these tables before installing Mac OS X in order to have a better user experience and better functionality as well as a cleaner and smoother install. Your computer may not even reach the installer since we have no way of disabling our discrete NVIDIA Geforce 820m without getting our hands dirty in DSDT patches.
     
    Delete all files that don’t start with DSDT or SSDT-
    If you have an SSDT with an x just delete it because it is dynamically loaded and so does not need our attention.
     
    Place the files in our interest in a folder and:
    cd /path/to/a/folder  iasl -da -dl *.aml After obtaining the .dsl files you should open them and check for errors.
    In the latest BIOS we have the following errors:
     
    DSDT- We will find 4 errors
     

     
    The parse op Zero errors can be fixed by deleting all the “Zero” you find in the conflicting place
    The remaining two errors are fixed by applying the ADBG fix from RehabMan repo
     
    SSDT-1- We find many errors and all can be fixed by applying the patch
    “Remove _PSS placeholders”
     
     
    SSDT-12- We find an error related to a specific sector of a cryptic DOS device, we can safely delete these following lines from the SSDT
     

     
    Now that all our ACPI tables are nice and clean we can proceed to patching
     
    First of all, open all the tables at the same time and hit Command + F to bring up the Find Replace dialog box and
    Find:GFX0 and Replace it with: IGPU
    Find:B0D3 and Replace it with HDAU
    Do this in all the tables, so the renames are the same in all your tables
     
    When that is done, apply the following patches to the DSDT:
     
    Use the patch "DTGP" (you can easily find it with our friend Google )
    Use the patch "Fix _WAK Arg0 v2"
    Use the patch "HPET Fix"
    Use the patch "SMBUS Fix"
    Use the patch "IRQ Fix"
    Use the patch "RTC Fix"
    Use the patch "OS Check Fix Windows 8”
    Use the patch "Add IMEI" 
    Use the patch “7-8 Series USB”
    Use the patch "USB PRW 0x0D"
    Use the patch "Igpu Brightness Fix"
    Use the patch "Audio Layout id 3"
     
    When you have applied the Audio Layout Patch just 
    Find: layout and it should show the only result, then make that part look like mine, so that you can use AppleALC for native on the fly audio
     

     
    If you want HDMI audio you should open SSDT-10 and find layout again and make it look like the one you just edited in DSDT, we do this because we want layout-id 29 instead of layout-id 3
    For battery percentage you should use the ASUS N55SL/Vivobook patch
     
    Finally when you did all that you should follow RehabMan’s tutorial for Disabling Discrete Graphics Cards, on a web which I am not allowed to mention. This will give you much more battery life and a lot less heat. You should read it properly and you will notice there is close to no difference between his example and our laptop so it will be easier than it looks like. Make sure you also use the patch he posts to fix shutdown and sleep when our NVIDIA is disabled. 
     
    After all the ACPI tables are properly patched save them all and
    cd /path/to/where/your/patched/tables/are Then delete all the original aml files
    And then
    iasl *.dsl After getting the resulting patched aml files, place them in /EFI/Clover/ACPI/patched for Clover to load it
    Place them all together in /EFI/Clover/ACPI/patched and in the ACPI section of your config.plist make sure to "Drop OEM" tables and set the "Sorted Order" as I did in the attached config.plist.
     
    Before installing Mac OS X make sure in your BIOS you have legacy mode disabled and you have secure boot and fast boot also disabled, so that Clover works well. Also make sure the controller is set to AHCI mode. Remember to use a GUID partition table on your Hard Drive and if you plan to dual boot just create two Mac OS Extended Journaled partitions, don't create any Fat partition using Disk Utility cause that will leave you unable to install Windows in UEFI mode.
     
     
    Post-Install 
     
    Finally you will need to generate an SSDT using ssdtPRGen.sh (this can only be done when you have installed Mac OS X)
     
    https://github.com/P...ha/ssdtPRGen.sh
     
    Add it to the Sorted Order and you are done
    Make sure to set the hibernate mode to either 0 or 2 .
     ​You can copy the colour profiles from ASUS Splendid Utility and use them in Mac OS X, but for my eyes, I prefer the default LCD one 
     
    This is the first fully functional Hackintosh I ever accomplished and it took me a few months of learning… 
    I am using Mac OS X for about two or more years in this Hack and I am still in love like the very first boot hihihi    
    This is almost the perfect HackBook and has worked since Mountain Lion until now 
     Hope you enjoyed! 
  18. Like
    kosakgroove reacted to fantomas in Help me upgrade my Hackint0sh   
    If I understand well, you still do want to keep your LGA 775 motherboard? If you do then all quad Q96xx or its equivalent in Xeon E54xx, as long as they have sse4.1 instructions support (macOS High Sierra).
     
    About your GPU, all PCIE-2.0 supported GPU, maybe some PCIE-3.0 GPU's but they performances will be downgraded, due to the PCIE-2.0 limits. In any case, your power supply should be powerful enough for use in the best conditions.
  19. Like
    kosakgroove got a reaction from ellaosx in FileVault 2   
    On my way to full disk encryption !
     

     

  20. Like
    kosakgroove got a reaction from cola4an in Lenovo ThinkPad L420 macOS Sierra   
    Hi mate, this looks to me as if your FakeSMC is not loading properly or your AHCI is not loading..
    I am very busy at the moment so i can’t really help but check other versions of FakeSMc and also try to use FixSATA in Clover menu
    Regards
  21. Like
    kosakgroove got a reaction from cola4an in [Guide] Lenovo Thinkpad L420 with El Capitan   
    I am working on a new guide for our beloved Thinkpad L420 with macOS Sierra, which is running nicer than El Capitan for me and with less bugs. Stay tuned friend
  22. Like
    kosakgroove reacted to Hervé in Steganography in Linux   
    You've only just discovered this stuff? 'just took a course or something? 
      In our modern (but more and more ancient) computerised world, this sort of things has been around for (a few...) years and there must be thousands of tuts and video recordings or referencing on the Internet about this, including about steghide! Example: https://www.maketecheasier.com/hide-confidential-data-inside-images-in-linux/
     
    Under OS X/macOS a simple file concatenation line command will achieve this. Example as explained here:
    you have a png picture file called Picture.png you have a text file called Secret_stuff.txt you can hide the text file inside a new picture file with Terminal command: cat Picture.png Secret_stuff.txt > NewPix.png you will obtain what will look like a mirror copy of your original png picture file that you can open & display on screen through doubleclick Here's a video tut from a few years ago for Windows which is very similar to yours (a simple binary mode copy command does the trick there).

     
    For Mac, there indeed used to be something called iSteg: http://www.hanynet.com/isteg/
     
    As for steghide, 'not the freshest thing around either (no offense to its author meant)!   e.g.: https://linuxfr.org/news/steghide-en-français from... 2002! Windows was XP and Mac OS X was Puma on Power Macintosh in those days.
     
    In fact, most of the literature on steghide, including your post, doesn't entirely describe what it is and/or give credits to its author, Stefan Helz. The program might be open source and 15yr old but, nevertheless, it's not a built-in Linux Terminal command as kind of often hinted, probably because it's directly available as a downloadable package to most Linux distros (through apt-get install command)... Like many before you, you've listed and described the syntax of the steghide command without even referring to the (on-line) user manual it's literally copied from. C'est la vie...

     
    I'm sure you meant well with your tutorial but you should always care to quote your sources, give due credits and not sail too late after the tide (15years is a tad late).  Maybe teachers still use this in their classrooms.
    http://steghide.sourceforge.net
    https://sourceforge.net/projects/steghide/
  23. Like
    kosakgroove got a reaction from Cyberdevs in Steganography in Linux   
    Hi fellows! I bring a tutorial about steganography, made by myself, the art of concealing things in plain sight! (text files within pictures or sound files)
     
    I think this should apply to Mac OS X, there you can use a GUI program called "Steg"
    This tut is for Linux only!
     

     
    It is a very straightforward process,
    Hope you learn howto do it and put it to good use hahhaha
  24. Like
    kosakgroove got a reaction from Cyberdevs in Steganography in Linux   
    Hi fellows! I bring a tutorial about steganography, made by myself, the art of concealing things in plain sight! (text files within pictures or sound files)
     
    I think this should apply to Mac OS X, there you can use a GUI program called "Steg"
    This tut is for Linux only!
     

     
    It is a very straightforward process,
    Hope you learn howto do it and put it to good use hahhaha
  25. Like
    kosakgroove reacted to Intel8051 in ASUS X550LDV Mac OS X Guide (UEFI-Clover)   
    Many thanks for the tutorial. Very easy to understand all the steps. I currently installed Mac OS X Sierra 10.12.6 without any problems on the Asus X550ln Notebook.
    Intel Core i5 - 4210U
    Intel HD 4400 1536 MB - 1920X1080
    Nvidia Geforce 840M
     
    In fact the only problem I was having was some graphic glitches. The problem has been solved by adding the following code in ¨KextsToPatch¨:
    AppleIntelFramebufferAzul: (Enable 9MB cursor bytes, 0x0a260006) Find (Hex): 0600260a 01030303 00000002 0000300100006000 Replace (Hex): 0600260a 01030303 00000002 0000300100009000   Currently I was able to install High Sierra Beta 1, 2 and 3 without problems. However from beta 4 the graphical interface is not initialized.
×