I've been using the tlp utility for optimizing my battery settings on a ThinkPad 4th generation X1 Carbon running Ubuntu 16.04. I would like to set charging thresholds as follows:
$ sudo tlp setcharge 75 80 Error: ThinkPad extended battery functions not available.
Looking through the documentation it recommends installing the following:
sudo apt-get install tp-smapi-dkms acpi-call-dkms
Which I've already done. It also recommends looking at the recommendations under
+++ ThinkPad Extended Battery Functions tp-smapi = inactive (kernel module 'tp_smapi' load error) tpacpi-bat = inactive (kernel module 'acpi_call' load error)
Perhaps hardware has changed? How can I further diagnose my problem? Are there alternatives that work for the hardware within the 4th gen X1 Carbon?
Secure boot was still active. Going through the instructions below from @linrunner and also removing Secure UEFI Boot were sufficient to resolve the problem. It may have been that things would have been fine with just the secure boot change though.