Questions tagged [battery]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
16 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
1answer
29 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
0answers
15 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
1answer
23 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
2answers
43 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
0answers
23 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 ...
1
vote
0answers
36 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
1answer
72 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
0answers
17 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: /...
1
vote
0answers
116 views

How to calculate power consumption from battery stats

I set up the arch linux on my new msi prestige ps42 laptop. To my disappointment, the battery life pretty much quickly deteriorated. After first 2 months of usage, the battery could supply the laptop ...
0
votes
0answers
45 views

ASUS N552VW battery level stuck, not charging

Laptop Asus model N552VW. Ubuntu 19.10. The laptop works from AC for all 3 years of its usage (the battery is not unpluggable easily, so it stayed all the time). Problems Sometimes the battery level ...
0
votes
0answers
15 views

I do not have battery and charger. How to test battery icons in the panel, using the battery percent and charging status in the terminal?

I have redesigned the battery icons and want to test them, using the battery percent and charging status in the panel, in the terminal. How? I tried to apply these questions: LXDE: change battery ...
0
votes
0answers
24 views

How to raise android kernel poll frequency for power supply values in sysfs?

I'm new to the linux kernel and I'm trying to understand how the process of updating battery state values on sysfs (/sys/class/power_supply/battery) happens. Currently I believe the sampling period ...
1
vote
0answers
52 views

Newly swapped debian laptop has working battery, but loses power when unplugged from ac adapter

I recently installed Debian Bullseye on my Thinkpad T430, and everything works great except for the battery. When the AC adapter is unplugged, the computer loses power. the battery works fine when put ...
1
vote
2answers
76 views

Lenovo laptop battery only charges to 68.1% capacity?

I have a Lenovo Z50-75 which supports battery charge limiting. Before I installed Linux, I had my battery set in conservation mode. I don't know if that had any effect on the matter but my battery ...
0
votes
1answer
97 views

Linux Mint: lower screen brightness on low battery

I'd like to make screen brightness lower on low battery. There's no such options in power settings. Alternatively, I may set the system to shut down in such situation, but that's undesired. Is there ...
2
votes
1answer
109 views

How to disable GPU without bbswitch

BBswitch is apparently dead with the last commit being 5 years ago and it no longer works with more modern kernels. During shutdown, it just hangs the system. Nouveau doesn't support power management ...
1
vote
1answer
359 views

X1 Carbon Battery drains on suspend

I typically suspend my laptop between sessions to save battery without powering off fully. I have a new 2019 Lenovo X1 Carbon, running Manjaro Linux 5.2.0-1 and when I suspend my machine with ...
0
votes
0answers
25 views

Find a power_supply of type

My kernel driver needs to access battery's properties (get_property, set_property). Problem: How to find the battery's struct power_supply? I only find power_supply_get_by_name but there can be ...
0
votes
0answers
37 views

Cannot boot without multiple screen Manjaro

On my laptop I have Manjaro (Deepin) 18.04 installed. The problem is I cannot boot on the battery of my laptop it always need to be connected with the power adapter. But if I plug an external screen ...
1
vote
0answers
227 views

Switch to second (build in) laptop battery if capacity is under 20%?

I got my new Lenovo T480 laptop which has two batteries: one internal and one external. The used Linux is Arch Linux. If I use the battery the behavior is that the first battery is used down to 5% ...
0
votes
1answer
233 views

AC power connection not recognized, but battery doesn't drain

Just bought a new laptop acer predator helios 500 with AMD Ryzen CPU. Installed linux with a recent kernel (4.19) and it seems it’s not able to detect when the power cable is connected to the laptop. ...
0
votes
0answers
25 views

LM 19 x64 shuts down unexpectedly just before lightdm or cinnamon starts up, because I installed a new battery

LM 19 x64 shuts down unexpectedly just before lightdm or cinnamon starts up. This happens after installing a new battery for my laptop (DELL Precision M4700), and I had to keep the AC adapter plugged ...
0
votes
0answers
86 views

Tool to alert user that laptop has low battery

I am using debian(9.8 (stretch)) with cinnamon(3.2.7-4) interface and have problem with my battery. When battery is low I have no alert about that. Laptop just turns off unexpectedly (I can turn it on ...
0
votes
1answer
541 views

How do I set battery charging threshold in linux on non Thinkpad laptop? [closed]

I know that charging battery near 100% is bad. However, a charging threshold can be set by using tp_smapi or tlp. Unfortunately, this package is only for Thinkpad. How can I set this for a non-...
1
vote
0answers
787 views

Limit an MSI laptop battery charging to 80%

How can I limit battery charging to 80% capacity? Above thread provides several solutions for ThinkPad laptops. Mine is an MSI GF72 8RE-032. The Windows 10 drivers&utility pack seems to provide ...
0
votes
1answer
625 views

Switch batteries in Thinkpad before performing a deep discharge [duplicate]

I'm currently looking for a possibility to stop my T480 from deep discharging my external battery, before switching to the internal battery. It should switch to the internal battery at a percentage of ...
1
vote
1answer
91 views

Battery alarm command is not working in LXDE?

I am using lxde desktop for my ubuntu 14.04. I have used synaptic package manager to uninstall some old files of qemu. But after that, I realize that some packages are removed from ubuntu eg: python ...
2
votes
1answer
84 views

Prevent battery drain from constant write IO churn by browsers

For some reason, common browsers (Chromium is particularly bad, but Firefox isn't much better) generate constant IO load, particularly writes, on my Debian system. This is the case even when the ...
2
votes
0answers
536 views

KVM Windows guest battery

I've installed KVM on a laptop with Debian 9. The guest is the latest Windows 10 (1803) with all updates and VirtIO drivers installed. The issue is : Windows doesn't know he's on a laptop. Then, I ...
2
votes
1answer
360 views

Checking battery level when ACPI has problems

I am running Debian Buster (testing) / Sid on an Iball Excelance laptop (an Indian company). I initially had problems with the laptop trying to suspend and then freezing immediately after finishing ...
0
votes
1answer
861 views

Command to get details on charge and time remaining for two batteries

I have a laptop with two batteries. I would like to get combined details on the two batteries. In particular, I'd like the time remaining before both batteries run out of charge and the percentage ...
4
votes
2answers
2k views

How to force a Thinkpad to draw charge from internal vs external battery?

My T450s Thinkpad has two built-in batteries--one hot-swappable and one inside the laptop. Lenovo calls the former "external" and the latter "internal". When not plugged in, the external battery ...
2
votes
1answer
6k views

See battery percentage on the panel in Plasma 5.8

It seems Plasma 5.8 cannot display battery percentage in the panel, as explained here. I have found a solution and I am posting this in order to provide an answer.
0
votes
1answer
209 views

Disable battery

I installed linux manjaro on Lenovo Miix 320 (Atom x5 z8350) and got mostof it to work except for the battery indicator. It shows 100% all the time, but that is not the problem. The problem is when I ...
1
vote
0answers
544 views

Gnome Low/Critical Battery Notification

Base System: Debian 9 64-bit | Gnome 3.22.2 By default I get low and critical battery notification banners that remain in the notification tray until I click on them. However neither of these (or any ...
2
votes
1answer
562 views

Why does my battery information show in other OSs and Distros but not this one?

My battery information has been disappearing and reappearing for about a month now. I thought maybe I missed some important package with my custom build so I recently reinstalled Manjora i3 (partly in ...
-2
votes
1answer
186 views

Battery drain in different distributions of linux [closed]

Does fast battery drain happens in every distributions of Linux, or is this the case only with some distributions of linux like ubuntu.
4
votes
1answer
905 views

Which is better, High CPU % with Low Frequency or the opposite? [closed]

January 15, 2018 update I created a 90 second Conky .gif showing "normal" behavior during start up: A few seconds after boot I start Conky. A few seconds later I start Peek which begins recording ....
2
votes
2answers
1k views

Manjaro on HP Laptop - Battery drain while powered off

I'm running Manjaro Linux on my HP Pavilion laptop (15-au014ng) and recently I'm experiencing an odd behaviour: When the laptop is powered off it drains the battery quite a lot. I'm losing up to 40% ...
8
votes
1answer
627 views

Battery drains while powered off after upgrade to kernel 4.13

After upgrading to kernel 4.13, the battery of my laptop started to drain while powered off (about 30% in one day). This didn't happen if I booted the laptop from kernel 4.12 or Windows 8.1, so the ...
2
votes
0answers
40 views

Laptop powers off when switching between batteries

I've got a laptop (Lenovo T460s) with two built-in batteries. Generally, Linux (via Ubuntu 16.04) handles them well; I see a battery life-left indicator in the status bar that tells me how much is ...
-2
votes
1answer
724 views

Keep script running while computer is in suspension mode

I'm using a simple script, launched when I start the X session, to check my battery level and, if it's below a fixed threshold, invoke systemctl hibernate. However, when I suspend the laptop with ...
3
votes
1answer
2k views

How do I see how long the battery has been running without AC?

I am trying to figure out how effective my laptop battery is. Therefore, I woud like to see for how long the battery has been running without AC, since reboot or since AC was plugged in last. Is this ...
2
votes
1answer
2k views

ASUS ZenBook - Battery is never fully charged

I have installed Linux Mint 18.2 Cinnamon (kernel: 4.10.0-32-generic) on my new ASUS UX430UA notebook. However, described behavioral was also found on other ZenBooks and other used OSes like Linux ...
0
votes
1answer
70 views

Could disabling kernel cpu frequency monitoring improve performance and/or battery life?

There is a flag called CPU_FREQ_STAT, which exports CPU frequency statistics information through sysfs file system. More info available here: cpufreq driver kconfig Then, one can guess ...
2
votes
1answer
337 views

Battery doesn't last long on Linux for Samsung series 9

I recently purchased a Samsung NP900X3N which came with Windows 10 installed. I used it for a while on Windows 10 and I noticed the battery lasted for a long time (I forgot to time it, but I felt like ...
0
votes
1answer
83 views

Change script to act for battery level instead of temperature

I have a script that can put the computer to sleep at a certain CPU temperature; #!/bin/bash while true; do val=$(sensors | awk '/temp1/ {print $2}') max=$(echo "+82.0") if [...
1
vote
2answers
917 views

How to add battery status to zsh prompt on extreme right?

I have been using zsh 5.3 for sometime now. I finally managed to have a prompt that I like (see my own answer) - Now I want to add battery status to my zsh prompt on the right-corner so I always know ...
0
votes
1answer
710 views

What is the difference between BAT0 and ADP0 on the linux kernel?

Well I'm trying to identify a device in my program so I can classify and get the power status of a device. The thing is that I'm getting different values on the same OS but using different machines. ...