Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsUbuntu
All Forum Topics
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80
  • Message 1 of 22

X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-08, 21:45 PM

Hey!

 

Just got the x1 carbon 7 gen but get less than 3 hours on a battery. 9 hours advertised.

Linux support is not that good for this model so this might be on of the problems.

 

●  Processor: 10th Gen Intel® Core™ i7-10710U (1.10GHz, up to 4.70GHz with Turbo Boost, 6 Cores, 12MB Cache)

●  Operating System: Windows 10 Pro 64

●  Display Type: 14.0" FHD (1920 x 1080) IPS, anti-glare with Privacy Guard, 400 nits

●  Memory: 16GB LPDDR3 2133MHz (Soldered)

●  Hard Drive: 1TB SSD PCIe

●  Warranty: 1 Year Depot or Carry-in

●  Graphics: Integrated Intel® UHD Graphics

●  Camera: IR & 720p HD

●  Fingerprint Reader: Fingerprint Reader

●  Keyboard: Backlit - US English

●  Wireless: Intel® 9560 802.11AC (2 x 2) & Bluetooth® 5.0

 

This is what I did till now:

 

Firmware

fwupdmrg enable-remote lvfs-testing

fwupdmrg get-devices

fwupdmrg refresh

fwupdmrg get-updates

fwupdmrg update

fwupdmrg disable-remote lvfs-testing

 

TLP

Install tlp: https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html

CPU_SCALING_GOVERNOR_ON_BAT = powersave

CPU_ENERGY_PERF_POLICY_ON_BAT = balance_power

others are default

 

Undervolt & Fan Control

Install https://github.com/erpalma/throttled

Because of throttling CPU at 85C (now it's at 95C)

Undervolt offsets: CORE: -100.00 mV | GPU: -150.00 mV | CACHE: -100.00 mV | UNCORE: -100.00 mV | ANALOGIO: 0.00 mV

[BATTERY] Thermal: OK - Power: OK - Current: OK - Cross-domain (e.g. GPU): OK  ||  VCore: 607 mV - Package: 1.9 W - Graphics: 0.6 W - DRAM: 0.3 W          

 

 

Get battery watt consumption command:

system_profiler SPPowerDataType | grep "(m[AV])" | awk '{ print $3 }' | tr ' ' ' ' | awk '{ print $1*$2/1000000 }'

 

As comparison will be using a

MacBook Pro (Retina, 15-inch, Mid 2015)

2,2 GHz Intel Core i7

16 GB 1600 MHz DDR3

Intel Iris Pro 1536 MB

256GB SSD

Not sure about it's power policies on batt.

 

TEST

idle is 10watts for both computers without any programs loaded. Will go down to 8-9 when not used for a couple of minutes.

I was expecting much less draw on the x1 because of the smaller & less resolution screen + more efficient CPU.

 

Questions

What do you think is a normal idle watt consumption for the x1?

How can I go further in finding what could be wrong or improved for longer battery life.

 

#TODO

Will put some stress test results.

Will try to disable 2 of the CPUs at idle or low stress tasks.

Maybe try lighter Desktop Environment

 

Thanks!

Reply
Answer
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-04-04, 17:03 PM

Update to 5.3.0-46-generic kernel - idle consumption went way down.

The upgrade broke the WiFi, bluetooth, audio output is now bad(maybe no subwoofer), recognized the internal mic but not working.

 

Minimal brightness, WiFi ON, no Apps - 2.7-3 Watts

 

Brightness about 30%, Chrome with 13 tabs, WiFi ON, text editor and Slack only 5.5 Watts

 

That's much better!

 

Still a lot of wakeups/seconds - about 1000. So if someone knows how to chase them down, would be great. Tried a lot of things but nothing interesting.

 

---------

 

If you want to change easily between kernels:

 

I've set the grub config to load the last chosen kernel.
sudo nano /etc/default/grub

GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved

On reboot (Esc or Shift) to go into the Grub menu -> Advanced -> choose kernel

This way I can more easily switch between them to test.
 

Reply

Replies(21)
Options

5 Posts

12-14-2019

Germany

11 Signins

135 Page Views

  • Posts: 5
  • Registered: ‎12-14-2019
  • Location: Germany
  • Views: 135
  • Message 2 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-10, 15:04 PM

Install tlp. // Edit sorry:

 

you already did...

Reply
Options

17 Posts

04-24-2015

Germany

27 Signins

75 Page Views

  • Posts: 17
  • Registered: ‎04-24-2015
  • Location: Germany
  • Views: 75
  • Message 3 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-10, 16:48 PM

Which kernel and Linux version do you test with?

 

Core i7 10th Gen. is still pretty new which means you should test with the newest kernel possible.

 

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80
  • Message 4 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-10, 18:45 PM

Thanks, guys.

 

here's: uname -a output:

Linux bgoner 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

I'm pretty new to Linux. If latest kernel means getting ArchLinux might be too much for me. 

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80
  • Message 5 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-10, 19:53 PM

I'm updated to the latest kernel on 18.04.3 but I just found out there is HWE kernel which has lot of updates for the latest hardware. Maybe try this?

 

Do you think going for a 19 linux a good idea?

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80
  • Message 6 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-10, 20:21 PM

I can see the latest stable kernel is 5.5.8 . Shall I try this one?

Reply
Options

17 Posts

04-24-2015

Germany

27 Signins

75 Page Views

  • Posts: 17
  • Registered: ‎04-24-2015
  • Location: Germany
  • Views: 75
  • Message 7 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-11, 17:53 PM

Ubuntu 18.04 is a LTS (Long Term Stability) release, I would stick with that, it will be supported for quite some time. Newer versions need to be upgraded more frequently but the next one, Ubuntu 20.04 due in April, will be the next LTS version.

 

I am running Linux Mint "Tricia" which is based on Ubuntu 18.04 and I have Kernel 5.3.0. I run it on an E595 which is based in a pretty new AMD CPU and it works perfect for me. 

 

I would try the HWE kernel if you don't use it already. You can also try the latest kernel and if battery life is better with it, fine, and if it creates problems simply go back to 5.3.0

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80
  • Message 8 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-11, 21:31 PM

Thanks I will try the HWE def.

 

It's just so frustrating to compare the consumption on the mac.

It has 15' display retina, 5 years older CPU, loaded 

 - chrome with 20 tabs, 

 - firefox, 

 - intellijidea, 

 - skype, 

 - sublime, 

 - slack 

and it consumes about 11watts. Even goes to 8 watts from time to time.

at least this 

system_profiler SPPowerDataType | grep "(m[AV])" | awk '{ print $3 }' | tr ' ' ' ' | awk '{ print $1*$2/1000000 }'

says so.

CPU is at 45 C and fans are at 2k rpm out of 6k.

 

On the X1 if I load 

 - chrome with a few tabs 

 -  intelijidea  

 - slack 

it consumes about 11w stable.

Despite having a 6 core new gen 10 i7 which is undervolted and has a only 14 inch FHD which should consume so much less than the high res retina.

 

And I actually believe these wattages because the mac holds similar time without AC. And this is on a 5 year old battery that just got a recall for a change because of a faulty manufacturing. It's even bloated  & waiting to explode. (But it's 99.5 Wh 1100 cycles vs 52wh on the x1)

Ok, macs are hardware & software made for each other... but still...

 

The power setting might be very different on battery so I tried rebuilding my project in intellijidea:

mac - 1m 10s (couple of tries averaged) jumped to 50 watts

x1 - 1m 20s (same) jumped to 19 watts

So it seems it's much more efficient under load. Could it be some of the idle processes? In "top" I can see the gnome-shell at the top all the time. From time to time I can see "powertop" get on top and disappears.

 

Will update on the HWE kernel once I find out how to do it.

 

p.s.  - researchers found that having a black background made displays consume more power because showing black was harder (LOL... might be on some types only, but still very counter intuitive)

Reply
Options

17 Posts

04-24-2015

Germany

27 Signins

75 Page Views

  • Posts: 17
  • Registered: ‎04-24-2015
  • Location: Germany
  • Views: 75
  • Message 9 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-12, 17:51 PM

"Will update on the HWE kernel once I find out how to do it."

 

Thats easy:

 

sudo apt-get install --install-recommends linux-generic-hwe-18.04

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

  • Posts: 16
  • Registered: ‎02-21-2020
  • Location: Bulgaria
  • Views: 80
  • Message 10 of 22

Re:X1 Carbon 7 gen - Improving Battery Life on Ubuntu

2020-03-12, 20:25 PM

Thanks!

Looked it up just in case and here: https://www.linuxuprising.com/2019/02/how-to-install-ubuntu-18042-lts.html

it says it needs another thingie too for the desktop linux:

sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04

but they were already installed... that's strange I don't remember doing it

Reading package lists... Done

Building dependency tree      

Reading state information... Done

linux-generic-hwe-18.04 is already the newest version (5.3.0.40.97).

xserver-xorg-hwe-18.04 is already the newest version (1:7.7+19ubuntu8~18.04.3).

0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

 

hwe-support-status --verbose

Your Hardware Enablement Stack (HWE) is supported until април 2023.

 

but uname -r still shows 5.3.0-40-generic

5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

Shouldn't it show HWE?

Do I need to somehow switch to the HWE kernel, or delete the generic one?

 

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms