Battery drain

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Battery drain

Post by 1891 » Sun Aug 18, 2019 7:37 am

Hi!

Just got my new DELL XPS 15 7590 (Gen 9 i7) 97W battery and 64GB mem etc.

I did a fresh install of Linux Mint Cinnamon version 19.2 and did a kernel update to 5.2.8 (Needed a newer kernel to get support for the Killer WiFi card.

The problem I have is that my battery drains super fast. It does not last more than 2h on battery and as soon as I start anything (browser, software manager etc) the battery indication drops from 7h to 45 min.

I have tried TLP with TLPUI, Laptop-mode-tools etc but no difference. This is really bad since I refuse to install Windoze.

Any help would be very much appreciated.

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

Re: Battery drain

Post by Pjotr » Sun Aug 18, 2019 8:35 am

Please generate an overview of your system like this:
- Launch a terminal window (this is how to launch a terminal window);
- make the terminal window full screen, to avoid chopped lines;
- Copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

Press Enter.

Copy/paste the output in your next message.
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.

1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Sun Aug 18, 2019 8:38 am

Hi!

Thank you for your reply. This is the output:

System: Host: <removed> Kernel: 5.2.8-050208-generic x86_64 bits: 64 compiler: gcc v: 9.1.0 Desktop: Cinnamon 4.2.3
Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic
Machine: Type: Laptop System: Dell product: XPS 15 7590 v: N/A serial: <filter>
Mobo: Dell model: 0VYV0G v: A00 serial: <filter> UEFI: Dell v: 1.2.3 date: 07/23/2019
Battery: ID-1: BAT0 charge: 46.1 Wh condition: 97.0/97.0 Wh (100%) model: SMP DELL GPM0365 status: Charging
CPU: Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62208
Speed: 800 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
9: 800 10: 800 11: 800 12: 800
Graphics: Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0
Device-2: NVIDIA vendor: Hewlett-Packard driver: N/A bus ID: 01:00.0
Display: server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa resolution: 3840x2160~60Hz
OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 19.0.8 direct render: Yes
Audio: Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3
Sound Server: ALSA v: k5.2.8-050208-generic
Network: Device-1: Intel vendor: Bigfoot Networks driver: iwlwifi v: kernel port: 3000 bus ID: 3b:00.0
IF: wlp59s0 state: up mac: <filter>
IF-ID-1: gpd0 state: down mac: N/A
IF-ID-2: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-3: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Drives: Local Storage: total: 953.87 GiB used: 250.25 GiB (26.2%)
ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC601 NVMe 1TB size: 953.87 GiB
Partition: ID-1: / size: 937.40 GiB used: 250.24 GiB (26.7%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 43.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 340 Uptime: 2h 24m Memory: 62.55 GiB used: 3.06 GiB (4.9%) Init: systemd runlevel: 5 Compilers:
gcc: 7.4.0 Shell: bash v: 4.4.20 inxi: 3.0.32

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

Re: Battery drain

Post by Pjotr » Sun Aug 18, 2019 10:13 am

You already have the latest BIOS, which is good.

Try replacing your current 5.2 kernel by the latest 5.2 kernel from the Canonical Kernel Team PPA:
https://easylinuxtipsproject.blogspot.c ... t.html#ID8
(item 8 )
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.

1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Sun Aug 18, 2019 11:27 am

HI!

As far as I can see I am on the latest kernel.

Even after I add the unsupported ppa it does not show any updates.

Is there a newer kernel than the one I have?

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

Re: Battery drain

Post by Pjotr » Sun Aug 18, 2019 12:35 pm

1891 wrote:
Sun Aug 18, 2019 11:27 am
HI!

As far as I can see I am on the latest kernel.

Even after I add the unsupported ppa it does not show any updates.

Is there a newer kernel than the one I have?
It doesn't show as an update because of the deviant (non-Ubuntu) version numbering of your current kernel. Try this:
Update Manager - panel: View - Linux kernels
In that kernel tool it should show in the 5.2 series tab, probably as version number 5.2.0-10.

Install it, make sure you boot from it and remove the 5.2.8-050208 kernel, by means of the now familiar kernel tool.
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.

1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Sun Aug 18, 2019 2:20 pm

Hi!

This is whatit looks like in my update manager:
Attachments
Screenshot from 2019-08-18 22-15-35.png
Screenshot from 2019-08-18 22-16-09.png
Screenshot from 2019-08-18 22-16-42.png

1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Sun Aug 18, 2019 2:21 pm

I did add the followong ppa:

sudo add-apt-repository ppa:canonical-kernel-team

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

Re: Battery drain

Post by Pjotr » Sun Aug 18, 2019 3:13 pm

UKUU? Remove that dangerous utility:
https://easylinuxtipsproject.blogspot.c ... ml#ID6.3.2
(item 6.3.2)
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.

1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Mon Aug 19, 2019 12:33 am


1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Mon Aug 19, 2019 1:12 am

Hi!

One thing came to my mind. I am running kernel 5.2.8-050208, shouldn't that be a newer kernel than 5.2.0-10?

The one I am running is the latest in the 5.2 in my list. else there is only rc1,2,3 and 4 in the 5.3 section.

Just a thought.

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

Re: Battery drain

Post by Pjotr » Mon Aug 19, 2019 5:14 am

1891 wrote:
Mon Aug 19, 2019 1:12 am
One thing came to my mind. I am running kernel 5.2.8-050208, shouldn't that be a newer kernel than 5.2.0-10?
Kernel versioning downstream (Ubuntu/Mint) is different from upstream (kernel.org). The downstream version 5.2.0-10 has another version upstream:

Code: Select all

pjotr@medion-akoya:~$ cat /proc/version_signature
Ubuntu 5.2.0-10.11~18.04.1-generic 5.2.4
As you can see, it's actually the 5.2.4 from upstream. So yes, your current kernel is newer. But not by much, and it lacks important Ubuntu/Mint modifications....
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.

gm10
Level 18
Level 18
Posts: 8722
Joined: Thu Jun 21, 2018 5:11 pm

Re: Battery drain

Post by gm10 » Mon Aug 19, 2019 7:36 am

Pjotr PM'ed me here to get you off the mainline kernel but shouldn't you guys determine first what is actually the culprit here? I'm also using 5.2.8-050208-generic and my battery life is perfectly fine. Feel free to try another series though, 5.0 is a supported series, for example.

Otherwise I'd start with running Intel's powertop tool. Best google a guide for it if you need, it's not quite self-evident how to use it but can be very useful (make sure to run the calibration first, and make sure to run it on battery power).

PS: By the way, sry Pjotr, you may end up having to add a section to your blog about my PPA. It's got a few hundred users now and the numbers keep rising, so you'll run into it more often. ;)
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

1891
Level 1
Level 1
Posts: 8
Joined: Sun Aug 18, 2019 7:31 am

Re: Battery drain

Post by 1891 » Mon Aug 19, 2019 11:33 pm

Hi!

I will update you soon since I am syncing my emails and have it on AC power (2 days and still not synced, but that is a different story).

I am now running 5.3.0-050300rc4-generic to test but will have to get that massive mailbox synced first so I can take it of AC power and test it.

I am using powertop as well. When I check all the components show in good state. Looking at interrupts and process I will have to look into it later on to try to figure out what drains the battery.

Post Reply

Return to “Other topics”