search

Thursday, January 2, 2020

Dell Precision 5540 - Battery drains in sleep mode

Run the following command to check the suspend mode:
cat /sys/power/mem_sleep 
If the output looks like this:
[s2idle] deep
It means that very inefficient suspend mode is active (drains battery from 100% to 0 in 9 hours). To enable "deep" mode, edit file /etc/default/grub and append "mem_sleep_default=deep" to GRUB_CMDLINE_LINUX:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet mem_sleep_default=deep"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
Apply changes:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Restart your laptop and verify changes:
$ cat /sys/power/mem_sleep 
s2idle [deep]

No comments:

Post a Comment