Questions tagged [battery]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Linux battery drain by Opera

I have never installed Opera on my laptop yet when using powertop to see the battery usage of my laptop several Opera processes are shown all of which have very high battery drain. Using sudo find . -...
  • 1
0 votes
0 answers
14 views

Alternative to cbatticon that displays live percentage, not an icon

I am running JWM as my window manager on Arch. I am looking for as lightweight of a battery monitor I can get that shows the battery percentage live in the system tray. The common recommendation is to ...
  • 101
1 vote
0 answers
22 views

how to choose which battery to discharge from in linux / manjaro?

so im facing an issue with my t440s , it has 2 batteries and it discharges from the second battery till 0 percent and that damages my battery . im on linux/manjaro nad i want to switch to the second ...
  • 11
0 votes
0 answers
61 views

Thinkpad T480 Linux Battery performance

I recently bought a used Thinkpad T480. It has two batteries. New version of this laptop are supposed to have an 17-hour battery life. I don't expect Linux to necessarily match that, but even still I'...
  • 101
0 votes
0 answers
24 views

Accubattery for linux

I use Accubattery [1] app on my Android, to (try) improve phone's battery health over time; I'd like to have a software like that on Linux; Do you know something similar? Basically it a timer that ...
  • 2,967
1 vote
1 answer
177 views

USB C charging PDO or PPS

I have Thunderbolt 4 (and USB 4) USB C ports to charge my laptop. Is it possible to find out if it is getting charged via PDO (power delivery objects) or PPS (programmable power supply)? And what ...
  • 1,520
0 votes
0 answers
42 views

endeavourOS (arch linux) acpi displays not charging

I turned on my pc one day to see the battery not charging. acpi displays it as "not charging" and acpi -a shows the adapter as connected and working. The battery doesn't discharge but it ...
0 votes
1 answer
77 views

What is this interface and why this drains my battery?

$ ip address 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope ...
1 vote
2 answers
421 views

Several problems installing Debian on Lenovo IdeaPad 5 (AMD Ryzen 5 and AMD Radeon)

I've recently bought a Lenovo IdeaPad 5 14ABA7 (Type 82SE) with a AMD Ryzen 5 5625U processor and Integrated AMD Radeon Graphics. The laptop comes without any OS and I installed Debian 11 on it (...
  • 31
1 vote
1 answer
409 views

Understanding power_supply files

It is a very simple question, but I think that in its simplicity it has aqua output. the case is I am interested in better understanding the files that are hosted in /sys/class/power_supply, and that ...
4 votes
0 answers
64 views

Strange battery behavior: how to diagnose power supply monitor?

I have a problem that I can not determine with the battery of my computer. In case it was of use, I use Arch Linux with dwm, although I don't think it's relevant to the case. I get the battery with ...
0 votes
0 answers
293 views

Suspend not working on Debian 11 when deep sleep is activated and battery too slow

When I suspend my laptop with 15% (or less) of the battery energy and try to resume, it doesn't work. In this case, I have to hold the power button for a while to start my laptop. After that, when I ...
1 vote
0 answers
122 views

Powertop systemd service Status - Not sure if it is working

I enabled the powertop service. It always shows the following: $ sudo systemctl status powertop -l ○ powertop.service - Extend the battery life of laptop Loaded: loaded (/lib/systemd/system/...
  • 1,520
0 votes
1 answer
141 views

why udev rule is never triggered in real reboot, but `udevadmin test` result is still fine?

Here is my example rule: cat /etc/udev/rules.d/55-battery-charge.rules ACTION=="add|change", KERNEL=="BAT*", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}...
  • 1,142
1 vote
2 answers
390 views

how can I make sysfs parameter value persist for each reboot?

I have to write some sysfs parameter files and each reboot. I wonder if there is a way to automatically set those as early as possible, preferably even during initramfs. Is there canonically way to do ...
  • 1,142
0 votes
1 answer
21 views

How does one configure a battery whem compiling Linux

Compiling Linux on a CPU : RockChip RK3326(Quad-Core ARM 64bit Cortex-A35 1.3GHz). Where what I enter the battery full charge data? The battery is just a lipo with a charge controller. Thank you.
-1 votes
1 answer
175 views

Linux change default battery capacity

Where can I change the estimated battery capacity on a Linux system?
0 votes
0 answers
243 views

Battery charging slowly on linux | Huawei Matebook X Pro (laptop)

Three months ago, I bought a Huawei MateBook X pro 2021. I directly installed linux on it, never used W. Right now, I'm using Kubuntu with kfce which seems to be lighter than Ubuntu and gnome. I've ...
  • 1
0 votes
0 answers
159 views

View history of battery health?

I recently experienced that the duration my laptop battery last becomes lower. by running command upower -d. it shows that my laptop capacity left only 44.62%, and that explained my experience. ...
  • 224
1 vote
1 answer
104 views

Plasma power indicator/monitor doesn't read recharge until restart

Update: this is not limited to Fedora; see note at the end. When the battery is down and I have to charge the indicator doesn't show the charging progress even when the full 100% is confirmed by the ...
  • 1,224
0 votes
0 answers
528 views

Battery drain despite system shutdown

I have a dual boot setup with Linux Mint 20.3 and Windows 10 on my HP laptop. For the past few days, I noticed that when I shut the laptop down, my battery still drains. I'm talking like -50% in 8 ...
0 votes
0 answers
45 views

How to disable my Laptops Charger port

I need to disable my laptops charge port where my charger connects to. I just wanted to know what type of device is that and what is its name in my devices? I found something in /sys/class/...
0 votes
0 answers
77 views

Gaming laptop with NVIDIA graphics fails to boot under any circumstances without a charger

Awhile ago I installed Arch Linux on my laptop, and while it's been great, there has been one problem: the system will not boot without being connected to an external power supply, unless I use heavy ...
  • 11
0 votes
0 answers
32 views

Use one of batteries in charging

My laptop has 2 batteries. Is there a way to prevent using battery X while charging? I mean that when I use laptop in charge, the OS uses battery Y not battery X. My batteries are Sony 45N1111 and LGC ...
1 vote
1 answer
161 views

How to select which battery the laptop should use via command line or configuration file?

My laptop has two batteries: battery 0 and battery 1. I'd like to be able to choose which battery is being used via some command line program or maybe changing some configuration file in the OS. ...
0 votes
1 answer
356 views

Battery and Touchpad issues with ThinkPad P14s

I am the happy owner of a Thinkpad P14s Gen1 with a AMD CPU since march 2021. The problems I am going to describe occurred both with Ubuntu Gnome and Fedora xfce4 desktop environnement using i3wm. ...
1 vote
0 answers
802 views

Get battery charging level of Razer mouse and keyboard

I'm looking for a way to get the battery charging level of my wireless "Razer Pro Type" keyboard and "Pro Click" mouse, both connected with a 2.4GHz USB dongle. There is an answer ...
  • 370
0 votes
1 answer
61 views

Optimizing Code OSS aka Visual Studio Code

I am using Manjaro on a Mibook and installed Code OSS (Visual Studio Code) on it and while it works, I see that the CPU jumps to 3.1GHz turbospeeds even while just writing stuff in the IDE. If I ...
1 vote
1 answer
270 views

Void Linux upower issues

I recently installed voidlinux in a Samsung NC10 netbook. I installed LxQT but after starting LxQT cannot find the battery. Looking at the problem it seems that upower cannot start correctly. If I run ...
  • 121
1 vote
1 answer
240 views

What hardware is required to produce /sys/class/power_supply/BAT0?

My laptop runs Arch, and I can find battery information about the battery of the laptop inside /sys/class/power_supply/BAT0. As far as I know, I have installed nothing to make this information ...
0 votes
0 answers
851 views

How to make battery charging threshold effective after shutting down?

I can use below script to set/get battery charging threshold to stop battery charging at 85% using: echo 85 > /sys/class/power_supply/BAT0/charge_control_end_threshold cat /sys/class/power_supply/...
  • 101
0 votes
0 answers
225 views

New battery detected and charging, but laptop turns off as soon as i unplug it

So I have an old Lenovo Y50-70 that I brought back to life with Pop OS, and I wanted to change the battery since the old one couldn't hold anymore. So I bought the new one and installed it, turned the ...
1 vote
1 answer
124 views

Are there Linux distributions designed for the 'mobile computing' use case in 2021?

In 2021 are there any linux distributions that succeed at delivering the basics of a 'mobile computing' use case for aftermarket installation on a laptop. I consider a minimum 'mobile computing' ...
  • 139
0 votes
1 answer
278 views

TLP 1.4: Battery charge settings and performance question

I've been reading about a good practice to install TLP to avoid battery being constantly overcharged. I therefore installed the daemon on my Huaweii X Mate Pro. The battery is recognised as far as I ...
0 votes
0 answers
95 views

How to prevent Laptop from sleep when it hits critical battery

I have Pop_OS 21.04 installed on my laptop. Sometimes the laptop suddenly drops to 0% even through it could run for hours more. The issue is that the power manager triggers sleep, even through I ...
  • 121
1 vote
1 answer
451 views

Dell laptop runs hot and loud on idle during suspend and cannot be woken up/resumed (Pop!_OS 21.04)

My Dell Inspiron 5405 (Ryzen 4500U CPU, integrated Radeon graphics) runs Pop OS 21.04 (kernel version 3.11). I have installed Powertop, auto-cpufreq, and kept my firmware and OS up to date. A random ...
0 votes
0 answers
159 views

What is a default generic app in CentOS 7 to monitor UPS battery over USB?

I installed an UPS battery that is not a well known brand, but it has an USB; Other generic UPS monitoring apps on windows can find it and read battery level and other data even without manually ...
  • 513
0 votes
1 answer
496 views

Laptop randomly crashing and turning off

For the last few days, and I don't remember what changed, my laptop has been randomly turning off once a day. last -x | head | tac returns reboot system boot 5.13.4-arch2-1 Mon Jul 26 08:30 - 09:...
0 votes
1 answer
561 views

Battery not charging, Acer Aspire A515-54G

I have a problem with my laptop's battery, it's not charging. It all started since my laptop shut down because of low battery. I suppose that is the main reason. Anyway, I will describe what I did to ...
1 vote
0 answers
187 views

Laptop keyboard and touchpad intermittently unresponsive on battery power

I have a weird issue that I'm not sure how to troubleshoot. I have a Razer Blade laptop that seems to work just fine when plugged into AC power. But when I unplug and go on battery power, the keyboard ...
1 vote
0 answers
135 views

Debian battery capacity always at 100%

Problem: Both in /sys/class/power_supply/BAT0/capacity and the LXDE lxpanel battery monitor the battery capacity is always indicated as 100% even if it is not. Software info: OS: Debian Buster Kernel:...
2 votes
1 answer
202 views

Dual Battery Thinkpad shuts down at 50%

My thinkpad t470s likes to cut off with no warning when one of its dual batteries dies, not a great feature. I use Openbox WM, with debian 10, which was installed with Gnome DE, using Upower as it's ...
1 vote
2 answers
425 views

When using an external battery, do not charge on board battery just use running supply

I have an external 21700 battery bank which provides usb-power for my laptop. It provides enough watts for my laptop to charge its onboard batteries while providing the running power. This is rather ...
0 votes
1 answer
306 views

How to determine if the device is battery-less or not using c++ program

I have a requirement to determine if the device on which my c++ application is running is battery less or not. I didn't find a standard way to do this. I found some terminal commands such as upower -d ...
  • 1
0 votes
1 answer
407 views

Arch linux: restore session with running programs after running out of battery

I have Lenovo notebook with Arch linux. When I run out of battery and my notebook dies, after starting it. It freshly boots new session. Is there a way to restore previous session and continue in it ? ...
  • 1,083
0 votes
3 answers
2k views

My laptop battery does not charge above 79%

I have had a Dell Latitude-5501 (with Linux Mint 19.3 MATE) laptop for about a year. A day or two ago it stopped charging over 79% plus the battery drains pretty quickly. I do not remember installing ...
2 votes
1 answer
1k views

How to activate battery conservation mode, linix mint 20.1, Lenovo Legion7i

I've found a number of posts across forums and on archwiki that reference the following solution for this laptop model echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004\:00/conservation_mode ...
  • 21
1 vote
1 answer
76 views

Can you compensate for incorrect thermals being reported to the kernel to prevent throttling?

I have faulty battery firmware or something, because my otherwise healthy battery now refuses to charge normally, and what is worse, 80% of the time, it has me bizarrely throttled down to 400mhz per ...
0 votes
2 answers
640 views

How to check battery history in a text format on debian?

I am using the command upower -i /org/freedesktop/UPower/devices/battery_BAT0 and acpi -V to check the battery current status. It shows it has history and statistics. How can I check the history? I ...
  • 327
0 votes
0 answers
46 views

Debian battery jumps from 30 to 0

While my laptop is on the battery and reaches 30% (sometimes 32 or 36), it jumps to zero and shuts down after 1 minute. and as i plug in the AC adapter, it shows 30 again. even once on Ac it jumped ...