Recently I got myself a Dell XPS 13 9370 (early 2018) Develper Edition with Ubuntu preinstalled. Well, Ubuntu is surely not my favourite so one of the first things I did was to delete Ubuntu and (try to) install Debian. Here I try to summarize my struggles and several solutions I found for the various problems. Also, I will give my humble opinion on this machine.
I do absolutely not aim to circumvent the DebianOn project but rather write this down for my own documentation (as most things on this site).
But first things first. I bought this notebook after lots and lots of research and was a little scared that I would be disappointed. Some people were very negative about it, but my main concern was it has no more USB A connectors and no more RJ45 Ethernet connectors (I prefer wired Ethernet for installation). Also, I was “afraid” of the glossy screen even though I got the non-touch version.
After using the XPS 13 now for a little more than 1 month I came to the following verdict.
I got the machine with these specs. They are more than sufficient for me as I still have a desktop with more power for heavy work.
I just found one negative thing about this machine so far. I am neutral about two things and I like all the rest
This is by all meant not a review! Just my personal, subjective opinion.
Let's get to the reason why this page even exists: Debian
One thing in advance: almost everything works out of the box, just a few things to take care of. As already mentioned in the News I used several information sources.
Many information sources will tell you to to update to the latest BIOS. This is not actually necessary but I recommend doing that anyway. Upgrading the BIOS on the XPS 13 is easy, just place the BIOS executable in the EFI partition
/boot/efi (Linux makes life a lot easier than Windows ) and on boot you can press <F12> for the one time boot menu to choose “BIOS Flash Update”. There you browse to the file and start flashing (don't forget to attach the power supply).
Some preliminaries are outlined in the several information sources already, I will summarize the important stuff. By the way, I always refer to BIOS when I mean the UEFI Firmware Setup because BIOS simply flows nicer
This will give you a smooth Debian installation and everything will work out of the Box, with two exceptions that gave me a headache.
One of the two headache-generating issues was the Wifi. This system comes with the Qualcomm Atheros QCA6174 802.11ac (Killer) controller and many people have lots of problems with that.
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
In previous models people even switched the Wifi card for an Intel card. In the 9370 this is no longer possible however, the card is soldered on-board. The latest available firmware version that gets delivered with Debian is (at the time of writing this) 20170823-1 which will give you a connection, but an unstable one. At first I was looking into the Wifi power management and disabled it, but later I found out that was not the issue.
To solve the connection issue, the latest firmware is needed. You can get it at GitHub and follow these steps to install them.
/lib/firmware/ath10k/QCA6174and delete the whole directory.
tar czvf ~/QCA6174_old_$(date +%F).tar.gz /lib/firmware/ath10k/QCA6174
rm -Rf lib/firmware/ath10k/QCA6174
/lib/firmware/ath10k/(I used softlinks).
lshw -c Networkif the latest firmware is loaded.
As Buster is still young I assume this will be long solved until it will be released. For me this solved all connection issues with intermittent disconnects.
Often, you will find the suggestion to disable power management of the Wifi card. For me this did not help but for the sake of completeness and also because it was difficult to find a reliable way to do so I will document it anyway.
There are various approaches to disabling Wifi Power Management, from adding a simple
iwconfig <dev> power off> in rc.local to creating udev rules that should do that for you. For me these all did not work, but a simple script in
/etc/network/if-up.d did the trick for me:
#!/bin/sh /sbin/iwconfig wlp2s0 power off
Make sure the file is executable and it will be executed every time the interface is brought up. Of course you should replace <wlp2s0> with the name of your device
The GPU in this XPS 13 is an Intel UHD 620 graphics card.
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
If you install a standard system and want to use hardware acceleration you will experience lots of flickering and screen redraw issues however. Personally I love the desktop cube, not only for its beautiful eye candy, but also for its functionality. Due to this and the discontinuation of Compiz I am a KDE user these days (meaning I have not tried other Window Managers). In KDE (Buster version) you can set the Compositor to use either OpenGL 2.1, OpenGL 3.0 or XRender. In OpenGL 3.0 the problems are less likely to occur from my experience, but still too often to be workable. So after using XRender (and thus no cube) for a while I finally found the solution.
In the Debian Wiki article on graphics cards there is one small but significant sentence:
If your graphic card is etc. 2007 and newer, try uninstalling xserver-xorg-video-intel and use the builtin modesetting driver instead.
So, in the end, simply doing a
apt-get purge xserver-xorg-video-intel solved the problem and I can happily use hardware acceleration. Every now and then there is still some flickering, for example after waking up from sleep. A simple reboot will fix this.
Lately however, after some Plasma updates, the xserver-xorg-video-intel package is doing a better job again. You should try both to determine what works better for you.