High Battery Drain While Suspended

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
nbe412
Level 1
Level 1
Posts: 3
Joined: Mon Sep 09, 2019 7:52 pm

High Battery Drain While Suspended

Post by nbe412 » Mon Sep 09, 2019 8:01 pm

Hello,

I am currently using the Dell XPS 13 9380 with Linux Mint 19.2 and Cinnamon 4.2.3.

I am a college student, and I want my laptop to last throughout the day without having to power it down between classes. The battery life itself is very good and I have no problem getting 7-9 hours of screen on time throughout the day. I have specified that I want the machine to suspend when the lid is closed, and it does, but the screen stays on and there is significant battery drain while it is suspended. Today I had it closed and in my backpack for a few hours and when I went to take it out, the fans were on full blast and the machine was very hot.

I would like the battery drain to be minimized while the lid is closed. I would like all unnecessary processes to be suspended during this time as well. I simply want to resume my session when the lid is opened without the battery drain. The computer should be doing nothing while the lid is closed.

If I can provide any additional information, please let me know :)

gregory_opera
Level 1
Level 1
Posts: 26
Joined: Tue Aug 13, 2019 4:56 pm
Contact:

Re: High Battery Drain While Suspended

Post by gregory_opera » Mon Sep 09, 2019 10:40 pm

You could enable "hibernation" - that is, the current state of your computer is saved to disk and then quickly restored when you power back up - assuming your laptop supports it...

Open up "System Monitor" and have a look how big your "swap" is (System Monitor --> Resources --> Memory and Swap History --> Swap)... Is it more than your RAM (System Monitor --> Resources --> Memory and Swap History --> Memory)(ideally it should be 10%+)?

If so, open some windows and / or programs (make sure you save any unsaved data first!), press Ctrl + Alt + T and enter:

Code: Select all

sudo pm-hibernate
Enter your password and press "Enter".

After your laptop has completely switched-off, give it 60 seconds or so, then turn it back on... Did you computer restore the session to the state you left it in?

If so, you should be able to safely enable "hibernation" on your laptop, which will save you quite a lot of power, whilst making sure that your laptop is completely off between sessions...

Open Terminal again (Ctrl + Alt + T) and enter these commands:

Code: Select all

sudo -i

Code: Select all

$ cd /var/lib/polkit-1/localauthority/50-local.d/

Code: Select all

$ gedit com.ubuntu.enable-hibernate.pkla
Copy and paste the text below to the file and save it.
[Re-enable hibernate by default in upower]

Code: Select all

Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
--

"All our dreams can come true - if we have the courage to pursue them."

Walt Disney. °o°

all41
Level 15
Level 15
Posts: 5583
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: High Battery Drain While Suspended

Post by all41 » Tue Sep 10, 2019 12:11 am

@nbe412,
Hi and welcome to the forums.
From your menu find terminal, open that and enter the following inquiry:

Code: Select all

inxi -Fxz
That will provide an overview of your system and hardware resources.
Please copy/paste those results back here. This will allow more focused answers
Also is there a Windows partition involved?

nbe412
Level 1
Level 1
Posts: 3
Joined: Mon Sep 09, 2019 7:52 pm

Re: High Battery Drain While Suspended

Post by nbe412 » Tue Sep 10, 2019 9:56 am

all41 wrote:
Tue Sep 10, 2019 12:11 am
@nbe412,
Hi and welcome to the forums.
From your menu find terminal, open that and enter the following inquiry:

Code: Select all

inxi -Fxz
That will provide an overview of your system and hardware resources.
Please copy/paste those results back here. This will allow more focused answers
Also is there a Windows partition involved?
Here is the output:

Code: Select all

System:
  Host: Andromedus Kernel: 4.15.0-58-generic x86_64 bits: 64 compiler: gcc 
  v: 7.4.0 Desktop: Cinnamon 4.2.3 Distro: Linux Mint 19.2 Tina 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: Dell product: XPS 13 9380 v: N/A serial: <filter> 
  Mobo: Dell model: 0KTDY6 v: A00 serial: <filter> UEFI: Dell v: 1.3.2 
  date: 03/29/2019 
Battery:
  ID-1: BAT0 charge: 50.1 Wh condition: 52.0/52.0 Wh (100%) 
  model: SMP DELL G8VCF6C status: Discharging 
CPU:
  Topology: Quad Core model: Intel Core i7-8565U bits: 64 type: MT MCP 
  arch: Kaby Lake rev: C L2 cache: 8192 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31872 
  Speed: 949 MHz min/max: 400/4600 MHz Core speeds (MHz): 1: 901 2: 900 
  3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 
Graphics:
  Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 
  Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics (Whiskey Lake 3x8 GT2) 
  v: 4.5 Mesa 19.0.8 direct render: Yes 
Audio:
  Device-1: Intel vendor: Dell driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.15.0-58-generic 
Network:
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Bigfoot Networks driver: ath10k_pci v: kernel port: efa0 
  bus ID: 02:00.0 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 34.00 GiB (14.3%) 
  ID-1: /dev/nvme0n1 vendor: Toshiba model: KXG60ZNV256G NVMe 256GB 
  size: 238.47 GiB 
Partition:
  ID-1: / size: 76.40 GiB used: 33.93 GiB (44.4%) fs: ext4 
  dev: /dev/nvme0n1p7 
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 238 Uptime: 21m Memory: 7.45 GiB used: 1.62 GiB (21.7%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 
  inxi: 3.0.32
There is a windows partition involved, I dual boot.

Thank you for the reply.

User avatar
Pjotr
Level 21
Level 21
Posts: 13223
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: High Battery Drain While Suspended

Post by Pjotr » Tue Sep 10, 2019 11:20 am

Very new machine, so try this:
Update Manager - panel: View - Linux kernels
Install the latest kernel of the 5.0 series. Then reboot.

Also: if you don't use Bluetooth, blacklist its driver:
https://easylinuxtipsproject.blogspot.c ... .html#ID15
(item 15)
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

pbear
Level 7
Level 7
Posts: 1817
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: High Battery Drain While Suspended

Post by pbear » Tue Sep 10, 2019 1:29 pm

nbe412 wrote:
Mon Sep 09, 2019 8:01 pm
I have specified that I want the machine to suspend when the lid is closed, and it does, but the screen stays on and there is significant battery drain while it is suspended.
Simplest solution may be to suspend from Menu (same as you would for a shutdown), which will turn off the screen, then close the lid.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

nbe412
Level 1
Level 1
Posts: 3
Joined: Mon Sep 09, 2019 7:52 pm

Re: High Battery Drain While Suspended

Post by nbe412 » Tue Sep 10, 2019 1:34 pm

pbear wrote:
Tue Sep 10, 2019 1:29 pm
nbe412 wrote:
Mon Sep 09, 2019 8:01 pm
I have specified that I want the machine to suspend when the lid is closed, and it does, but the screen stays on and there is significant battery drain while it is suspended.
Simplest solution may be to suspend from Menu (same as you would for a shutdown), which will turn off the screen, then close the lid.
Actually, when I select "Suspend" from the menu, the screen turns off for less than a second, then turns back on. However, it remains locked, just with the screen on. It does this when I close the lid as well.

pbear
Level 7
Level 7
Posts: 1817
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: High Battery Drain While Suspended

Post by pbear » Tue Sep 10, 2019 1:49 pm

Ah, then suspend simply isn't working. So, try Pjotr's suggestion. Be sure to take a manual Timeshift snapshot first, so you can do over if something goes sideways. Label it something like, "Before upgrade to 5.0 kernel."

BTW, if you want to try hibernation, look at this tutorial by gm10: How to hibernate to a swap file in Linux Mint 19.x.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

User avatar
Moem
Level 19
Level 19
Posts: 9202
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: High Battery Drain While Suspended

Post by Moem » Fri Sep 13, 2019 11:01 am

Mod note:
The similar but new question by emilghen is now here. Please don't piggyback on existing topics, but start a new one instead. Thanks!
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

Post Reply

Return to “Software & Applications”