Contribute
Register

[Guide] Lenovo ThinkPad X240

Status
Not open for further replies.
Hi,

Let me explain, when I use Sniki's original files for my Thinkpad X240, I have an audio 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...

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.
 
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:
It's simple.
In the both scenarios I have same files from Sniki's guide :

- kexts>Other :
AL3232.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
Audio -> NOk

Audio icon in menubar is disabled and when I up and down the volume I see a "no entry" sign. With the alc_fix installation nothing changed.


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

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.
 
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
 

Attachments

  • debug_10349.zip
    2.4 MB · Views: 152
  • debug_24442.zip
    2.5 MB · Views: 136
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

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>
 
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>

Hi RehabMan,

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

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

Regards.
 
Hi RehabMan,

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

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

Regards.

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.
 
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.




The post #1 isn't for Mojave and is old.
I followed all the steps of post #26 which is more recent for Mojave.

Random things are because the USB ports are not OK in the Sniki's Mini Guide.
If you look the debug files of other people in this thread, they don't use the same files in the guide. So they didn't have this problem.

Finally, Sniki has no Thinkpad X240, he used the configuration of his T440 : maybe there is a difference between X240 and T440?

Regards.
 
Refer to the USB guide:
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/



You cannot expect to use a USB port configuration not created for your model laptop.




RehabMan, I prefer to stay with my configuration, it is strange but fully functional. Thank you for your link but I do not want to read all the technical operations of Clover, DSDT injections, ... Sorry but it's too technical! Your interlocutors are not all Americans or bilingual or electronics engineers...

Have a good day/night.

Regards.
 
Status
Not open for further replies.
Back
Top