jakeday / linux-surface

Linux Kernel for Surface Devices
2.6k stars 243 forks source link

Battery drain with surface book 2 kernel:4.19.23 #402

Open byackee opened 5 years ago

byackee commented 5 years ago

Hi,

Thx for work!!!

After install ubuntu 18.10 and apply this patch, my battery life is 4 hours with 100%.

capture d ecran du 2019-02-25 23-42-37

versipellis commented 5 years ago

What were you getting before? This seems par for course.

qzed commented 5 years ago

Do you have a version with the dGPU? If so, it might be running and consuming power. If you're not using it you may want to consider deactivating it (e.g. via this or this). Also you could try and set the powersave governor (cpupower frequency-set -g powersave).

byackee commented 5 years ago

Thanks for your response,

I have a DGPU, i try to desactivate it, but for cpu governor, i have this issue:

WARNING: cpupower not found for kernel 4.19.23-surface

You may need to install the following packages for this specific kernel:
    linux-tools-4.19.23-surface-linux-surface
    linux-cloud-tools-4.19.23-surface-linux-surface

  You may also want to install one of the following packages to keep up to date:
    linux-tools-linux-surface
    linux-cloud-tools-linux-surface

but i cant install theses packages.

byackee commented 5 years ago

For cou powersave, i do that:

sudo cpufreq-set --cpu 0 --governor powersave
sudo cpufreq-set --cpu 1 --governor powersave
sudo cpufreq-set --cpu 2 --governor powersave
sudo cpufreq-set --cpu 3 --governor powersave
sudo cpufreq-set --cpu 4 --governor powersave
sudo cpufreq-set --cpu 5 --governor powersave
sudo cpufreq-set --cpu 6 --governor powersave
sudo cpufreq-set --cpu 7 --governor powersave

but nothing change.

qzed commented 5 years ago

Hmm, If that and deactivating the dGPU doesn't do the trick I have no idea. You could monitor your CPU frequency and see if something strange is going on there.

hjr265 commented 5 years ago

@byackee This seemed to help in my case:

sudo cpupower set -b 14

And, this (to disable dGPU):

cat /etc/tmpfiles.d/acpi_call.conf
w /proc/acpi/call - - - - \\_SB.PCI0.RP05.PRP5._OFF