Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [battery]

The tag has no usage guidance.

2
votes
0answers
24 views

Switch batteries in Thinkpad before performing a deep discharge [on hold]

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 ...
0
votes
0answers
110 views

How to increase the frequency of calculation of discharge rate in Power-Statistics app via command line?

I believe the Power-Statistics app is using UPower for its diagnostic info. However the UPower manual seems to be incomplete. I manually calculated the time it takes to update the discharge rate of ...
0
votes
0answers
21 views

Batterie says fully charged, but laptop turns off when unplugged

I have an hp laptop with ubuntu 18.04 installed and the battery was working very well until two days ago. The laptop could stay turned on 5 hours no problem. Now, it always says that the battery is "...
1
vote
1answer
24 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 ...
0
votes
0answers
10 views

Deactivating discrete GPU during battery operation?

GPU can provide a performance boost to some operations such as web browsing, but can increase power consumption significantly. For this reason, I would like to deactivate it temporarily while the ...
0
votes
0answers
8 views

Can I set at what battery level I should be notified in linux mint 18.2? [duplicate]

I'm currently using Linux Mint Mate 18.2 on my laptop and I get notified that I have low battery level when its around 10% of full charge. I much prefer to be notified when my battery is at 30% of ...
2
votes
1answer
48 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
164 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
43 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
0answers
78 views

KDE Plasma System Try no percentage battery

I cannot find the way to enable the battery to show percentage, I have no problems with the GUI and the battery is shown but I cannot see the status.
0
votes
1answer
176 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 ...
0
votes
0answers
187 views

KDE Plasma battery applet does not update status

I'm using KDE Plasma 5.12. The battery indicator doesn't update if it's charging or not. When I charge on boot, it says it's charging although I stop charging. Also, when I don't charge on boot, it ...
0
votes
0answers
33 views

Battery draining fast and showing different values on Ubuntu

I have an HP Envy 15 j179ez (Intel® Core™ i7-4700MQ CPU @ 2.40GHz × 8 ) running Windows 8.1. Some days ago, I installed Ubuntu 16.04 alongside Windows and it's actually running very well. However, I ...
3
votes
1answer
416 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 ...
0
votes
0answers
125 views

battery applet on kde plasma on arch linux doesn't appear

I'm using kde plasma on arch linux x86_64. When I boot and charge battery at same time, the battery applet doesn't appear. How can I fix this?
3
votes
1answer
1k 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
92 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
249 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
231 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
125 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
336 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 ....
0
votes
0answers
65 views

Linux desktop report Iphone devices battery through upower but not Android devices

I'd like to report the current battery of my android phone to my computer when it is connected in usb. It should be possible as it is already done for Ios devices through Upower and is then reported ...
2
votes
2answers
434 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
393 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
26 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
359 views

Keep script running while computer is in suspension mode

The title says pretty much everything. 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. ...
1
vote
1answer
689 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 ...
1
vote
1answer
1k 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
54 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
226 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
46 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
443 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
296 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. ...
0
votes
0answers
104 views

Powersave CPU frequency governor does not keep frequency low? Is this normal?

I have configured my system to use the powersave governor for CPU frequency, in order to increase battery life. However, even after setting it up and verifying that it is active, my cpu frequency is ...
0
votes
2answers
671 views

Bash if based on grep result gives “too many arguments” error?

So I am trying to tell if the machine has a battery, then run different commands based on whether or not it does. Here's what I have so far: upower -d >> /tmp/batstat if [ grep -F BAT0 /tmp/...
1
vote
1answer
2k views

Low battery life under Linux Mint 18 Cinnamon 'Sarah'

I have an ASUS laptop, model K45VM. 3rd generation core i7 processor, 8gb of RAM, intel HD 4000 integrated graphics card and a Nvidia GT630M as the discrete graphics card. Dual-booting Linux Mint 18 '...
0
votes
2answers
126 views

How to profile hardware in this Zenbook UX303UA failure?

I profiled the system with Debian installer without power supply. The laptop will shutdown after 7.5 minutes without power supply, although shown full battery. So the problem is most probably hardware,...
1
vote
1answer
501 views

Debian Battery Monitoring driver

I recently installed Debian Jessie (8) to my Lark Ultimate 7i WIN. I successfully installed all essential things on it, but one thing is still irritating me. I have LXDE installed, and I added "...
7
votes
2answers
4k views

How to clear / reset smart battery memory?

So, I got a new battery for my laptop, and right from the get go, I'm having problems. The battery came almost entirely discharged from the manufacturer. I plugged it into my computer and the batter ...
0
votes
0answers
660 views

How to read the battery on a Banana Pi R1 router with OpenWRT?

Model: BPI R1 Firmware Version: OpenWrt Chaos Calmer 15.05-rc3 / LuCI Master (git-15.233.47308-791ca8b) Kernel Version: 3.18.19 Other images on this same hardware had various methods to monitor the ...
1
vote
0answers
15 views

Measuring, how much power the wireless connection takes

In theory, disabling the wireless connection on my laptop should improve the overall battery life. In fact the battery consumption is a complex process; when I tried to measure, how longer life I ...
3
votes
0answers
354 views

Second battery either not charging or charge not detected

I have installed Linux on my laptop and running it as the only system. It displays both batteries on the desktop UI, with the first one on 100% and second 0%. When it is discharged it just discharge ...
2
votes
0answers
105 views

acpi rtc wakeup on battery (Debian testing)

Setting an rtc alarm via /sys/class/rtc/rtc0/wakealarm leads to successful resume from hibernate when this Asus laptop is plugged in, but when on battery it stays powered off (but resuming from ...
0
votes
0answers
38 views

How to find out when battery stopped charging?

I was wondering if it would be possible to know when (for what period, at what time) my battery stopped charging (e.g. in power outage, when I'm not around). Is there any way to get hold of “history ...
0
votes
0answers
592 views

opensuse leap shutdown does not shut down correctly?

I have a new laptop (lenovo thinkpad t460p) With both Windows 10 and opensuse leap installed. If I shutdown my computer under opensuse leap (using shutdown button or even /sbin/shutdown 0); it appears ...
2
votes
0answers
568 views

No perf (linux-tools) for kernel 4.5.2

When I first installed 16.04 LTS, at kernel 4.4.0, I had a decent battery life of about 3 hours average, but I upgraded to 4.5.2 to solve the suspend problem and some other issues, and now it's less ...
3
votes
0answers
156 views

GNOME 3: How to display status of multiple batteries?

T400, Debian Jessie, GNOME 3.14 How can I see both batteries (main and ultrabay) when clicking on the battery icon? I looked for a suitable extension on http://extensions.gnome.org/ , but I didn't ...
0
votes
1answer
1k views

switching from Ubuntu to Arch, battery life reduced by 90%

On my thinkpad t440s I ran ubuntu 14.04 happily for around 2 years, in the beginning having a battery life of over 7 hours, and still now easily 5 or 6 hours. Recently I switched to Arch, and I can't ...
0
votes
1answer
608 views

Better battery saver linux between ubuntu mate and xubuntu

I have tried xubuntu, lubuntu and ubuntu mate. I found xubuntu and ubuntu mate desktop environment good. My main concern is battery saving. Which saves better battery between Ubuntu mate and xubuntu
3
votes
1answer
401 views

Is there a way to control the battery charging port of a laptop?

So here's the idea, i want to be able to control this so as to keep the battery wear level to a minimum. At >25% , the battery will be in discharge 'mode' and as the battery reaches <25%, I will ...