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
Battery Support not working on SP6 #21
Comments
My bad, I missed the new VoodooSerial kext. |
Good, it should work on SP6 :) |
Sadly it's not working :( After disabling SMCBatteryManager (BigSurface couldn't assign a battery class since it had the same name) I just don't get any battery. |
I will need |
Monterey - I have found something interesting in the kernel logs:
Looks like it's crashing. EDIT: ioreg attached |
Well, you need |
I do have it already in my bootargs :( |
Interesting... I will look at it tomorrow. |
UART driver seems to load fine but logs have to be checked. SurfaceSerialHub failed to load and that is the problem. |
Sadly I don't, this is my only SP6 system. I guess I can just load a Big Sur installer from USB and use the terminal from there? |
Yes, you can, and send me output of |
Sorry for the late reply, creating the installer for Big Sur took far longer than expected. sudo dmesg | grep UART
sudo dmesg | grep Surface
Thanks again, I hope this will help you in finding the issue. |
well, as far as i can tell, there are two problems here. We should first handle the UART one(the last output of grep UART) |
Sure, I will gladly help. Need to sort out triple-booting first (that should be easy) and why Ubuntu hangs and crashes on startup... Once upon in a time (before hackitoshing) I dualbooted with Fedora and the linux-surface kernel, so I know my way around. The LiveCD works well, but the installed Ubuntu hangs. Weird. |
Indeed weird, but Opencore can recognise Linux distro and directly boot them. You can try that |
Once you succeed, go to
compile and boot this kernel |
Since I knew I had done everything right last time, I have just reinstalled Ubuntu and it worked this time. Go figure. I have edited the source and added the required comment, but it seems that it stops here
I know it hasn't got anything strictly to do with BigSurface, but I wonder if you had the same issues and how you solved them? Thanks |
Well, i just followed the guide on linux |
Yeah I am following that :( Maybe it has something to do with the kernel version? I am using 5.13 - which one did you use for testing? |
@therealjbenam Have you succeeded in installing Ubuntu or any Linux distro and compile a custom kernel? |
I have correctly installer Ubuntu but I can't compile surface-kernel as I get a boatload of errors when compiling crypto. If you still have your build, could you please tell me which kernel did you use and which config file did you point the build at? I think there is something going wrong with the merge_config.sh and it's probably lacking some required configuration for the crypto/SSL part. Never had issues when compiling standard kernels in the past, though, first time I see something like that... |
@therealjbenam I have reinstalled Ubuntu, modified the kernel and compile a workable kernel for you, try this. Using |
Thank you very much for this! Installed it successfully and got the data you need. Please let me know if you need anything else.
|
@therealjbenam Try this build |
Thanks.
|
Try Big Sur instead then, really don't know why crashes... |
@Xiashangning here are the Big Sur logs:
And
There's a baudrate warning at the end of the IONVMeController.cpp line... |
@therealjbenam So do you see the battery status in Big Sur? The warning can be ignored. |
As you can see from the log, that is because UART driver spends too much time starting. There is nothing to do with Kext cache |
BigSurface.kext.zip |
The battery icon is not displayed when log in, but it will be displayed after a while |
The battery was lost after the restart |
Can you please boot to windows, wait for a while then clear NVRAM and boot to macOS to get the log again ? |
I have reset NVRAM and it still has a lot of output |
BigSurface.kext.zip |
Sorry for the late response.Replace the last build, it not working
sudo dmesg |grep "UART"
|
BigSurface.kext.zip |
still not working sudo dmesg |grep "SurfaceSerial"
sudo dmesg |grep "UART"
|
@fenglinnet Sorry for the delay, I was busy these days |
I've tried all builds and the output is the same. Also, I found that all builds after the above version didn't work. sudo dmesg |grep "SurfaceSerial"
sudo dmesg |grep "UART"
|
Please boot into Windows once, then try this build, there is no need to clear Nvram |
Go to Windows, replace the last build, reboot with MacOS, still not working sudo dmesg |grep "SurfaceSerial"
sudo dmesg |grep "UART"
Go to Windows again, then go back to MacOS, still output sudo dmesg |grep "SurfaceSerial"
sudo dmesg |grep "UART"
|
Emm, I have rechecked the output that worked before and I have found the issue... |
It's working again! The output is as follows |
Can you also please send me |
I connected to the Surface Hub.The output is as follows |
BigSurface.kext.zip |
sudo dmesg | grep SurfaceBattery
|
And SurfaceSerial ? |
here |
BigSurface.kext.zip |
sudo dmesg | grep SurfaceBattery
sudo dmesg | grep SurfaceSerial |
Ok, so it has much fewer errors than before. A delay of 30 seconds when booting is the maximum amount of time that I am comfortable with. |
Thank you very much! I can safely leave the power supply. 谢谢! |
不客气 :) |
Hi,
I have just installed the latest Kext along with the supplied SSDT.
It seems that it's not working as it's stuck in "charging" mode.
Please let me know if you need anything from me to help you support the SP6.
Thanks,
Best Regards
The text was updated successfully, but these errors were encountered: