Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

Battery thresholds on X240 Arch Linux

Linux on ThinkPads
Post Reply
Message
Author
balast
Posts: 2
Joined: Thu Apr 14, 2016 4:28 am
Location: Brno, Czech republic

Battery thresholds on X240 Arch Linux

#1 Post by balast » Thu Apr 14, 2016 4:38 am

I recently installed Arch on my X240 and I was able to resolve most of my issues by myself (and with assistance of wiki).

Now I wanted to change the thresholds of batteries and since it's *40 laptop I can't use tp_smapi.

I have acpi_call and tlp installed.

In /etc/default/tlp I have them set up in this way:

Code: Select all

    # Main / Internal battery (values in %)
    START_CHARGE_THRESH_BAT0=75
    STOP_CHARGE_THRESH_BAT0=90
    # Ultrabay / Slice / Replaceable battery (values in %)
    START_CHARGE_THRESH_BAT1=75
    STOP_CHARGE_THRESH_BAT1=90
and tpacpi_bat returns this

Code: Select all

    # tpacpi-bat -g ST 1 && tpacpi-bat -g SP 1 && tpacpi-bat -g ST 2 && tpacpi-bat -g SP 2
    75 (relative percent)
    90 (relative percent)
    75 (relative percent)
    90 (relative percent)
But still I can't get it to charge the batteries over 80 % (which was the original threshold. (it fluctuates between not charging and charging with zero power)

Any ideas?

EDIT: I solved it. I fully discharged both batteries and now it charges to desired level.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 4 guests