Skip to content

Instantly share code, notes, and snippets.

@greigdp
Created February 3, 2018 22:27
Show Gist options
  • Star 35 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save greigdp/bb70fbc331a0aaf447c2d38eacb85b8f to your computer and use it in GitHub Desktop.
Save greigdp/bb70fbc331a0aaf447c2d38eacb85b8f to your computer and use it in GitHub Desktop.
Dell XPS 13 (9370) Archlinux Install Notes

Install Notes - Dell XPS 13 (9370) 2018

The laptop works well on Archlinux. A few notes based on the installation guide for the previous version.

Intel GPU Power Saving

Per the Arch wiki, more power can be saved by creating /etc/modprobe.d/i915.confwith the following content:

options i915 modeset=1 enable_rc6=1 enable_fbc=1 enable_guc_loading=1 enable_guc_submission=1 enable_psr=1

(some of these options might be redundant; specifically PSR appears to be enabled by default, and modesetting is probably already in use)

Sleep Mode Power Usage

After initial installation, sleep mode appeared to be fairly inefficient, consuming not much less power than would be used in normal use with the screen off. Investigation revealed that Linux was trying to use the old s2idle means of sleep. This is not true S3 ACPI sleep. Check the sleep mode by doing cat /sys/power/mem_sleep and see whether the selected sleep mode (surrounded by square brackts) is s2idle or deep.

If it is not deep, add mem_sleep_default=deep to your kernel cmdline variable (for grub, edit /etc/default/grub and re-generate the grub configuration. Temporarily test this by echo'ing deep to /sys/power/mem_sleep and then put the laptop to sleep - it should take slightly longer to wake than before, and will consume much less power!

Of interest, the reported issue on the 9360 (2017 model) where leaving Thunderbolt boot enabled results in higher power usage after resuming from sleep appears to be resolved.

Expect power consumption of around 2 Watts when idle, with screen on low brightness, connected to Wi-Fi. Low power consumption continues after resuming from sleep.

@CNG
Copy link

CNG commented Feb 18, 2019

Mostly agree with @Venemo, I found errors in logs for most of the options that I found do not exists actually. But, I'm not sure about modeset=1 being default. On my Arch system currently, modinfo claims -1 is the default:

$ modinfo -p i915
modeset:Use kernel modesetting [KMS] (0=disable, 1=on, -1=force vga console preference [default]) (int)

And in fact that is what is enabled right now:

$ sudo systool -m i915 -av | grep 'modeset '
    modeset             = "-1"

Note I did find modeset=1 initially had no effect for me, and then I realized I had xf86-video-intel installed and did not need it. I hoped this was related to my problems with being unable to adjust the screen brightness since 2 weeks ago, but alas... :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment