Questions tagged [battery]
186
questions
0
votes
1
answer
21
views
How to check NPU and if possible disable it? (battery savings purpose)
I have read that recent cpus have NPU (neural processing units) too and i would like to disable this feature if possible because i suspect it is the root cause draining my battery faster than windows.....
0
votes
0
answers
22
views
System unexpectedly wakes up from resume if battery reports its charge as empty
I rewired my laptop's battery with external cables, so it never physically drains out. However, as expected, the charge counter within the battery counts down. The PC continues working even if the ...
0
votes
0
answers
28
views
Is it possible to reset charge state of my laptop's battery?
My laptop's battery has been drained (according to its counter). But it's actually impossible to drain the power at all (I made some external electrical connections).
I want to reset the battery's ...
0
votes
1
answer
65
views
Asus Laptop ACPI Errors
I'm using an Asus UX3404VA laptop. I wanted to set the charge_control_end_threshold as described here. I can set the value but it has no effect. The kernel version I use is 6.9.3-76060903-generic and ...
1
vote
1
answer
77
views
New battery remains in pending-charge status, need to reboot to start charging again
I had to replace the battery on a Lenovo P53 (swelling battery).
The only replacement I could find (Lenovo no longer has the model in stock it seems) was a
Weetyut brand battery from Amazon.
The ...
0
votes
1
answer
86
views
How to tell Linux it's running on batteries?
Whenever I inspect the current state of my Raspberry via the htop command, it shows the battery information is not available.
Is there any way to tell my Linux (Ubunutu 22.0.4 LTS) about the current ...
0
votes
0
answers
198
views
Battery drain on Ubuntu 22. Need help understanding powertop
I just bought a brand new Lenovo Thinkpad T14 Gen4. I switched to Ubuntu 22.04 and the battery life is terrible, barely 2 hrs on light usage. I ran powertop and there are a lot of entries marked Bad ...
0
votes
0
answers
47
views
Linux: How to diagnose laptop battery issues?
I use arch + wayland + sway on Lenovo thinkpad x390.
Recently my battery power indicator in bar sometimes shows these messages:
No battery (happened only once)
-nan%
inf% (most common)
or is stuck on ...
0
votes
0
answers
55
views
Battery drained extremly fast and too much heat: Asus FX506
I have recently bought an Asus TUF F15 laptop (FX506HF) with these specifications:
12 × 11th Gen Intel® Core™ i5-11400H @ 2.70GHz
8 gigabytes of ram
Nvidia RTX 2050 (4 GB)
First, I installed fedora ...
0
votes
0
answers
18
views
Battery threshold gets overwritten at times
Problem
I've encountered an issue with my laptop, where the battery threshold settings seem to get overridden at times. Despite not altering the configuration files, the laptop charges up to 100% ...
0
votes
0
answers
183
views
why Kali Linux does not recognize the battery charge?
this is my first post as a Linux user. The system is working wonderfully. But I'm having a problem with the recognition of my battery. It only walks with the charger plugged in and continues without ...
0
votes
0
answers
299
views
ThinkPad Edge E540 with `pending-charge` battery state after few months of not using, how to fix that on Ubuntu 18.04 LTS?
I turn on my old notebook - Lenovo ThinkPad Edge E540 yesterday and it didn't turn on after few months of being inactive. I thought that maybe battery is discharged to zero and I need power adapter to ...
0
votes
1
answer
134
views
How does the `acpi` command calculate the battery life when `charge_now` and other files are not present?
I am writing a C program that calculates the remaining battery life or charge time, depending on if the battery is charging. The way I do this is by reading some files in /sys/class/power_supply/BAT0. ...
0
votes
0
answers
64
views
Seeking Solutions for Rapid Battery Drain in RHEL Dual Boot Setup: Need Advice on Battery-Efficient Linux Distros
I recently purchased a new laptop and decided to set up a dual boot with RHEL. Having used Fedora for over 1.5 years and enjoying the experience, I thought of giving RHEL a try. However, upon starting ...
1
vote
2
answers
294
views
per-command cumulative CPU time statistics
I'm running a system off of a battery, so I care a lot about cumulative CPU time usage.
A process that runs for a long time accumulates a lot of CPU time in top compared to a process that runs and ...
5
votes
5
answers
2k
views
How can I make this script run in the background?
#!/bin/bash
# Get the battery percentage for battery 0
battery0_percent=$(cat /sys/class/power_supply/BAT0/capacity)
# Get the battery percentage for battery 1
battery1_percent=$(cat /sys/class/...
0
votes
0
answers
88
views
Battery plug-in detection latency
I am writing a python script that needs to know when battery is inserted. I use pyudev for that.
The problem:
The laptop is powered on with only AC power adapter inserted.
When I run ls /sys/class/...
0
votes
1
answer
67
views
Command to know if electricity went down? or to trigger an action when power electricity went out?
I have an old laptop where the battery passed away - because is not possible buy a new or certificated compatible battery, it because the model is about 10 years ago - therefore when the power ...
1
vote
1
answer
127
views
Where does the ACPI battery information come from?
Using the ACPI interface, one can obtain information on battery life.
Where does this info come from?
Is there a chip that computes capability by integrating current over the power supply plug?
Is ...
0
votes
0
answers
112
views
Is there a Linux command that can indicate if the mobo is functional to charge a battery or not?
I have a Toshiba Satellite L845-SP4146KL - it currently has Linux Ubuntu 22.04 installed.
The original battery passed away, I tried to buy a compatible/equivalent battery - but it is not certified. ...
0
votes
0
answers
39
views
No battery percentage on Banana Pi with ampripper (/sys/class/power_supply is empty)
I built a cyberdeck using a Banana Pi M2 Zero and an Ampripper 3000 wired to a battery. I don't know if it's even possible but: how can I see the battery percentage? As I said, the /sys/class/...
0
votes
1
answer
108
views
How to save battery power for every Linux system so that you could use your laptop longer without charging?
I'm looking for a general solution for this problem.
Because I need to do the coding outside. Sometimes the outside env doesn't have power supply.
0
votes
1
answer
73
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 . -...
3
votes
0
answers
125
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 ...
0
votes
0
answers
906
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'...
0
votes
1
answer
227
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 is a timer that ...
3
votes
1
answer
1k
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 ...
0
votes
1
answer
214
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
1k
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 (...
4
votes
1
answer
5k
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
332
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 ...
1
vote
0
answers
469
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
vote
1
answer
429
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
vote
2
answers
2k
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 ...
0
votes
1
answer
26
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
696
views
Linux change default battery capacity
Where can I change the estimated battery capacity on a Linux system?
2
votes
1
answer
719
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
vote
1
answer
188
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 ...
0
votes
0
answers
1k
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
116
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 ...
1
vote
1
answer
674
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
650
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.
...
2
votes
0
answers
2k
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 ...
0
votes
1
answer
146
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
540
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 ...
1
vote
1
answer
536
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
2k
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/...
1
vote
1
answer
164
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' ...
1
vote
1
answer
822
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 ...
1
vote
1
answer
213
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 ...