Battery life on my Legion

Hey there. I installed Ubuntu Mate on my Lenovo Legion Y7000P yesterday. I dual booted it along with Windows. Normally in Windows, I get around 5-6 hours of battery life. But in Ubuntu Mate, I'm not getting more than 1-1.5 hours of battery life. I have installed TLP and it's running in the background. I use the laptop mostly for Programming and have Chromium, VS Code running in the background. I started using intel instead of the nVidia 1060 GPU in the laptop. How do I know if something's broken and is the reason for the low battery life? Is there anything else that I can do? I am a student and I cannot carry the charger around since it's very heavy. I wasn't expecting the same life as windows but this is too low I feel. Thanks in advance.

You may be able to help the battery by installing an app from slimbook (slimbookbattery)
You can find instruction on installing it here.
Works well for me.

I installed it. I don't see any massive change so far. Seems to be giving me some extra 30 mins. I'll test it for some more days. Thank you for the advice.

Are you using the NVIDIA Optimus GPU switcher in Ubuntu MATE to make your system is properly switching between Intel/NVIDIA graphics. https://github.com/ubuntu-mate/mate-optimus

Yep. I'm using that. I already have it installed and I switched to Intel. :slightly_frowning_face:

It can be maddening at times to try and troubleshoot battery issues with Linux.

I'd recommend making sure you check to see if you have the most current BIOS.

Since you are running TLP you might want to check out TLPUI. You can look over the variety of settings that you can play around with to try and see if you have any luck in getting battery battery life.

You might also want to take a look at powertop. The user guide has the details on it and how to use it. It is available in the Ubuntu repos.

Good luck

Hello Yashwanth_Allakky

If you have not already checked this, you may find the output to be both interesting and perhaps useful :slightly_smiling_face: :

upower -i /org/freedesktop/UPower/devices/battery_BAT0

A question to those wiser than myself:

Is Linux battery performance affected by (i) UEFI versus Legacy booting, (ii) single versus dual-booting?

UEFI does not effect linux battery performance nor does single vs dual booting.

ACPI handles power management.

I ran the command and this is what it said. Do you see anything interesting? :confused:

    native-path:          BAT0
      vendor:               Celxpert
      model:                L17C3PG2
      serial:               93
      power supply:         yes
      updated:              Wednesday 23 October 2019 03:44:30 PM IST (80 seconds ago)
      has history:          yes
      has statistics:       yes
      battery
        present:             yes
        rechargeable:        yes
        state:               discharging
        warning-level:       none
        energy:              27.1 Wh
        energy-empty:        0 Wh
        energy-full:         48.2 Wh
        energy-full-design:  57.35 Wh
        energy-rate:         21.389 W
        voltage:             10.781 V
        time to empty:       1.3 hours
        percentage:          56%
        capacity:            84.0453%
        technology:          lithium-polymer
        icon-name:          'battery-good-symbolic'
      History (charge):
        1571825670	56.000	discharging
      History (rate):
        1571825670	21.389	discharging

Hello Yashwanth_Allakky

Looking at:
battery - energy-full:...............48.2 Wh
battery - energy-full-design:...57.35 Wh

I suspect that your battery is already ageing and loosing capacity.
As far as I know, Lithium batteries come to the end of their lives quite suddenly - that means they are very good almost up until the time they fail. However, I cannot tell if these figures indicate that your battery is that old.

It is well known that a notebook computer running windoze usually has much better battery duration than when the same computer runs Linux.

You could check your settings for "startup programs" (Control Center>Personal>Startup Applications) and see if there is any thing set to run all the time that you do not need. Bluetooth and WiFi running without being needed will drain your battery faster than necessary.