Contribute
Register

[Guide] Lenovo V330-15IKB using Clover UEFI hotpatch

Sniki

Moderator
Joined
Jan 5, 2016
Messages
1,549
Motherboard
Lenovo V330 - 15IKB
CPU
i5-8250U
Graphics
UHD 620 /1920x1080
Mobile Phone
iOS
View attachment 395163

Ultrabay battery arrived today. I have installed the battery and used the second battery SSDT by @RehabMan - all seems good so far. Extra battery detected in HWMonitor and System Profiler seems to recognise as an increased capacity single battery source. Will let you know if I encounter any problems. Judging by the experience of other people using Ultrabay batteries with Lenovo the normal behaviour under windows would be to run down the second battery before then switching to the internal one.
Excellent job, how much extra battery life do you get from it in percentage or overall in hours/minutes
 
Joined
May 27, 2010
Messages
2,422
Motherboard
Zotac Z77-ITX
CPU
i5-2500K
Graphics
HD 3000 + GTX 660
Mac
MacBook Air
Classic Mac
iMac
Mobile Phone
Other
Excellent job, how much extra battery life do you get from it in percentage or overall in hours/minutes
I don't know yet. I may need to do some playing with the SSDT. Having done a check I see that the battery in System Profiler IS actually the Ultrabay battery by itself. The overall indicator is currently reading the Ultrabay battery percentage, while in HW monitor ( as I thought ) it shows the internal battery at 99% and ultra bay percentage the same as the system battery indicator display. That means that unless the percentage indicator goes negative I suspect the computer will sleep itself when the Ultrabay gets to 2% ( or whatever ) without realising the internal battery is fully charged.
I might just need to swap BAT0 and BAT1 in the SSDT. Perhaps then it will show full charge until the ultra bay empties and then start running correctly showing internal battery percentage. For now though I m just going to wait and see what happens when the Ultrabay battery nears discharge. Currently I am about 1.5 hours in and Ultrabay is reading 63%, main battery 99%.
EDIT: I did a quick swap of BAT0 and BAT1 and restarted. Now the system profiler shows just the internal battery ( with status shown as "fully charged" and "Not charging" ( correct), HW monitor shows both ( with ultrabay discharging as expected ) - however overall battery usage icon still shows the ultrabay status rather than the fully charged status of the internal battery. I guess I will just now need to wait it out.....and see whether the system actually believes what the icon is telling it OR if it goes on the basis of the "fully charged" status shown in the system profiler. Maybe the battery indicator will just flick from 2% to 99%??
 
Last edited:

Sniki

Moderator
Joined
Jan 5, 2016
Messages
1,549
Motherboard
Lenovo V330 - 15IKB
CPU
i5-8250U
Graphics
UHD 620 /1920x1080
Mobile Phone
iOS
I don't know yet. I may need to do some playing with the SSDT. Having done a check I see that the battery in System Profiler IS actually the Ultrabay battery by itself. The overall indicator is currently reading the Ultrabay battery percentage, while in HW monitor ( as I thought ) it shows the internal battery at 99% and ultra bay percentage the same as the system battery indicator display. That means that unless the percentage indicator goes negative I suspect the computer will sleep itself when the Ultrabay gets to 2% ( or whatever ) without realising the internal battery is fully charged.
I might just need to swap BAT0 and BAT1 in the SSDT. Perhaps then it will show full charge until the ultra bay empties and then start running correctly showing internal battery percentage. For now though I m just going to wait and see what happens when the Ultrabay battery nears discharge. Currently I am about 1.5 hours in and Ultrabay is reading 63%, main battery 99%.
EDIT: I did a quick swap of BAT0 and BAT1 and restarted. Now the system profiler shows just the internal battery ( with status shown as "fully charged" and "Not charging" ( correct), HW monitor shows both ( with ultrabay discharging as expected ) - however overall battery usage icon still shows the ultrabay status rather than the fully charged status of the internal battery. I guess I will just now need to wait it out.....and see whether the system actually believes what the icon is telling it OR if it goes on the basis of the "fully charged" status shown in the system profiler. Maybe the battery indicator will just flick from 2% to 99%??
You need to change BAT0 and BAT1 notifiers to BATC (merge them) with config.plist /ACPI/DSDT/Patches

Reboot and in clover bootloader menu press F2 to dump new acpi tables.

Upload problem reporting files i will do that for you, i should be free after 2 hours, that change won't take me more than 5 min.

Or if you want to give it a shot by yourself, extract acpi tables create a mixed result listing of DSDT and rename all bat0 and bat1 notifiers to batc, example:
Code:
Notify (BAT1, 0x81)
{....

To:

Notify (BATC, 0x81)
{...
Follow Rehabman advanced acpi patching guide for more informations:
https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/
 
Joined
May 27, 2010
Messages
2,422
Motherboard
Zotac Z77-ITX
CPU
i5-2500K
Graphics
HD 3000 + GTX 660
Mac
MacBook Air
Classic Mac
iMac
Mobile Phone
Other
You need to change BAT0 and BAT1 notifiers to BATC (merge them) with config.plist /ACPI/DSDT/Patches

Reboot and in clover bootloader menu press F2 to dump new acpi tables.

Upload problem reporting files i will do that for you, i should be free after 2 hours, that change won't take me more than 5 min.

Or if you want to give it a shot by yourself, extract acpi tables create a mixed result listing of DSDT and rename all bat0 and bat1 notifiers to batc, example:
Code:
Notify (BAT1, 0x81)
{....

To:

Notify (BATC, 0x81)
{...
Follow Rehabman advanced acpi patching guide for more informations:
https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/
Thanks @Sniki I have been using the SSDT-BATC from Rehabman in ACPI Patched folder ( which introduces Device (BATC) ) so I will hang on until I see if the system does decide to sleep itself and then take it from there and troubleshoot if necessary. The new battery SSDT certainly seems to be being loaded - or at least that is what MaciASL seems to indicate - and the fact that System Profiler switches over which of the two batteries it is reporting on if I switch the labels of BAT0 and BAT1 in that SSDT also seems to show that it is doing something. So it is just wait and see now what does happen....
 
Joined
May 27, 2010
Messages
2,422
Motherboard
Zotac Z77-ITX
CPU
i5-2500K
Graphics
HD 3000 + GTX 660
Mac
MacBook Air
Classic Mac
iMac
Mobile Phone
Other
SO, I went away and then came back after the PC had been on for about 3.5 hours. The PC was asleep, so I woke it on power button and the battery status indicator had switched to the main internal battery. HWMonitor was showing 96% internal, 5% Ultrabay. System profiler shows the internal battery as now discharging correctly.
Only thing ( which I guess I can live with ) is inside the energy saver system preference panel it is alternating between 5% and the internal battery value and the status indicator in the top bar is reading 96% but with the indicator level as red instead of black.
If I get a chance later I'll do the problem reporting files but I'll also leave this running on battery only just to see if anything funky happens.
 
Joined
Jan 16, 2018
Messages
3
Motherboard
Asus Prime Z270-A
CPU
i7-7700K
Graphics
GTX 1060
Mobile Phone
Android
So i recieved the adapter and wifi card... I was taking the back off of the laptop and one of the screws below the dvd drive decided to rip its head off... every other screw was fine (even the exact same screw next to it). I have tried a rubber band and some tin foil... time to get some super glue I guess.
 
Joined
May 27, 2010
Messages
2,422
Motherboard
Zotac Z77-ITX
CPU
i5-2500K
Graphics
HD 3000 + GTX 660
Mac
MacBook Air
Classic Mac
iMac
Mobile Phone
Other
So i recieved the adapter and wifi card... I was taking the back off of the laptop and one of the screws below the dvd drive decided to rip its head off... every other screw was fine (even the exact same screw next to it). I have tried a rubber band and some tin foil... time to get some super glue I guess.
Make sure when you are working inside the case that the first thing you do is disconnect the battery connector - you do not want to risk making any mistakes in there with the battery still connected. So easy to drop a screw or short something by mistake, so be careful. And please don't replace screws with anything except another screw.......doing this stuff is fun, but not if you brick your laptop.
Good luck.
 

Sniki

Moderator
Joined
Jan 5, 2016
Messages
1,549
Motherboard
Lenovo V330 - 15IKB
CPU
i5-8250U
Graphics
UHD 620 /1920x1080
Mobile Phone
iOS
Joined
May 27, 2010
Messages
2,422
Motherboard
Zotac Z77-ITX
CPU
i5-2500K
Graphics
HD 3000 + GTX 660
Mac
MacBook Air
Classic Mac
iMac
Mobile Phone
Other
Pictures of the 2 products bought from these links:
IMG_3668.jpegIMG_3669.jpegIMG_3670.jpegIMG_3671.jpeg

The face plate of course is optional, but it does make it look better and provides an easy way to just pull the battery in and out. I bought a couple of the faceplates to use with both the battery and also a storage module ( which I use for the original Windows 10 HD ).
 
Last edited:
Joined
May 27, 2010
Messages
2,422
Motherboard
Zotac Z77-ITX
CPU
i5-2500K
Graphics
HD 3000 + GTX 660
Mac
MacBook Air
Classic Mac
iMac
Mobile Phone
Other
...and just for completeness if you want a hard disk caddy with faceplate already attached:

 
Top