gadg-et-oid [gaj-it-oid]


1. having the characteristics or form of a gadget;
resembling a mechanical contrivance or device.

Updating a Dell XPS 13 9370 to Ubuntu 18.04

The Ubuntu Dell XPS 9370 is a fantastic portable workhorse, but I’ll extol its virtues in another article. One of its downsides is that it comes with the now fairly dated Ubuntu 16.04, this is because 16.04 is the long term support release that, presumably, gives Dell a stable base to build upon for a well supported system.

16.04 is showing its age, though, and the many, many UI and UX improvements in 18.04 alone make it worth the – somewhat painful – process to upgrade.

Note – Note 18.04.1 is out and if you’re running Ubuntu 16.04 on your XPS 13 you should be able to – at least attempt to – update with the “do-release-update”. You should “apt get update” and “apt get upgrade” before attempting this. You may also find you are prompted that a new release is available. I’ve successfully completed a 16.04 -> 18.04.1 upgrade on an Intel NUC, but (since I’m already running 18.04.1) not on the XPS 13. If you’re not a fan of Weyland then you can edit “/etc/gdm3/custom.conf” and uncomment “WaylandEnable=false” before rebooting into your new OS to disable Weyland on your XPS 13.

First off, if you’ve already started using your 16.04 XPS 13 then this article isn’t for you. I had no end of trouble attempting to *upgrade* a system from 16.04 to 18.04. Trying to install 17.10 and then 18.04 resulted in a boot loop. Trying to force an upgrade straight to 18.04 resulted in a boot loop. Suffice to say I had something of an adventure. The steps I’ll walk you through here will be for a fresh install, uncoupled from Dell’s shipped Ubuntu but- insofar as I can tell- still working fine with the display, keyboard, trackpad, function keys, WiFi and Thunderbolt/USB-C (well insofar as Thunderbolt/USB-C ever work anywhere close to fine).

A @dell XPS 13 9370 running Ubuntu 18.04 and hooked up to a @ZOTAC_UK external GPU enclosure with a GTX 1060- this is basically my ideal system setup. Shame itā€™s all loaner gear šŸ™

— Phil Howard (@Gadgetoid) 6 July 2018

Okay, let’s get started.

Preparing a boot microSD

Okay, so the Dell XPS 13 9370 is absolutely brimming with USB Type-C ports. They’re great, I love them, and they are the future. But they are also a dongle nightmare pain in the backside most of the time. There’s no regular USB port to insert a USB drive in so instead we’re doing to use a good ol’ micro SD card. Anything 8GB or larger will do.

You will also need the Ubuntu 18.04 installation ISO.

If you’re preparing the boot media with a Windows system (this is what I did) then I recommend Rufus. If you’re using the Ubuntu system that you’re upgrading from (assuming you haven’t already managed to trash it) then use the already available Startup Disk Creator. If you’re using Rufus make sure you use GPT and burn the image in DD mode, I had installation issues the first time I tried file copy mode.

Booting from the microSD

Push the microSD securely into the SD card slot on the right hand side of your XPS 13 and fire up your computer from a cold boot. Hit F2 to enter the bios, and go to the Boot Order menu. You need to bump the SD card up to the top of the boot order, so that it boots first.

Upon boot make sure you pick the “Install Ubuntu” option, and *not* the “Try Ubuntu” function. There’s some quirk of display scaling on the 18.04 installer that makes it crash in a booted environment, and the install simply wont work. The straight up “Install Ubuntu” option is much smoother.

From here, opt to replace the existing installation of Ubuntu 16.04- although if you’re given the option and have some personal files/settings in place you may have luck upgrading it.

BIOS Upgrades

As far as I can tell the automated BIOS upgrade utility normally available on pre-installed versions of Ubuntu 16.04 ( I was prompted for a BIOS upgrade on the Precision 5520 ) will be broken if you roll a vanilla install of 18.04. You can get around this quite easily by downloading the bios .EXE file – yes the whole, compressed, Windows-compatible .EXE file – stuffing it onto a FAT32 formatted SD card, and hitting F12 on boot to enter the one-time-boot menu and switch into BIOS upgrade mode. The BIOS is able to parse and install the .EXE file with no trouble whatsoever and I managed to bump this computer from 1.2.0 to 1.3.2.

Everything is a GUI now! Updating the XPS 13 9370 system firmware from 1.2.0 to 1.3.2 to see if it fixes Thunderbolt/USB-C weirdness.

— Phil Howard (@Gadgetoid) 6 July 2018

How does it fare?

So far I’ve been running 18.04 on this XPS 13 for only a matter of hours so I’m not sure what trouble I might run into, but I’m connected to WiFi, I’m successfully writing an article and not an hour or so ago I was playing Natural Selection 2 with a GeForce GTX1060 in an e-GPU enclosure. I’d say it works pretty well, so if you’re looking to grab an XPS 13 with Ubuntu and save a few coins you’d otherwise spend on a Windows license then you should be good to stick 18.04 on it right out of the box. Hopefully after the release of 18.04.1 in late July Dell will consider moving officially to the new LTS release, since support for 16.04 will expire in April 2021 which is would be slap in the middle of the kind of lifespan I’d expect for a new laptop.

Ubuntu 18.04 still has dozens of touchscreen quirks, though. The “Show Applications” button in the bottom left corner never really knows what it’s doing, sometimes I have to press and drag on it. No amount of single or multi finger drags will scroll Firefox and pinch gestures do nada- both of these things work in Chromium though so you could swap to that for casual touchscreen use. Although it seems to interpret scrolling as clicks far too often, so it’s far from perfect.

Oh and I’m infatuated with the XPS 13″ series. It’s the computer I wish I’d picked instead of the Razer Blade, but it’s still early days for e-GPUs and I wanted to make sure I could game without having to jump through too many hoops (prohibitive cost being one of them). The XPS 13 9370 is no exception, it’s a premium little machine through and through, and the 4k touchscreen really pops.

Honestly- I’d probably still use Windows 10 as my primary OS since Ubuntu appears to have some trouble with my Thunderbolt 3 dock, and doesn’t much like me hot-plugging/unplugging the e-GPU either (something that most of the time works fine on Windows).

Update: WiFi, Bluetooth, 18.04.1, System Updates, Etc

After around a month running 18.04 successfully on the XPS 13 9370 I’ve run into precious few problems.

What Works:

LOL Steam šŸ˜€

— Phil Howard (@Gadgetoid) 24 August 2018

Steam supports UI scaling on Linux, but it’s not enabled by default. If you have a QHD display and want Steam to play nice at 200% scaling you should fire it up, go into Steam -> Settings -> Interface and check the “Enlarge text and icons based on monitor size” box. Sorted:

Aha found the magic tick box to make @steam play nice with UI scaling in Ubuntu 18.04.1 on the XPS 13!

— Phil Howard (@Gadgetoid) 24 August 2018

What Doesn’t Work:

Tap To Click

I’ve generally had Tap To Click disabled since it also enables “Tapping Drag” which I’ve found causes me to accidentally drag browser taps out of my browser, words around in text documents, and icons off the Dock (causing some weird icon-stuck-to-cursor glitch).

This is largely due to the libinput driver which replaces “xserver-xorg-input-synaptics” entirely and trades customisation and calibration options for really quite effective palm rejection.

Not all is lost, though, since “Tapping Drag” can be disabled. Just run “gsettings set org.gnome.desktop.peripherals.touchpad tap-and-drag false”* and poof, it’s gone, permanently.

* Note: Despite claims this wont work in X11, I have Wayland disabled and it works for me.

Firmware Updates:

Firmware updates for the 9370 are appearing in Ubuntu Software including the Thunderbolt NVM for Xps 9370 (23.00 to 28.00) update, and the XPS 13 9370 “Intel ME Firmware” System Update ( to for the infamous INTEL-SA-00118 Spectre/Meltdown fix. *However* clicking these in Ubuntu Software doesn’t seem to work. I had to go into Terminal and run “fwupdmgr update” with the following results:

dell@Dell-XPS-13-9370:~$ fwupdmgr update
Downloading for XPS 13 9370 System Firmware...
Fetching firmware
Downloadingā€¦ [***************************************]
Updating on XPS 13 9370 System Firmware...
Decompressingā€¦ [***************************************]
Authenticatingā€¦ [***************************************]
Schedulingā€¦ [***************************************]
Downloading 28.00 for XPS 9370 Thunderbolt Controller...
Fetching firmware
Downloadingā€¦ [***************************************]
Updating 28.00 on XPS 9370 Thunderbolt Controller...
Decompressingā€¦ [***************************************]
Authenticatingā€¦ [***************************************]
Restarting deviceā€¦ [***************************************]
An update requires a reboot to complete. Restart now? [Y|n]:

This update didn’t appear to successfully apply the Thunderbolt firmware to 28.00, instead making it read as 0.00 so I tried the updater again:

dell@Dell-XPS-13-9370:~$ fwupdmgr update
No upgrades for XPS 13 9370 System Firmware, current is,,,
Downloading 28.00 for XPS 9370 Thunderbolt Controller...
Updating 28.00 on XPS 9370 Thunderbolt Controller...
Decompressingā€¦ [***************************************]
Authenticatingā€¦ [***************************************]
Restarting deviceā€¦ [***************************************]

After rebooting, it looks like the update took*.

* Note: I’ve been having trouble with the Thunderbolt firmware reading as 00.00 intermittently and claiming it requires another update. There are a few threads regarding Thunderbolt firmware on the XPS 13 9370, this issue on GitHub points out there’s a 33.00 update available for Windows but not yet in the stable releases for Linux:

And this bug report seems to suggest the 00.00 firmware issue is a known bug with an incoming fix:

Additionally, since the updates I performed above SYstem Firmware has, presumably, moved from Testing to Stable and I’ve installed it successfully via fwupdmgr.

To get the 33.00 Thunderbolt firmware I had to edit “/etc/fwupd/remotes.d/lvfs-testing.conf” and change “Enabled=false” to “Enabled=true”

Friday, July 6th, 2018, Personal Computing.