Battery drain

I use Fedora 42 workstation Gnome edition on Lenovo ThinkPad E15
beside Fedora I have also Windows 11 on same SSD as Fedora.

I monitor my ThinkPad and I see if I power off by Fedora 42 Gnome edition from Gnome, next time I turn on it, I see battery is use during turn off, for example before battery indicator show 54% of battery is remaining after turn off it show me 40% of battery is remain.
but when I turn off from Windows 11, I see battery draining less than Fedora 42.
Please guide me find why this is happen and where I made mistake during installation and config.

  • Install powertop (sudo dnf install powertop)
  • Run powertop to report the power usage in an html page and send the results to a pastebin. (sudo powertop -r powertop.html && fpaste --confirm powertop.html)
  • Post the URL it gives yuou back here.

This will show us what processes are using the most power. If you can do this on a quiet machine (no audio playing, no video, etc that would be useful, or you risk tainting the results with erroneous readings)

This sounds more like “suspend” than “power off”
With suspend the system remains minimally powered on, and everything remains active in memory. With power off the system is completely shutdown and there should be no additional power usage.

1 Like

OK

I power off by Gnome , maybe I should power off it by termnal

check settings power general – general-Power button behavior

1 Like

I do not use Power button to turn off, I use

I

shutdown now

powertop output looks totally fine - you’d get a smidge more life if Telegram were not running, but it would be measured in seconds per hour. Wakeups are not excessive.

If you were super keen you could power off the ethernet adaptor and the wireless radios when you were not using them, along with bluetooth, but that would give it’s own annoyance of having a lag every time you wanted to utilise them, if they’d been idle long enough to sleep.

All in all, there’s nothing “wrong” with the power usage when the machine is awake, so it’s bizarre that you’re seeing a change in battery level when the machine is powered off (assuming it IS being powered off and not just put into suspend, as other have already mentioned).

Many systems support wake-on-lan and wake-on-wlan. This should put network interfaces in low power modes, but linux power management needs to work with vendor firmware, so there are often issues while waiting for firmware updates. If you don’t need to wake the system remotely, you should be able to disable network wake-up in UEFI/BIOS.

I use this workstation from Fedora 37 to Fedora 42, it upgraded from 37 to 42, is something remaining can make this problem from before and during upgrade?

I doubt anyone can easily answer the question about upgrades that have lasted over 6 releases of fedora, although there really should be nothing causing this except failure to fully power off. Wake on (w)lan could affect it as mentioned above since enough power has to be active to keep the interfaces active while waiting for a wake signal.

As stated before, a full power off should not continue to draw power while suspend does.

No.
Did you check the power>general>power button behaviour
or test with
shutdown now
command?

Newer versions of linux often have conflicts with existing firmware. In some cases there are hardware-specific workarounds that are removed in favour of newer standardized cross-platform “standards”. In other cases, existing hardware-specific code is inadvertently broken with updates because linux devs have newer gear. In that case it is up to user community to find the specific change and file a bug report with enough detail to allow someone without access to the hardware to fix the issue.

If you have access to a thermal camera you may be able identify components that stay warm with the system is supposed to be “off”.

I will check it tonight and tomorrow and I will say what happen.
I have

1 Like

Can someone explain about these two options about battery charging, which one is better

The second option stops your battery charging at 80%, which increases the lifespan.

You should also recharge when you hit 20%

2 Likes

Does this occur in general or only with the current kernel 6.17.4?
Try to replicate with an older kernel version e.g. 6.16.12.

The kernel is responsible for putting devices into the lowest possible power states. Even at S5.

I check shutdown now 24 hours ago, Battery Percentage was 33% and right now is 19%

When you say that shutting down from Windoze drains less battery overnight, how much is the difference?

This sounds like a battery hardware issue to me. run
upower -i /org/freedesktop/UPower/devices/battery_BAT0
and see what the health is, more info on the battery health commands at https://www.cyberciti.biz/faq/check-see-laptop-battery-health-in-linux-command/

1 Like