Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC bootloader support #20

Open
liuyishengalan opened this issue Dec 2, 2019 · 20 comments
Open

OC bootloader support #20

liuyishengalan opened this issue Dec 2, 2019 · 20 comments

Comments

@liuyishengalan
Copy link

Now, I am working on OC bootloader, as I added the patch in the config.plist, the original patch didn't work. Any suggestions on it?

@leo-labs
Copy link
Member

leo-labs commented Dec 2, 2019

Awesome that you are working on an OC bootloader.
Having a look at that patch, I think I made an error. Not sure though, why it still works in clover:
I assume that the value of Name (that is com.apple.driver.AppleSMBusController right now) is the kext where the patch will be applied to. This should probably be org.rehabman.voodoo.driver.PS2Controller.

How are you applying this patch in OC?

@leo-labs
Copy link
Member

leo-labs commented Dec 2, 2019

The patch is used to remove the following line from Info.plist in VoodooPS2Controller.kext: https://github.com/leo-labs/macOS-ThinkPad-T480s/blob/master/EFI/CLOVER/backup/VoodooPS2Controller.kext/Contents/Info.plist#L65

@leo-labs
Copy link
Member

Maybe this helps: #25 (comment)

@liuyishengalan
Copy link
Author

liuyishengalan commented Dec 16, 2019 via email

@gokula
Copy link

gokula commented Feb 8, 2020

Hi,
have you managed to get it working using OC?
I can see "SMBus is busy" messages and the touchpad is not initialized. If I use my version of the driver it works using OC.

I have been going through the code trying to find the issue but found nothing.

Is that means to move those patches targets to clover? Get Outlook for Androidhttps://aka.ms/ghei36

________________________________ From: Leonard Kleinhans notifications@github.com Sent: Tuesday, December 17, 2019 5:52:06 AM To: leo-labs/VoodooSMBus VoodooSMBus@noreply.github.com Cc: YishengLiu liuyishengalan@hotmail.com; Author author@noreply.github.com Subject: Re: [leo-labs/VoodooSMBus] OC bootloader support (#20) Maybe this helps: #25 (comment)<#25 (comment)> — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#20?email_source=notifications&email_token=AJ43HKQ5WSMQUPCK6H7NBMTQY72ANA5CNFSM4JTZOSRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHAHGMI#issuecomment-566260529>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ43HKUPRVYYFSYT3GB6MYLQY72ANANCNFSM4JTZOSRA.

@leo-labs
Copy link
Member

leo-labs commented May 14, 2020

@1Revenger1 managed to fix the kext in opencore. Can you try if this build works? https://github.com/leo-labs/VoodooSMBus/actions/runs/104251907 (direct link to artifacts: https://github.com/leo-labs/VoodooSMBus/suites/680871322/artifacts/6283179)

@gokula
Copy link

gokula commented May 14, 2020

Hi,
just tested and it does not work for me.

@leo-labs
Copy link
Member

@gokula can you upload your OC config somewhere?

@1Revenger1
Copy link
Contributor

A log from the kext would be nice as well. Could do something like log show --last boot | grep -i voodooinput > ~/Desktop/VoodooLog.txt, which would create a log file on your desktop

@gokula
Copy link

gokula commented May 15, 2020

@leo-labs Here it goes: https://github.com/gokula/T480s-EFI (Note that you need to include the correct PlatformInfo: MLB / SystemSerialNumber / SystemUUID

It includes my version of the kext. I had already included the pci_device->setIOEnable(true);
In my code (in february) it's after the adapter->smba = pci_device->configRead16(ICH_SMB_BASE) & 0xFFFE; line.

With your current version neither the trackpad or keyboard works.

@leo-labs
Copy link
Member

@gokula Can you please also post your log output?

@danny7g
Copy link

danny7g commented Jun 16, 2020

i took a shot at recreating the the plist patches in opencore. opencore doesn't actually allow plist patching, but just blocks the kexts from loading. the patches go in the root -> kernel -> block section. the plist is very rough outside of this section, so i wouldn't use it for anything else.

config.plist.zip

Screen Shot 2020-06-15 at 9 49 28 PM

@liuyishengalan
Copy link
Author

liuyishengalan commented Jun 25, 2020

VoodooSMBus works pretty good in macOS 11.0 beta 1

@liuyishengalan
Copy link
Author

Only one issue: The control panel of trackpad randomly appears in system preference setting
Function is not influenced and multi gesture is supported.

@1Revenger1
Copy link
Contributor

System preference pane is locked behind battery, or atleast was in Catalina and older. I've heard numerous reports of SMCBatteryManager being broken (don't know about ACPIBatteryManager or other battery kexts). So my guess is that is that might be why it's flakey.

Good to hear that it's not completely broken in Big Sur though

@liuyishengalan
Copy link
Author

image
Here it is. After several reboots...

@ioanmoldovan95
Copy link

Hey @liuyishengalan I am trying to make this work on a Thinkpad P53, and saw that you managed to make it working on a P52, could you share how did you do it? Thanks a lot

@aufuk1
Copy link

aufuk1 commented Nov 3, 2020

Hi,
It works on first load. But when I restart the computer, it doesn't work. The second time the computer is powered up, the trackpad does not work at all.

Opencore 0.6.3
HP EliteBook 840 G2
Intel Core i5 5300U

@aufuk1
Copy link

aufuk1 commented Nov 3, 2020

I guess it works because it sees VoodooPS2Trackpad.kext in VoodooPS2Controller.kext, which was previously in memory at the first load. Trackpad not working as it does not see this on second reboot.

@incontrolcloud
Copy link

incontrolcloud commented Dec 12, 2020

Getting errors with Open Core, any ideas? Thanks!

2020-12-11 08:18:55.879657-0800  localhost kernel[0]: (IOHIDFamily) <IOHIDFamily`IOHIDLibUserClient::start(IOService*)> IOHIDLibUserClient:0x1000005a4 start failed
2020-12-11 08:18:55.879676-0800  localhost kernel[0]: (IOHIDFamily) <IOHIDFamily`IOHIDDevice::newUserClientInternal(task*, void*, OSDictionary*, IOUserClient**)> VoodooI2CMT2SimulatorDevice:0x1000002c6 failed to create user client: 0xe00002c7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants