加载中...
Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Cancel
6
  • just out of curiosity what's the rationale behind those numbers? Commented Dec 19, 2014 at 17:49
  • 1
    Take a look in /sys/class/power_supply/BAT0/. Or if you're running upower, then upower -i /org/freedesktop/UPower/devices/battery_BAT0 Commented Dec 19, 2014 at 18:09
  • 1
    @1_CR - the motivation probably comes from an article such as this one Commented Dec 19, 2014 at 18:24
  • 1
    @1_CR Having seen a prolonged brawl on this topic before, I'm pretty confident that it is true, the extreme end of charge/discharge shortens the (lithium ion) battery life, and apparently 70% is the ideal level (i.e., if you are going to store it for a while, leave it at that). batteryuniversity.com/learn/article/… Commented Dec 19, 2014 at 18:29
  • 2
    If you are using good shell, like zsh, then you can put battery charge level into right prompt with RPS1=$(acpi|grep -o "[0-9]*%")%. Then you can put red color on it if value is lower then 40 or higher then 80 etc. Commented Dec 19, 2014 at 19:40