Live data from Hacker News

Running Linux on My MacBook

djhworld.github.io

41–50 of 179 posts

Re: Running Linux on My MacBook

#41

Thank you for writing this! Whenever I see people using Linux as their main laptop OS, I'm struck by remembering the amount of tinkering needed circa 1999 which was the last time I did it. Having read this -- the custom scripts, the "suspend still doesn't work properly" -- it feels like that's still the case.

> Whenever I see people using Linux as their main laptop OS, I'm struck by remembering the amount of tinkering needed circa 1999 which was the last time I did it.

IDK, I finally broke down and replaced my rickety ~8 year old laptop and everything (aside from the fingerprint reader) worked right out the box -- surprisingly since it is also a fairly new model so I expected some tinkering while the drivers caught up to mainline linux.

Actually...I can't remember the last time (other than Gnome being stupid with defaults) I've had to mess with a basic install and I've been using linux as my primary OS since around '00.

Re: Running Linux on My MacBook

#42

Thank you for writing this! Whenever I see people using Linux as their main laptop OS, I'm struck by remembering the amount of tinkering needed circa 1999 which was the last time I did it. Having read this -- the custom scripts, the "suspend still doesn't work properly" -- it feels like that's still the case.

Buy a Linux certified laptop like the many from Dell or Lenovo and it'll work out of the box.

Re: Running Linux on My MacBook

#43

Earlier quoted context omitted.

On the one hand, yes, Apple is generally extremely hostile towards users tinkering with their platforms, be it iOS or macOS, so it theoretically should be harder. On the other hand, on the pre-2016 models, the components in use are largely off-the-shelf components, much like other manufacturers. The major difference between Apple laptops and other vendors laptops is that the variation of components in use is signific…

Pre-2016 will start dying though. For new hardware, we're pretty much left with macbook which is definitely broken, or literally anything else, which may be broken, but often isn't. If you're going for brands, most Dell, Thinkpad, HP, etc. (not lowest price) laptops will work just fine with linux. Some even come as certified compatible.

The Dell XPS 13 and soon some Thinkpads [1] even come pre-installed with Linux.

[1] https://fedoramagazine.org/coming-soon-fedora-on-lenovo-lapt...

Re: Running Linux on My MacBook

#44
post #14

Converting a machine that works well out of the box into a machine that requires custom scripts and constant tinkering to handle simple tasks seems like a waste of time.

"Works well".

I have a 2019 mbp16. It does not "work well". For me, the graphics driver crashes me out of my login session pretty much daily, the network stack occasionally shits itself (reboot) and various internal processes (the... window server?) like to use >50% CPU for no reason at all.

Looking around, I'm not the only one who has issues.

Re: Running Linux on My MacBook

#45
post #4

Author here. Post is a bit rambling but I just wanted to document somewhere the things I encountered along the way with links to resources, to save someone having to trawl the web for it next time.

How is your Macbook handling VMs running for like 8 hours a day? I use docker (which runs inside a hyperkit VM on OSX) and it absolutely toasts my Macbook. To the point where my screen has started showing black lines on top and bottom due to overheating.

Re: Running Linux on My MacBook

#46

Thank you for writing this! Whenever I see people using Linux as their main laptop OS, I'm struck by remembering the amount of tinkering needed circa 1999 which was the last time I did it. Having read this -- the custom scripts, the "suspend still doesn't work properly" -- it feels like that's still the case.

> it feels like that's still the case Very much not true these days. Linux on laptops is (in overwhelming majority) a great experience today. I suggest you just try out one of the live images for Ubuntu or Fedora. On a tangential note I'm surprised that it's still relatively common on HN to see comments like "Linux on desktop doesn't work" or "Java is slow". That was 20 years ago. The world has moved on.

Don't forget the new uninformed stick to beat jvm langs with: they're hard to deploy unlike new languages where I upload a single binary.

Re: Running Linux on My MacBook

#47
post #8

Earlier quoted context omitted.

I think the real answer is buy a laptop that just works and don't bother with Apple devices. However it's nice to be able to re-purpose old hardware, even if it's a bit of a hill to climb :)

Yes, a much easier path would have been to eBay the MacBook and spend the money on a second hand ThinkPad. You would get more bang for your buck and less headaches.

Well, maybe. My Thinkpad experience has been good, but not amazing.

I own two Thinkpads, a 5th generation X1 carbon and a 2nd generation X1 extreme. Both very nice machines, but not perfect.

On the newer machine in particular, the X1 extreme, I've had many annoying issues.

Suspend did not work for over a year after purchase. If the laptop was left with the lid shut it would run out of battery in a couple of hours. It finally started working with Fedora 32. I don't know if it was fixed because of kernel updates or firmware updates. The laptop still uses way too much power when suspended, but at least I can stick it in my laptop bag for a few hours.

Until Fedora shipped with Gnome running under Wayland, the integrated graphics were too slow to acceptably render the desktop at 4K, which is the native resolution of the panel, and the only resolution choice I am presented with in Gnome. I enabled the nvidia GPU with the proprietary driver, but then I'd get less than 2 hours of battery, and the thing could cook an egg. Compared to my 2012 Macbook Pro, which also has integrated graphics, the experience is much worse, even today, with Wayland.

Battery life is not as good as Windows by default. For some reason, every Linux user with a laptop has to install tlp and powertop just to get decent battery life. Kernel development seems to consistently focus on this, and I'm confident than the situation is incrementally improving.

The synaptics touchpad is hot garbage. If you compare it to a Mac's touchpad, it's just a tragedy how bad it is. I've used both the synaptics driver with Xorg and libinput with Wayland. There is noticeable lag when moving the mouse cursor from a resting position. The cursor will stay where it is, and then jump to where it ought to have moved to. This produces a very jarring UX. Interestingly, the nipple mouse does not have this problem. Finally, the scrolling gestures don't always work, depending where on the touchpad you initiate them.

The keyboard would reproducibly lose keystrokes! This was not fixed until last week by a Lenovo firmware update, and it produced a lot of irritating typos when conversing with coworkers.

Not that I care, but the fingerprint reader doesn't work.

The sound is too quiet even at full volume, so you have to tweak the system config to allow you to adjust it past its default max volume.

I use Linux as a workstation operating system because I write software destined to run on Linux. Despite these problems, I would gladly take them over having to virtualize my entire workflow on a Mac, which I find incredibly painful to do. But these quality problems have left me wondering if Lenovo was the right laptop brand to buy. I left a negative review with Lenovo, after they solicited me to write one, and instead of trying to resolve the problems, they simply refused to publish the review.

Re: Running Linux on My MacBook

#48
post #2

I used i3 for a long time. After a while it didn't feel that fast. Yes switching was very quick but often it got in the way. So many applications have little windows that pop up. They didn't play nice with i3. I also had the issue of a limited keyboard and shortcut keys. I use a Kinesis advantage. I don't have a windows key. So I used alt as a super key. This meant that I often couldn't use application shortcuts. It…

The biggest issues I've had with i3 are graphics related.

The first is drawing at X's borders when having multiple panels connected leads to flickering and graphical artifacts. This means triggering any window/video to go full screen while you have output on more than one monitor. It's not a unique problem to i3, but most other WM's handle window drawing in a different manner.

The other issue I find more annoying. That's tearing while scrolling and playing video unless a compositor like compton is run. This appears to not be a problem for a lot of people, in the way that using frame interpolation on tv's doesn't bother them. For me though, it drives me nuts. Compton by the way hasn't had development in over 3 years.

Re: Running Linux on My MacBook

#49

Earlier quoted context omitted.

For automatically switching screen layouts when plugging/unplugging, look at autorandr.

TIL - thanks!

You’re welcome.

Also, just remembered another neat piece of software: flameshot. It’s basically macOS’s screenshot editor but even better IMO. I’m not sure whether you can bind it to macOS keyboard shortcuts though.

Re: Running Linux on My MacBook

#50
post #14

Converting a machine that works well out of the box into a machine that requires custom scripts and constant tinkering to handle simple tasks seems like a waste of time.

I'm running Linux on a 2015 MBP as a server. Rest of the household are Macs only, but I figured it would be useful to have a server and stick it into a closet.

It's rife with issues. Power management is odd, brightness sometimes doesn't work, and most annoyingly, the keyboard and trackpad sometimes stops working after 2-3 weeks of 24/7 operation.

I solved most of the issues by disabling the GUI and just letting it boot to the console. I also set mitigations to off in GRUB and it ran cooler. Not ideal with security in mind, but it's just a home server after all.

Post reply on HN