Running away from Mac? How come?
I’ve been a Mac user for 6 years. Back in 2012 I had been a really happy Gentoo user for many years, but by then some iOS development (a simple iOS “game” and a freelance project) moved me to OS X. In addition, I also take pictures and even make videos from time to time. So, switching to Apple was a nice move: I’d keep the good parts of a *nix sistem and get rid of Windows for the Adobe suite. In addition, Macbook Air was a great computer for its price, powerful enough and extra light.
I used two Macbook Airs (personal and work) for 4 years. Past year, when I wanted a more powerful machine, I moved to the new Macbook Pro (yes, the one with the infamous Touchbar). A ~$3k device. It should’ve been great. Spoiler: it wasn’t.
Here are some of my pains:
- The Touchbar is not a good addition. It provides no value at a cost: you miss the physical feedback of the buttons. I wouldn’t have chosen it, but it’s a must if you want a top of the line 15” device. The theoretical benefit is having a context-aware key set, but it just doesn’t work. I haven’t taken advantage of it a single time in a year and a half. Why would you look at the keyboard? For context-aware interface you already have the UI, and for quick functions you have shortcuts. Anyway, I wouldn’t have got rid of it just because of this.
- The infamous keyboard. During the last weeks, 5 keys were malfunctioning. Really. Throughout my life I’ve used ~15-20 keyboards in a daily basis and this is the first time that a keyboard has been a problem. It’s not even the first generation of the design, which was introduced for the Macbook, so there’s no single excuse for this. At least, Apple has conceded.
- In CARTO we use Vagrant and Docker A LOT, specially at backend. Performance is far from great in Mac, and Data team deal with large datasets, so this is a huge pain and source of frustration. It’s not only slow: long tasks on USB drives with NTFS format would hang (I corrupted a PostgreSQL 4 times running batches), and a simple
rm -rf node_modulesmade the system crash. This is arguably not a macOS issue, maybe it’s just that Linux is a much better fit for me.
- Battery didn’t last 4 hours with basic use. Not even 3h with videoconference.
- A lot of small annoyances:
- For some reason, switching among tasks that were maximized to occupy full desktops (and I was a heavy user of that) stopped working.
- Some that might not be directly macOS fault, but wasn’t mine either: Tunnelblick wouldn’t deal with VPN DNSs properly (Ubuntu does, with a nice native UI).
- HDMI support was horrible (at least with my monitor, until the last update.) For more than a year, plugging my external monitor always led to a blue screen that was only fixed by locking and unlocking (?).
- My monitor has a USB Hub where a Ethernet adapter is plugged. 90% of the times that I plug the computer back I have to unplug and plug the adapter for it to work.
- About the last 2 complaints: no, an official Apple hub didn’t fix it either.
- An additional external power adapter costs 90€, and it doesn’t even includes the needed USB-C (which Apple sells at 30€).
So, I asked for a computer change. Other person in CARTO (designers? frontenders?) can enjoy the powerful Macbook Pro more than I would, and my life might be happier.
Dell XPS 9570
After some research, I chose the XPS 9570. In fact, I chose the 9560, but when I was going to ask for it the announcement of the new model was too close, so I preferred waiting :). XPSs are known as good machines for developers, with good Linux compatibility. Highlights:
- Did you know that a laptop can be thin enough and still keep USB 2 and HDMI ports? Mind-blowing!
- I admit that I wanted the higher resolution one, but 4k for a 15”4 laptop is certainly an overkill. FHD screen is nice enough and improves battery live.
- While it’s slightly wider it’s slightly “shorter” than the Macbook Pro, so the size is more or less equivalent. I use a vertical layout for my displays (it’s feels better for my neck), placing the laptop below my main monitor, so those dimensions happen to be more comfortable to me.
- The webcam is placed under the screen. I guess that it makes the frame thinner. That’s nice, but I look like Jim Carrey at Bruce Almighty during the meetings. That might cause me a meme, but it’s still a good tradeoff :). If I could upgrade my iPad to iOS 10 I’ll try using it for videoconferences, but that’s no longer true :(. BTW, 0 problems for webcam, sound or microphone. It just works.
- ~$1000 cheaper than the equivalent Macbook Pro.
- Keyboard seems to work, so far. Crazy.
Although I love Gentoo, I don’t have too much time and my Linux skills are a little rusty, so I kept things simple and installed Ubuntu. There are plenty of guides for the 9560. Read this first, and this, and other useful references:
- XPS 9560 and Ubuntu.
- DELL XPS 9560 - The Perfect Linux Laptop? video series + the Full List of Changes.
- Change SATA Operation from “RAID On” to “AHCI”, including restart into safe mode.
- Disable Secure Boot –> Secure Boot Enable.
- Enable General –> Advanced Boot Options –> Enable Legacy Option ROMs.
- POST Behavior –> Fastboot –> Thorough.
- Turn off device encryption. I’m not 100% sure if this is needed, but I think it is if you want Ubuntu to be able to find the drive.
- Resize partition to make room for Ubuntu.
- Ubuntu installation:
sudo dpkg --configure -a sudo apt-get update sudo apt-get upgrade -y sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get install nvidia-390 sudo reboot
In addition, this also fixes an issue that wouldn’t allow Ubuntu to shutdown or reboot.
Read this and this to learn a couple of things about sleep levels. In addition to that, I had to expand swap size beyond my RAM. With that and
/etc/default/grub I have a working suspend mode that wastes almost no energy.
As usual, graphic card drivers are a pain. As I don’t take advantage of the nVidia card at Linux*, I chose to power it off by removing nouveau module. I also set powertop to autotune on boot. Although I haven’t tested it yet, that should grant ~10h of battery autonomy.
*: this might change soon, as I’m considering giving Darktable a try.
For Docker to work without
sudo you need this:
sudo usermod -aG docker USERNAME
IntelliJ is my main development environment. Although it’s available through Snap (
sudo snap install intellij-idea-ultimate --classic --edge) you still need JetBrains Toolbox for license management and sync settings, so it’s not useful enough. In addition, Toolbox is a nice launcher that helps picking recent projects.
Spotify, though, can be installed with Snap:
sudo snap install spotify.
/home/USERNAME/snap/spotify/16/.config/spotify/Users/USERNAME-user/prefs and add
storage.size=1024 to reduce disk usage from 10GB to 1GB.
I used Linux for years, but I moved to Mac ~7 years ago. Although some of the configuration files (such as
.vimrc) might be taken from my old
.dotfiles repo, I created a new, simpler configuration files repo from scratch.
I’m trying Lepton as a Github Gists client.
Sound output disappearing
From time to time there’s no sound and only “Dummy output” appears at sound configuration. Running
pulseaudio -k && sudo alsa force-reload usually makes it work again.
- I might’ve spent ~3 days installing and configuring stuff. But running anything inside Vagrant with LXC support is SO FAST that I think that I’ve already paid it off.
- Gnome is very user friendly, specially for a developer. Built-in support for VPNs (with good DNS resolution), options to restrict background downloads in some WiFis (for phone tethering), task switching works, no matter the status of the window…
- :heart: USB ports.
- Trackpad is pretty good and big enough.
I still sometimes lose the focus because I trigger clicks, thoughI’ve disabled “tap to click” and I’m happy.
- Keyboard layout is slightly different, I still have to get used to it as well, specially because I’m using FXX and Fn a lot. Mac Pro butterfly keyboard felt slightly better but, as you know, it’s broken. Dell one might be the second best I’ve ever used after that one, and hopefully it will last longer.
- In order to make “workspaces” (“virtual desktops”) span both displays in Ubuntu you have to install Gnome tweaks application.
- Research about nVidia drivers.
- Gentle power down: shutting down kills applications without mercy, and Chrome and Firefox think that they crashed.
- Fingerprint reader doesn’t work in Linux yet, there’s no available driver.
- I need Windows for my amateurish Lightroom, Photoshop and Premiere tasks. I’ll give Darktable a try.
- Gnome can’t remember the applications that you were running when you logged out. I’ve workarounded it with “startup applications”.
- Three finger gesture to display running applications. I workaround it with the simpler task switcher shortcut and the worplaces switcher shortcut, but it’ll be hard to forget (although workarounds are arguably faster).
- Terminator (still) doesn’t support native tmux integration (like iTerm does).
I’ve already spent more than two weeks with this setup and I’m really happy. In my case, there’s no single reason to stay with Apple for software development (I’m not alone here). For me, this computer with Linux is just better, faster and cheaper. Let’s revisit this in some months!