Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
7 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 sector adapter. But if I plug an external screen ...
0
votes
0answers
19 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
42 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
20 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
21 views

How can I stop suspend mode from draining my battery?

My battery drains completely after about 8 hours of sleep in suspend mode. It seems a lot like this bug, from the Lenovo forums. I've tried changing the sleep mode to "deep," but then it doesn't wake ...
0
votes
0answers
34 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
0answers
18 views

No battery files created. Cannot determine battery state

I'm trying out Phoenix OS (Android port for PC). I really like it. One big problem is, that somehow, I do not have any battery information. In /sys/class/power_supply is see the folder for the adapter ...
0
votes
1answer
107 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
170 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
143 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
32 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
13 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
11 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
56 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
254 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
175 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
165 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
411 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 ...
3
votes
1answer
771 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 ...
3
votes
1answer
3k 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
128 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
349 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
363 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
168 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
477 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
592 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
462 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
33 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
483 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 ...
2
votes
1answer
1k 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
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
59 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
274 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
58 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
575 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
389 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
115 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
893 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
129 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
613 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
3answers
7k 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
749 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
403 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
125 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
42 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
703 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 ...
3
votes
0answers
639 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
179 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 ...