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

17 Posts

04-24-2015

Germany

27 Signins

75 Page Views

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

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

2020-03-13, 15:09 PM

It doesn't show with uname, I have a HWE kernel installed:

 

$ uname -a

Linux harald-e595 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

 

You will see it in Synaptic for example

 

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

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

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

2020-03-13, 20:25 PM

Does my journey end here? Any other options I could play with?

Reply
Options

5 Posts

12-14-2019

Germany

11 Signins

135 Page Views

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

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

2020-03-13, 21:55 PM
What gives: sudo tlp-stat -b
Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

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

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

2020-03-14, 8:43 AM

 

--- TLP 1.3.1 --------------------------------------------

 

+++ Battery Features: Charge Thresholds and Recalibrate

natacpi    = active (data, thresholds)

tpacpi-bat = active (recalibrate)

tp-smapi   = inactive (ThinkPad not supported)

 

+++ ThinkPad Battery Status: BAT0 (Main / Internal)

/sys/class/power_supply/BAT0/manufacturer                   = SMP

/sys/class/power_supply/BAT0/model_name                     = 02DL005

/sys/class/power_supply/BAT0/cycle_count                    =     14

/sys/class/power_supply/BAT0/energy_full_design             =  51010 [mWh]

/sys/class/power_supply/BAT0/energy_full                    =  52120 [mWh]

/sys/class/power_supply/BAT0/energy_now                     =  41270 [mWh]

/sys/class/power_supply/BAT0/power_now                      =  14022 [mW]

/sys/class/power_supply/BAT0/status                         = Discharging

 

/sys/class/power_supply/BAT0/charge_start_threshold         =     60 [%]

/sys/class/power_supply/BAT0/charge_stop_threshold          =     80 [%]

tpacpi-bat.BAT0.forceDischarge                              =      0

 

Charge                                                      =   79.2 [%]

Capacity                                                    =  102.2 [%]

 

I've set the hysteresis of the battery to 60-80 on purpose: not to degrade it when on 100% and less produced cycles. If I want a full charge I'd do:

tlp chargeonce BAT0

 

I did install in the begining some stuff and recalibrated the battery but that won't affect the watt consumption I guess.

 

sudo apt install acpi-call-dkms

sudo apt install tp-smapi-dkms #but that's not supported

sudo tlp recalibrate

 

With a 51,000mWh battery I need to reach at least 10 watts or lower to get some decent time. 7 watts would be perfect.

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

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

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

2020-03-14, 21:27 PM

Powertop says my wifi is the big spender:

 

Power est.              Usage       Events/s    Category       Description

 8.59 W     12,6 pkts/s                Device         Network interface: wlp0s20f3 (iwlwifi)

 1.00 W      0,0 pkts/s                Device         Network interface: enp0s31f6 (e1000e)

 594 mW      3,2 ms/s     340,7        Timer          tick_sched_timer

 580 mW     79,5 ms/s     114,3        Process        [PID 2247] /usr/bin/gnome-shell

 467 mW      4,5 ms/s     263,2        Process        [PID 780] [irq/177-SYNA800]

 383 mW     17,3 ms/s     119,4        Process        [PID 2099] /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -ke

 371 mW      1,2 ms/s     215,0        Interrupt      [17] idma64.1

 290 mW      5,3 ms/s     156,7        Process        [PID 4081] /snap/intellij-idea-community/208/jbr/bin/java -classpath /snap/intellij-idea-community/208/lib/boots

 

When I turn off the wifi from the top right (goes to plane mode) it disappears from powertop but consumption is still exactly the same:

awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now

11.62 W

 

So it either doesn't turn off the network hardware or powertop shows false approximation data.

 

When I first installed ubuntu and did sudo apt upgrade, after restart my wifi disappeared. In order to fix it I found this and did it blindly:

#FIX WiFi after apt upgrade

sudo apt update

sudo apt install git build-essential

git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git

cd backport-iwlwifi/

make defconfig-iwlwifi-public

sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config

make -j4

sudo make install

sudo modprobe iwlwifi

 

Could I've done something that's not very efficient? Or it needs some tuning?

Reply
Options

17 Posts

04-24-2015

Germany

27 Signins

75 Page Views

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

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

2020-03-15, 8:28 AM

The last instructions you posted exchanged the WiFi drivers but I don't think that was permanent so with the next kernel update you probably replaced them

 

You need to calibrate powertop, too. Then when you run it, ot the last tab it gives you a list of things that are not optimal and allows to fix them (temporarily until the next boot). Check if there is something for your WiFi.

 

 

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

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

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

2020-03-15, 9:04 AM

Started researching on saving on WiFi power. 

It seems dynamic power-saving (DPS) is on.

 

iw dev wlp0s20f3 get power_save

outputs

Power save: on

 

Also checking the config file of NetworkManager:

[connection]

wifi.powersave = 3

3 means - powersave ON

Reply
Options

31 Posts

03-03-2020

China

26 Signins

255 Page Views

  • Posts: 31
  • Registered: ‎03-03-2020
  • Location: China
  • Views: 255
  • Message 18 of 22

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

2020-03-16, 2:33 AM

I also bought one X1Carbon 7 gen (20R1S05B00 i7-10710U).

   About ubuntu certified / support, I guess lenovo is a liar, and ubuntu certification helps them lie.


   Tried ubuntu 18.04.4 with X1C gen7, seems they did some adaptation work, 
     but still lack of some drivers or tools, such as 
      -  Battery charging manager

      -  Cpu fan speed manager

      -  Touchpad 3 or 4 finger gesture
      -  Fingerprint Readers

    

------
 

 wish to find the pre-install ubuntu image, or lenovo offical released drivers & tools

 

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

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

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

2020-03-16, 8:24 AM

@yurenchen 

please post it here if you find it.

Reply
Options

16 Posts

02-21-2020

Bulgaria

20 Signins

80 Page Views

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

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

2020-03-20, 7:46 AM

Just upgraded ubuntu... audio went out, suspend freezes... I'm at the end of my patience with this piece of $h1t!

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