hamish wrote:plympton wrote:
How does one enable the patch?
Thanks!
-Dan
The patches that are applied to the firmware are in the subdirectories "*.img.d" - only the patch files that match "*.patch" are applied when the new image is built.
In your case, this directory is "t430s.G7HT39WW.img.d", and you could enable the battery patch with
Code: Select all
mv t430s.G7HT39WW.img.d/006_battery_validate.patch.OFF t430s.G7HT39WW.img.d/006_battery_validate.patch
You can also disable the keyboard patches by renaming all the other files.
There have been at least two people confirming that the battery patches worked on a couple of laptop versions, but not all hardware, so yes, your test report would be good to have. However, I'm also still a little unsure about the longer term ramifications of enabling it by default - so I'm hedging my bets and waiting to hear if there is any fallout people who have done that patch..
Got it, thanks! The first time I did it, it failed. At first I thought I had to reflash stock (so I did), but then found the problem. Double checked, and there was an extra line in the 006 patch file - something about removing a HEX file. I deleted that in VI, and re-ran it. Rebuilt the stick, reflashed the EC, and good to go - no more error at boot-up! Hooray!
Also, on the Github page, there's a typo (at least on my version of Ubuntu live). This line:
lsblk -d -p -o NAME,SIZE,LABEL
should be
lsblk -d -P -o NAME,SIZE,LABEL (capital P)
Thanks for the tips & hard work!