Contribute
Register

[Guide] Lenovo ThinkPad X240

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,716
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
There you go
You cannot use a DefinitionBlock within a DefinitionBlock.
All of the DefinitionBlock, plus open brace, plus matching close brace must be removed from the .dsl files you're trying to #include.

Just as a for example:
Code:
// Override for host defined _OSI to handle "Darwin"...
//DefinitionBlock("", "SSDT", 2, "X240", "_XOSI", 0)
//{
    // All _OSI calls in DSDT are routed to XOSI...
    // As written, this XOSI simulates "Windows 2012" (which is Windows 8)
    // Note: According to ACPI spec, _OSI("Windows") must also return true
    //  Also, it should return true for all previous versions of Windows.
    Method(XOSI, 1)
    {
        // simulation targets
        // source: (google 'Microsoft Windows _OSI')
        //  http://download.microsoft.com/download/7/E/7/7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2/WinACPI_OSI.docx
        Local0 = Package()
        {
            "Windows",              // generic Windows query
            "Windows 2001",         // Windows XP
            "Windows 2001 SP2",     // Windows XP SP2
            //"Windows 2001.1",     // Windows Server 2003
            //"Windows 2001.1 SP1", // Windows Server 2003 SP1
            "Windows 2006",         // Windows Vista
            "Windows 2006 SP1",     // Windows Vista SP1
            "Windows 2006.1",       // Windows Server 2008
            "Windows 2009",         // Windows 7/Windows Server 2008 R2
            "Windows 2012",         // Windows 8/Windows Server 2012
            "Windows 2013",       // Windows 8.1/Windows Server 2012 R2
            "Windows 2015",       // Windows 10/Windows Server TP
        }
        Return (Ones != Match(Local0, MEQ, Arg0, MTR, 0, 0))
    }
//}
//EOF
 
Joined
Sep 16, 2018
Messages
10
Motherboard
Thinkpad X240
CPU
Intel i3 4010u
Graphics
Intel HD 4400
Mac
iMac
Mobile Phone
Android
You cannot use a DefinitionBlock within a DefinitionBlock.
All of the DefinitionBlock, plus open brace, plus matching close brace must be removed from the .dsl files you're trying to #include.

Just as a for example:
Code:
// Override for host defined _OSI to handle "Darwin"...
//DefinitionBlock("", "SSDT", 2, "X240", "_XOSI", 0)
//{
    // All _OSI calls in DSDT are routed to XOSI...
    // As written, this XOSI simulates "Windows 2012" (which is Windows 8)
    // Note: According to ACPI spec, _OSI("Windows") must also return true
    //  Also, it should return true for all previous versions of Windows.
    Method(XOSI, 1)
    {
        // simulation targets
        // source: (google 'Microsoft Windows _OSI')
        //  http://download.microsoft.com/download/7/E/7/7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2/WinACPI_OSI.docx
        Local0 = Package()
        {
            "Windows",              // generic Windows query
            "Windows 2001",         // Windows XP
            "Windows 2001 SP2",     // Windows XP SP2
            //"Windows 2001.1",     // Windows Server 2003
            //"Windows 2001.1 SP1", // Windows Server 2003 SP1
            "Windows 2006",         // Windows Vista
            "Windows 2006 SP1",     // Windows Vista SP1
            "Windows 2006.1",       // Windows Server 2008
            "Windows 2009",         // Windows 7/Windows Server 2008 R2
            "Windows 2012",         // Windows 8/Windows Server 2012
            "Windows 2013",       // Windows 8.1/Windows Server 2012 R2
            "Windows 2015",       // Windows 10/Windows Server TP
        }
        Return (Ones != Match(Local0, MEQ, Arg0, MTR, 0, 0))
    }
//}
//EOF
Thanks it worked

But I still have the same issue with the trackpadit is this kind of touchpad

any ideas ? Thanks
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,716
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Thanks it worked

But I still have the same issue with the trackpad
it is this kind of touchpad

any ideas ? Thanks
Your image link is broken.
What is the issue with the trackpad?
 
Joined
Sep 16, 2018
Messages
10
Motherboard
Thinkpad X240
CPU
Intel i3 4010u
Graphics
Intel HD 4400
Mac
iMac
Mobile Phone
Android
Your image link is broken.
What is the issue with the trackpad?
I updated the image normally, but the trackpad is slow and unresponsive in the middle and the gestures don't work
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,716
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I updated the image normally, but the trackpad is slow and unresponsive in the middle and the gestures don't work
What do you mean by "the middle"?
Which gestures are you referring to?
Did you check your settings in SysPrefs->Trackpad and SysPrefs->Accessibility?

You should also take a look at the *.dsl files (some specific to Thinkpads) at the VoodooPS2Controller github.
Those settings can be integrated into your SSDT-X240.aml (RMCF for _SB.PCI0.LPC.KBD).
 
Joined
Sep 16, 2018
Messages
10
Motherboard
Thinkpad X240
CPU
Intel i3 4010u
Graphics
Intel HD 4400
Mac
iMac
Mobile Phone
Android
What do you mean by "the middle"?
Which gestures are you referring to?
Did you check your settings in SysPrefs->Trackpad and SysPrefs->Accessibility?

You should also take a look at the *.dsl files (some specific to Thinkpads) at the VoodooPS2Controller github.
Those settings can be integrated into your SSDT-X240.aml (RMCF for _SB.PCI0.LPC.KBD).
when I use it avoiding the center it works, but it bugs in the center, the speed is set to 10 in system preferences, and I'm reffering to gestures to switch between desktops or go back in safari. I already tried using thinkpad specific dsl but it makes it even slower.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,716
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
when I use it avoiding the center it works, but it bugs in the center,
What is the result in Windows or Linux?

the speed is set to 10 in system preferences,
No idea what you mean by "10". Use an image to explain.

and I'm reffering to gestures to switch between desktops or go back in safari.
Three finger gestures must be configured in SysPrefs->Keyboard->Shortcuts.

I already tried using thinkpad specific dsl but it makes it even slower.
Consider tweaking the parameters to your liking.
 
Joined
Sep 16, 2018
Messages
10
Motherboard
Thinkpad X240
CPU
Intel i3 4010u
Graphics
Intel HD 4400
Mac
iMac
Mobile Phone
Android
What is the result in Windows or Linux?



No idea what you mean by "10". Use an image to explain.



Three finger gestures must be configured in SysPrefs->Keyboard->Shortcuts.



Consider tweaking the parameters to your liking.
It works fine in Windows 10 and Debian
10 is all the way to the right
The three fingers gestures are options in SysPrefs -> Trackpad -> More Gestures
Thanks a lot for your help so far you've helped me make my hackintosh works at 90%, it is not that troublesome, so I'll eventually figure this out myself, if you could just tell me what to tweak in the files it would be great
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,716
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
The three fingers gestures are options in SysPrefs -> Trackpad -> More Gestures
Hint: You ignored what I wrote in post #47.
 
Joined
Sep 16, 2018
Messages
10
Motherboard
Thinkpad X240
CPU
Intel i3 4010u
Graphics
Intel HD 4400
Mac
iMac
Mobile Phone
Android
Hint: You ignored what I wrote in post #47.
I installed the tluck voodoops2controller kext and the trackpad now works fine, I configured it in the shortcuts, but isn't there any way to emulate real gestures ? It just act as key combinations
 
Top