Questions tagged [battery]
153
questions
1
vote
1
answer
24
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
35
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
55
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
19
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
56
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 ...
0
votes
0
answers
47
views
How to create a custom notification in KDE Plasma for charging battery?
Is there a way for me as an user to create a custom notification (either from a script or a helper application) to be shown when an event's conditions are satisfied in Linux?
In my specific case, I'd ...
0
votes
1
answer
60
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
124
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/...
0
votes
0
answers
43
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 ...
0
votes
1
answer
95
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' ...
0
votes
1
answer
40
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
101
views
Thinkpad battery saver `charge_stop_threshold` not working on Debian linux
I tied to set up a maximum of 80% charge threshold for my Thinkpad laptop running Proxmox which is based on Debian Linux the following way:
cd /sys/class/power_supply/BAT0
echo 80 > ...
0
votes
0
answers
35
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 ...
0
votes
1
answer
127
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
94
views
How do limit the battery of my Lenovo Legion 5i at 65?
I am trying to limit the battery charging of my Lenovo Legion 5i at 65% of the capacity. I know the hardware supports this - back on windows, you'd use Lenovo's own application to limit battery charge ...
0
votes
0
answers
71
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 ...
0
votes
0
answers
29
views
Battery does not stop charging
My goal is to prevent my battery charging all the time which is not good for the hardware. After several hours it still shows that it's charging:
#root# acpi -V
Battery 0: Charging, 99%, 00:12:56 ...
0
votes
1
answer
205
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
246
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
90
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
80
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:...
0
votes
0
answers
295
views
Problems with power management and battery charge Linux Mint 19.3
I just replace the battery from my Asus VivobookPro (with the old one the laptop was not able to stay up for more than 1 second if not connected), but I'm having some issues with the battery charge.
...
1
vote
0
answers
63
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 ...
0
votes
0
answers
133
views
How can I show and highlight the i3bar based on a battery status?
I would like to force the display of the i3bar and change its color to red when my battery is under 10%.
I guess it would be akin to updating the i3status from
bar {
colors {
background #000000
...
1
vote
2
answers
305
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
110
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 ...
0
votes
1
answer
199
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 ?
...
0
votes
3
answers
992
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
522
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
...
1
vote
1
answer
63
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
266
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 ...
0
votes
0
answers
36
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 ...
0
votes
1
answer
125
views
How is battery percentage calculated in Debian with i3?
I have written a bash script to alert me whenever the battery percentage gets lower than some predefined threshold. However I've realized than the battery percentage that I compute is different (~6% ...
0
votes
2
answers
49
views
Where can I find info about specific file(s) on the system?
I was building a simple battery level monitor (in bash) for my personal i3blocks implementation. It's quite obvious that the info I need is available in files in the /sys/class/power_supply/BAT0 ...
1
vote
1
answer
570
views
What is difference in unit between energy-full vs charge_full?
I have 2 different results of maximum batery energy:
upower -i $(upower -e | grep -i bar) | grep energy
energy: 18.061 Wh
energy-empty: 0 Wh
energy-full: 33.4021 Wh
energy-...
3
votes
1
answer
1k
views
how to check the battery percentage of Apple airpods and case on linux?
is there any command for checking AirPods battery status on Linux.
I am developer of i3blocks-airpods
Just want to know if there is a way to check battery status?
2
votes
2
answers
344
views
How do I fix the issue of delayed detection of charging in Plasma5?
I have the latest Pop!_OS 20.04. I recently I installed KDE Plasma on my machine.
The only thing that has been annoying me is once my battery gets low, and I plug in my charger, KDE takes almost half ...
2
votes
2
answers
2k
views
Horrible performance on battery with intel_pstate driver
EDIT: Ubuntu (mate) 20.04, intel_pstate driver. Computer is I am using a razer blade stealth ultrabook (early 2019), with intel core i7 i7-8565U.
I am encountering odd behavior (extreme slowdown) ...
1
vote
1
answer
56
views
how to express a range of numbers (11%-20%) in a battery notification script
I'd like to have a script that notifies me when my battery is at or above 90%, at or below 20%, and at or below 10%. I cobbled together the following, substituting zenity for notify-send so that I ...
3
votes
1
answer
197
views
Why doesn't inotifywait report modifications made to battery capacity file?
I want to know when my battery charge changes, and I don't want to simply run a daemon that checks on it every five seconds.
I've tried running inotifywait -m /sys/class/power_supply/BAT1/capacity, ...
1
vote
0
answers
55
views
KDE Neon ThinkPad X1 Yoga Gen 4, black screen with cursor on resume from suspend on battery
I am running KDE Neon on my ThinkPad X1 Yoga Gen 4. Whenever I resume from sleep/suspend, UNLESS it is plugged in on AC, it only resumes to a black screen with a cursor, and nothing else. I have ...
2
votes
0
answers
531
views
Battery won't charge when ON, Arch Linux
I run Arch Linux 5.5.13 on my laptop. A year ago, I changed the original battery for a new one (maybe not the official one).
It has been some time that I have the same problem. Charging the battery ...
1
vote
1
answer
847
views
Why CPU temperature so much lower when on TLP Battery mode instead of AC mode?
I'm using Ubuntu 18.04 and TLP (Linux Advanced Power Management).
When I have my laptop plugged and battery inserted and TLP is in auto mode (it detects the cable and goes AC mode), the CPU ...
0
votes
1
answer
106
views
Kubuntu crashes when running on battery
I recently bought a new HP Pavillion laptop (AMD Ryzen 5 processor, Radeon Vega Mobile graphics, and 12GB of RAM) and installed Kubuntu 18.04 alongside Windows 10. Ubuntu runs perfectly fine when the ...
0
votes
1
answer
335
views
how to system-beep as low battery warning?
I'd like a debian laptop with LXDE to do a system beep every 10 or 30 seconds once the battery reaches a critical level. is that possible?
1
vote
2
answers
172
views
Increasing battery life on Linux
I got myself a new laptop, which is pretty powerful, but the battery life is horrible on both Windows and Linux. I was wondering if there is a way to increase battery life on Linux.
I already tried ...
0
votes
0
answers
51
views
External HDD spinning even when laptop lid is closed
I am having a 160GB SATA HDD in which I have installed Kali-Linux, last night I just closed the lid of the laptop considering that will continue my work tomorrow from here but in the morning I noticed ...
2
votes
0
answers
584
views
Is it possible that a Logitech wireless mouse connected over bluetooth to a linux machine consumes more power, than when connected to other OS?
I have got a Logitech M590 connected over Bluetooth to my Ubuntu 19.10 (up-to-date), and it turns out that the battery of the mouse runs out after about two months while Logitech advertises two years ...
1
vote
1
answer
881
views
How does "acpi" or "upower" decide the battery percentage?
Correction Notice
I'm sorry to bring this issue up based on a misremembering the cell count in series. There were not 4 cells in series, but 3 cells. Silly me. For 3 cells in series, the maximum ...
0
votes
0
answers
61
views
Battery icon not showing AND keyboard stopped working
My battery icon is not showing, and my laptop keyboard has stopped working after I updated. The boot takes longer than normal as well.
I am running Ubuntu 18.04 and my upower -d output is:
Device: /...