[Guide] Lenovo ThinkPad X240

Discussion in 'Sierra Laptop Guides' started by Sniki, Feb 11, 2018.

  1. pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Dec 7, 2018 at 1:40 PM #71
    pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    For those who have an audio issue with ALC3232.kext and the update of Mojave (10.14.2), you must:
    Go to Cover Configurator> Devices> Properties (bottom of the page).
    Change the "layout-id" value :
    PciRoot (0) / Pci (0x1b, 0) -> layout-id = 3
    PciRoot (0) / Pci (0x03,0) -> layout-id = 3
     
  2. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Dec 7, 2018 at 4:30 PM #72
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    You provided no details regarding your problem/bug/issue.
     
  3. pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Dec 7, 2018 at 4:48 PM #73
    pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Hi,

    Let me explain, when I use Sniki's original files for my Thinkpad X240, I have an USB issue. I dunno why but to fix it I need to insert "-uia_ignore_rmcf" in my config.plist.
    Also, with the latest update of Mojave 10.14.2, I need to modify devices poperties (see my previous post).

    With these tricks everything is OK (audio, usb, lan, brigthness, trackpad, battery,...) but I don't know if it's a correct way to fix...
     
    Last edited: Dec 7, 2018 at 10:32 PM
  4. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Dec 7, 2018 at 5:13 PM #74
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    You must provide details on what you mean by "an audio issue".
    And if you have two scenarios to present, one that works, one that doesn't, you must provide PR files that represent both scenarios, such that they can be compared.
     
  5. pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Dec 7, 2018 at 5:54 PM #75
    pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    It's simple.
    In the both scenarios I have same files from Sniki's guide :

    - kexts>Other :
    ALC3232.kext
    CodecCommander.kext
    IntelMausiEthernet.kext
    Lilu.kext
    SMCBatteryManager.kext
    SMCLightSensor.kext
    SMCProcessor.kext
    USBInjectAll.kext
    VirtualSMC.kext
    VoodooPS2Controller.kext
    WhateverGreen.kext

    - ACPI>patched :
    SSDT-X240.aml

    - drivers64UEFI :
    AfpsDriverLoader-64.efi
    AppleImageLoader-64.efi
    AppleUISupport-64.efi
    AptioInputFix-64.efi
    AptioMemory-64.efi
    DataHubDxe-64.efi
    FSInject-64.efi
    HFSPlus.efi
    VirtualSmc.efi

    - drivers64 :
    AfpsDriverLoader-64.efi
    AppleImageLoader-64.efi
    FPSInject-64.efi
    XhciDxe-64.efi

    The difference between the 2 scenarios is in the config.plist file :

    With the original Sniki's config.plist file
    Battery -> Ok
    Brightness -> Ok
    Lan -> Ok
    USB -> Ok -> (CORRECTION : NOk)
    Audio -> NOk (CORRECTION : Ok)

    USB ports are desactived, when I plug my USB stick or my USB mouse nothing happens.
    When I remove ALC3232.kext from "kexts>Other" my USB ports are actived but I have no more audio (it's logic)...

    With the modified Sniki's config.plist file
    All is Ok !

    In Clover Configurator I have added :
    (Boot>Custom Flags) : -uia_ignore_rmcf

    After the Mojave's update (version 10.14.2), the audio is disabled. To fix it, in Clover Configurator I have modified the "layout-id" value from Devices> Properties.
    PciRoot (0) / Pci (0x1b, 0) -> layout-id = 3
    PciRoot (0) / Pci (0x03,0) -> layout-id = 3
     
    Last edited: Dec 7, 2018 at 10:41 PM
  6. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Dec 7, 2018 at 9:19 PM #76
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    You failed to attach PR files for the two scenarios.

    Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
    https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
    Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
     
  7. pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Dec 7, 2018 at 10:58 PM #77
    pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    RehabMan,

    I made a mistake, I apologize...
    It's not with audio that I have a problem but with USB ports.

    Without config.plist modifications (Sniki's version) my USB ports are disabled (the rest is ok).
    To enable my USB ports I need to remove ALC3232.kext from kexts>Other.
    -> Please check "debug_10349.zip"

    With config.plist modifications all is enabled, my USB ports too.
    -> Please check "debug_24442.zip"

    Do I have to leave the changes made on config.plist or not? If not, what should I do to make everything work?

    Thanks for your help

    Regards
     

    Attached Files:

  8. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Dec 8, 2018 at 3:25 PM #78
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Content in Clover/kexts/Other has no effect on your main system partition due to config.plist/SystemParameters/InjectKexts=
    "Detect" and the fact that VirtualSMC.kext is installed.

    The config.plist in each scenario is different in more than just -uia_ignore_rmcf. You're injecting a different layout-id.
    Look:
    Code:
    505c505
    <        <string>-uia_ignore_rmcf nv_disable=1 dart=0 kext-dev-mode=1 -cdfon -igfxnohdmi</string>
    ---
    >        <string>nv_disable=1 dart=0 kext-dev-mode=1 -cdfon -igfxnohdmi</string>
    579c579
    <                <integer>3</integer>
    ---
    >                <integer>1</integer>
    586c586
    <                <integer>3</integer>
    ---
    >                <integer>1</integer>
    
     
  9. pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Dec 8, 2018 at 4:42 PM #79
    pc80286

    pc80286

    Joined:
    Nov 30, 2018
    Messages:
    12
    Motherboard:
    Thinkpad x240
    CPU:
    i5-4300U
    Graphics:
    HD 4400
    Mobile Phone:
    Android, Other
    Hi RehabMan,

    What should I do ? Which scenario should I keep?
    Please, what's this ? :

    579c579
    < <integer>3</integer>
    ---
    > <integer>1</integer>

    Regards.
     
  10. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Dec 8, 2018 at 4:49 PM #80
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    190,225
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Post #1 files have it set to 0. And SSDT-X240.aml is injecting layout-id=28 via HDEF._DSM.

    Perhaps you should follow post #1 as written instead of doing random things.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice