Skip to content

Instantly share code, notes, and snippets.

@isgroup-srl
Last active May 22, 2020 09:40
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save isgroup-srl/1b6bcd6419db575efb30f4bc2096642a to your computer and use it in GitHub Desktop.
Save isgroup-srl/1b6bcd6419db575efb30f4bc2096642a to your computer and use it in GitHub Desktop.
Dell XPS 13 (9370) 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment