Need help with lenovo thinkpad tp-battery-mode setup
I followed the arch tutorial to set up the program but it does not work. I already set up this program several time in the past but this time it doesn't work.
I use the latest gnome desktop on a lenovo thinkpad laptop.
I downloaded the tp-battery-mode program.
Created a file /etc/tp-battery-mode.conf
I pasted the START_THRESHOLD=85 STOP_THRESHOLD=90 commands in the file
╭─mak@jmak in ~ as 🧙 took 24s
╰─λ sudo ipman -d
Battery protection disabled (charge level 100%)
/usr/bin/ipman: line 82: /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode: No such file or directory
╭─mak@jmak in ~ as 🧙 took 14ms
[🔴] × sudo ipman -e
Battery protection enabled (charge level 55-60%)
/usr/bin/ipman: line 79: /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode: No such file or directory
╭─mak@jmak in ~ as 🧙 took 13ms
[🔴] × sudo ipman -s
cat: '/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode': No such file or directory
Battery protection: DISABLED
Thanks.
I run those commands. It seems it is working now.
In the meantime I got this output.
I don't know it has any significance.
I paste it here just in case.
╭─mak@jmak in ~ as 🧙 took 7s
╰─λ START_THRESHOLD=85
STOP_THRESHOLD=90
fish: Unsupported use of '='. In fish, please use 'set START_THRESHOLD 85'.
tp-battery-mode.service - Set battery charge thresholds using tpacpi-bat
Loaded: loaded (/usr/lib/systemd/system/tp-battery-mode.service; enabled; preset: disabled)
Active: active (exited) since Wed 2022-11-16 21:39:28 EST; 26min ago
Main PID: 508 (code=exited, status=0/SUCCESS)
CPU: 25ms
Nov 16 21:39:28 jmak-20ta004gus systemd[1]: Starting Set battery charge thresholds using tpacpi-bat...
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[535]: modprobe: FATAL: Module acpi_call not found in di>
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[511]: Could not find /proc/acpi/call. Is module acpi_ca>
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[543]: modprobe: FATAL: Module acpi_call not found in di>
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[539]: Could not find /proc/acpi/call. Is module acpi_ca>
Nov 16 21:39:28 jmak-20ta004gus systemd[1]: Finished Set battery charge thresholds using tpacpi-bat.
[🧱] × cat /etc/tp-battery-mode.conf
File: /etc/tp-battery-mode.conf
START_THRESHOLD=85
STOP_THRESHOLD=90
╭─mak@jmak in ~ as 🧙 took 15ms
╰─λ systemctl status tp-battery-mode.service
● tp-battery-mode.service - Set battery charge thresholds using tpacpi-bat
Loaded: loaded (/usr/lib/systemd/system/tp-battery-mode.service; enabled; preset: disabled)
Active: active (exited) since Wed 2022-11-16 21:39:28 EST; 1h 12min ago
Main PID: 508 (code=exited, status=0/SUCCESS)
CPU: 25ms
Nov 16 21:39:28 jmak-20ta004gus systemd[1]: Starting Set battery charge thresholds using tpacpi-bat...
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[535]: modprobe: FATAL: Module acpi_call not found in di>
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[511]: Could not find /proc/acpi/call. Is module acpi_ca>
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[543]: modprobe: FATAL: Module acpi_call not found in di>
Nov 16 21:39:28 jmak-20ta004gus tp-battery-mode[539]: Could not find /proc/acpi/call. Is module acpi_ca>
Nov 16 21:39:28 jmak-20ta004gus systemd[1]: Finished Set battery charge thresholds using tpacpi-bat.
lines 1-12/12 (END)
Do you have acpi_call installed and loaded?
It’s a dependency of tpacpi-bat, so it should be installed.
If you haven’t already, create a file at /etc/modprobe.d/acpicall.conf with this content:
modprobe acpi_call
Reboot to test.
To get complete output of systemctl commands, add parameter --no-pager to the command. Example: