News for hackers. Stuff that matters.
Re:macOS 10.15 Vista by ashishb on Wednesday October 09, 2019 @01:45AM (#21200386)
WiFi, battery, and sleep. Have these problems been fixed with Linux on laptops?
Re:macOS 10.15 Vista by ohazi on Wednesday October 09, 2019 @01:57AM (#21200448)
Wifi: The advice from five years ago was to select/buy the Intel wifi card. Those are the only ones I've used, and they've all Just Worked. Intel cards are the only option if you're buying a Thinkpad.

Sleep and hibernate: Works on every Lenovo I've used.

Battery: My most recent laptop gets around 8-9 hours with a new battery on a normal workload, and when it drops to 3 hours, I buy a new battery.

Re:macOS 10.15 Vista by haspok on Wednesday October 09, 2019 @03:57AM (#21201028)
On newer kernels (4.8+) and latest Ubuntu my Thinkpad L390 freezes consistently when I try to suspend. It's gotten a bit better with 5.0.0.31, now suspend works 50% of the cases when I select it manually from the menu, and the laptop is connected to power. Otherwise, 90% freeze.

Even my old trusty XPS 13 started not to go to sleep 1 out of 10 times. There must have been a serious regression in the kernel, but no one seems to care.

For this reason alone, I started to seriously consider giving up Linux on the desktop.

Re:macOS 10.15 Vista by neuronic on Wednesday October 09, 2019 @04:22AM (#21201150)
No Linux distro has ever just worked with Sleep and/or WiFi. My last Linux machine (Ubuntu) would never be able to connect to WiFi after sleep mode. Believe me, I tried everything you can think of and find in various StackExchange posts.

When a GRUB update destroyed my dual-boot setup and made my system completely unrecoverable, I ditched Linux and never looked back. Using OpenOffice or LibreOffice was also more akin to self-punishment usually seen in medieval monks.

As a student, all these problems were okay, but nowadays I don't have the time to constantly fight against my own OS to finally figure out that I have to adjust my fan speed rotation coefficient to make the third party WiFi driver work.

Re:macOS 10.15 Vista by zozbot234 on Wednesday October 09, 2019 @04:17AM (#21201130)
> There must have been a serious regression in the kernel, but no one seems to care

If the feature used to work reliably in older kernels, you could try and bisect the issue. There's a bit of work involved, but it's quite doable.

Re:macOS 10.15 Vista by majewsky on Wednesday October 09, 2019 @04:47AM (#21201277)
> Intel cards are the only option if you're buying a Thinkpad.

Not true. My Thinkpad E485 from late 2018 has either a Broadcom or a Qualcomm chip, but definitely not Intel. It works like a charm though. The bigger issue is the Realtek Ethernet NIC which has an annoying driver bug where it does not detect the carrier except when the cable is already inserted at boot time. Never buy Realtek if you can avoid it.

Re:macOS 10.15 Vista by hakfoo on Friday October 11, 2019 @02:54AM (#21222142)
Tell my E585 and its craptacular Realtek card that. I ordered an Intel card but it's been in weird foreign shipper hell for weeks.
Re:macOS 10.15 Vista by deltron3030 on Wednesday October 09, 2019 @02:17AM (#21200559)
Depends on the hardware manufacturer.

But if you're a regular laptop user the bigger issue is trackpad feel, if you're used to Apple devices or the new Windows drivers for trackpads, it's not acceptable. You're better off switching the way you work to using a window manager and shortcuts, like most hardcore linux users do at some point.

Re:macOS 10.15 Vista by wyclif on Wednesday October 09, 2019 @02:29AM (#21200617)
I really wouldn't want to use a Linux laptop for work unless I had a WM installed like i3 or dwm, so I could completely ignore the awful trackpad. Apple may be bad at some things, but trackpads are not one of those things.
Re:macOS 10.15 Vista by ohazi on Wednesday October 09, 2019 @02:40AM (#21200678)
Can't argue with that! Lenovo trackpads seem to alternate between almost usable and utter trash every few years. I usually just plug in a mouse...
Re:macOS 10.15 Vista by test1235 on Wednesday October 09, 2019 @04:39AM (#21201240)
I just got a t480s and I feel the trackpad is my main complaint ... it feels kinda plasticky and the responsiveness isn't quite there (e.g. phantom dragging).

Overall, the quality doesn't compare to my 2013 macbook air, but it does have some newer features which're nice.

Re:macOS 10.15 Vista by vetinari on Wednesday October 09, 2019 @06:34AM (#21201805)
Lenovos have trackpoint; why would you want to use trackpad, when you have the nub?
Re:macOS 10.15 Vista by deltron3030 on Wednesday October 09, 2019 @10:05AM (#21203360)
Trackpoints slow you down, a lot. They're good for more precise work like dragging bezier handles, not so good if you want to navigate UI's imo.
Re:macOS 10.15 Vista by vetinari on Wednesday October 09, 2019 @11:58AM (#21204424)
They have acceleration just like mouse has, so moving the cursor is not a problem. For quick scrolling, there is the middle button + nub (granted, this is not easily discoverable).
Re:macOS 10.15 Vista by bwat49 on Wednesday October 09, 2019 @07:40AM (#21202181)
That's a bit of a loaded question given the huge variety of hardware configurations out there, and the fact that most vendors only test with Windows. Linux hardware compatibility has improved vastly over the years, but I don't think it will ever be 'fixed' for all possible hardware configurations.

For wifi, anything with intel wifi will work fine. Atheros and Killer generally work fine as well. Basically, just stay away from Broadcomm and Realtek.

For battery, ymmv. the 2 most recent laptops I've used with linux (a dell xps 13 and a system76 darter pro) get decent battery life (8-10 on the dell, 5-8 on the system76). On the dell, the battery life wasn't much different than windows 10 on the same machine.

For sleep, this usually works fine, but can be broken on certain hardware. On the dell laptop sleep worked, but there was an annoying issue where sometimes upon resume the cpu would get stuck at the lowest frequency.

On the system76, I initially had an issue with a 10-20 second delay resuming from sleep but that was fixed with a firmware update. Presently, sleep/resume works without issue 100% of the time for me on that machine

Re:macOS 10.15 Vista by tgv on Wednesday October 09, 2019 @02:40AM (#21200677)
People here seem to have had positive experiences, which may be due to a bit of fanboyism or Apple hate, but a relatively technically capable colleague tried to install Ubuntu onto a Dell recently, and failed: grahpics and network issues; no idea if it could sleep. Two days of work lost, so now he has a mac.
Re:macOS 10.15 Vista by K0SM0S on Wednesday October 09, 2019 @05:46PM (#21208489)
Sounds to me like your colleague did not use a laptop supporting Linux (did he try to ask Dell directly?), in which case it would not be "work" but amateur "tinkering".

Even if it does install and seem to work well at first, a non-supported device can break the OS install any time due to some driver / firmware change etc., and you'd have no one to blame but yourself — no promise was ever made by Dell or Linux that this particular device+OS would work.

It's just not what you should do in a business / work setting. We use supported devices — for Ubuntu, for RHEL, for ZFS, for pfSense, for VMware or Xen or HyperV, etc. — because we need someone to call when things don't work, and we need to be sure they just won't fail or break 99.99% of the time. Short of that, you're on your own, and it's no revelation that Windows works on all laptops but Linux simply doesn't — it works "most of the time", "with some caveats quite often". Blame manufacturers who don't write drivers for Linux (looking at you, Qualcomm, Nvidia...), blame OEMs who select those parts for their machines, but don't blame Linux itself — you get it for free with more than 4,000 drivers included last I checked.

Re:macOS 10.15 Vista by jhasse on Wednesday October 09, 2019 @04:47AM (#21201279)
For a fair comparision he should have bought one of Dell's laptop which come preinstalled with Ubuntu.
Re:macOS 10.15 Vista by bengalister on Wednesday October 09, 2019 @02:20AM (#21200573)
I didn't have any issue with Wifi and sleep on my home Dell XPS 13 9380 running Arch. As for the battery, well I followed the arch wiki recommendations (add a kernel startup parameter, and use tlp) and it is ok now but it does not just work out of the box.

It is still not on par with Windows (I kept it just in case). I get around 8-9 hours of battery life on Windows while on Linux it is more like 6-7 hours. But it is mostly due to the fact that Chrome/Chromium and Firefox don't support hardware acceleration on Linux and I watch quite a lot of youtube videos. There is a Chromium that uses the video acceleration API (VAAPI) but it comes from the user arch repository, there is now also a snap package (I haven't yet fully tried them).

Re:macOS 10.15 Vista by tluyben2 on Wednesday October 09, 2019 @02:59AM (#21200759)
All my Linux devices do a lot better under Linux than under Windows; Lenovo X220, MS Surface and GPD Pocket all run both but battery life is miles ahead of Windows for my use (programming and browsing for programming). I use Ubuntu with i3wm. i3wm is, I think, where most of the difference comes from; it is very light. And, imho, much easier to work with than mouse driven stuff.
Re:macOS 10.15 Vista by davedx on Wednesday October 09, 2019 @03:59AM (#21201038)
Regarding sleep: Windows still doesn’t get it right - my daughter plays Roblox on my wife’s Dell laptop, as she’s 5 she just closes the lid with the game running when she’s done. I sometimes hear the fan going before I go to bed later, because apparently a “slept” windows laptop is still merrily letting whatever game was running render 60 fps with the lid shut. Bit silly, and probably awful for her battery life
Re:macOS 10.15 Vista by Lio on Wednesday October 09, 2019 @02:56AM (#21200747)
The only real problem I have left with my XPS13 is with sleep/hibernate.

I’d like it to work like macOS. It seems like that’s possible but it requires a swapfile to save state to. As far as I can tell that means enabling virtual memory which is a no no on SSD.

Just that and I wish Bluetooth remembered the on/off state it was left in after reboot.

Re:macOS 10.15 Vista by JustFinishedBSG on Wednesday October 09, 2019 @03:49AM (#21200991)
Both s2idle and deep ( https://www.kernel.org/doc/Documentation/power/states.txt ) are what you want, and work.

> Just that and I wish Bluetooth remembered the on/off state it was left in after reboot.

That's just a Qualcomm problem. The BT is completely broken. Fixed in the latest kernel for me.

Re:macOS 10.15 Vista by Lio on Wednesday October 09, 2019 @09:22AM (#21202898)
I might be missing something but doesn't that still depend on swap space and having a swapfile and virtual memory set up?

I'm fine with having a swapfile but I don't want it used for anything other than Suspend-to-disk. i.e. I don't want the SSD being hit with multiple writes caused by VM.

Re:macOS 10.15 Vista by JustFinishedBSG on Wednesday October 09, 2019 @11:23AM (#21204068)
No they just enter lower power states and keep everything in RAM. I don't even have a swap and it works fine.
Re:macOS 10.15 Vista by Lio on Wednesday October 09, 2019 @01:17PM (#21205383)
Sorry maybe I'm not explaining what I want to very well.

On the Mac it will suspend to RAM but also dump to an image file at the same time. If the mac runs out of power it will later restore from the image once power is restored.

That's possible on Linux using hybrid-sleep and suspend-then-hibernate but they require a swapfile.

I haven't yet found a way to have a swapfile without allowing that swapfile to be used for virtual memory too. I worry that virtual RAM will eat my SSD.

Re:macOS 10.15 Vista by seba_dos1 on Wednesday October 09, 2019 @01:54PM (#21205869)
How often do you upgrade your drive? If you expect to change it sometime in next 5 years or so, I wouldn't worry about using swap on SSD at all.
Re:macOS 10.15 Vista by Lio on Thursday October 10, 2019 @04:00AM (#21212004)
To be honest I hadn’t really considered that. I’ve never actually upgraded an SSD in a laptop.

I guess it may be more the thought that it will kill the SSD than the reality but it’s still something I’d prefer to avoid if there’s a solution.

Re:macOS 10.15 Vista by phoe-krk on Wednesday October 09, 2019 @03:03AM (#21200776)
> It seems like that’s possible but it requires a swapfile to save state to.

Has macOS solved this issue differently? Do they save RAM state to some non-SSD non-volatile memory, or do they just not care and dump it to SSD anyway?

Re:macOS 10.15 Vista by eknkc on Wednesday October 09, 2019 @03:27AM (#21200895)
I believe they favour sleep mode where the ram is powered on and the state is kept alive on ram. Only when the sleep time goes too long or battery starts running low, they dump into SSD.
Re:macOS 10.15 Vista by Lio on Wednesday October 09, 2019 @09:23AM (#21202915)
It's not the swapfile that's the issue it's having the swapfile also be used for virtual memory.

If it was only used for suspend that would be fine because it would only be written to when you suspend the laptop, which in the grand scheme of things is pretty rare compared to writes caused by virtual memory swapping.

Re:macOS 10.15 Vista by chungus_khan on Wednesday October 09, 2019 @01:32PM (#21205574)
Mac OS does the same in this regard though, but in my experience neither Mac OS or Linux are particularly aggressive at using swap anyway.
Re:macOS 10.15 Vista by seba_dos1 on Wednesday October 09, 2019 @01:57PM (#21205906)
Yup, macOS dynamically allocates swap files on disk when they're needed - that's why you may see 0 swap space in htop, which doesn't mean that it doesn't use swap.
Re:macOS 10.15 Vista by Lio on Thursday October 10, 2019 @04:03AM (#21212021)
That’s interesting. I wonder can Linux be persuaded to dynamically alter the swap space from 0 as part of the suspend script?
Re:macOS 10.15 Vista by chungus_khan on Thursday October 10, 2019 @07:44AM (#21213307)
I think if you were to use a swapfile and set swappiness to zero it should behave like this.
Re:macOS 10.15 Vista by Lio on Friday October 11, 2019 @04:35AM (#21222543)
Brilliant! I think this is the going to be the answer. Have the swapfile but use swappiness to tell the kernel not to use it day to day. Thank you :D
Re:macOS 10.15 Vista by mfontani on Wednesday October 09, 2019 @03:09AM (#21200811)
I switched to a t480 w/Debian from a macbook pro due to battery. Same apps, I get 8h vs 1.5h with VirtualBox running a VM, or 12h (vs ~2h?) without.

WiFi works. Sleep is "meh" compared to the Macbook, but that's on me for not having a swap partition.

Happy with my switch so far, and it's been 1y3mo

Re:macOS 10.15 Vista by pojntfx on Wednesday October 09, 2019 @01:49AM (#21200412)
Yes. Since ~5 years I haven't had a single problem with any Laptop (I'm mostly using ThinkPads, the newer ones, here even the Multi-Touch-Trackpoint and touchscreens perform better than under Windows).
Re:macOS 10.15 Vista by nixpulvis on Wednesday October 09, 2019 @01:48AM (#21200402)
My thinkpad X1 carbon works just fine with Arch Linux. Though you do occasionally need to refer to the wiki to fix things. It's usually pretty painless.
Re:macOS 10.15 Vista by viraptor on Wednesday October 09, 2019 @02:12AM (#21200525)
Unless you buy the most recently released hardware, yeah. (For example latest ryzen has issues) Hardware and sleep pretty much works for an average consumer. Even HDR support is almost there.

"Battery" is not one thing, so can't answer. Does idle draw count as an issue? Do services you can switch on/off count as a battery issue? In comparison, does MacOS indexer out iCloud sync going crazy count as a battery issue?

Re:macOS 10.15 Vista by jhasse on Wednesday October 09, 2019 @04:49AM (#21201294)
Latest Ryzen issues have been fixed btw.
Re:macOS 10.15 Vista by seba_dos1 on Wednesday October 09, 2019 @01:59PM (#21205947)
Never had such issues in any laptop I bought over past 15 years. It's just a matter of choosing good hardware.
Re:macOS 10.15 Vista by garmaine on Wednesday October 09, 2019 @01:48AM (#21200404)
Yes. Buy a Lenovo and these work out of the box as you expect. In fact I get better battery life than under windows.
Re:macOS 10.15 Vista by mav3rick on Wednesday October 09, 2019 @03:14AM (#21200830)
Chromebooks. You can now run a full linux distro securely on a Chromebook too (alongside the Play Store).