syerad
2/29/2020 - 4:37 PM

Powermanagement DellXPS

The definitive guide to power optimization of your Dell XPS 13 (9370) 2018 with Intel GPU and 16GB of RAM.

Power optimization

Install tlp and powertop.

apt install tlp powertop

Enable the tlp service at startup.

systemctl enable tlp

Create a powertop autotune systemd startup script.

https://blog.sleeplessbeastie.eu/2015/08/10/how-to-set-all-tunable-powertop-options-at-system-boot/

nano /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune

[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune

[Install]
WantedBy=multi-user.target

Enable the powertop tuning at startup.

systemctl daemon-reload
systemctl enable powertop.service

Sleep Mode Power Usage

https://www.reddit.com/r/Dell/comments/8b6eci/xp_13_9370_battery_drain_while_suspended/dx4ftc5/

cat /sys/power/mem_sleep - you should see s2idle and deep, with one surrounded by square brackets to show it's activated. I suspect you have s2idle highlighted (the poor sleep state). To fix, echo deep > /sys/power/mem_sleep (as root).

https://gist.github.com/greigdp/bb70fbc331a0aaf447c2d38eacb85b8f

cat /sys/power/mem_sleep
echo deep > /sys/power/mem_sleep
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"

Intel GPU Power Saving

https://gist.github.com/greigdp/bb70fbc331a0aaf447c2d38eacb85b8f https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)

nano /etc/modprobe.d/i915.conf
options i915 modeset=1 enable_rc6=1 enable_fbc=1 enable_guc_loading=1 enable_guc_submission=1 enable_psr=1