Linux 4.14 released
lwn.net
lwn.net
In Drivers -> Graphics, I see a lot of AMD GPU listed, that's expected given what I read about Nvidia and Linux story and my personal experience trying to get my Nvidia Optimus setup work on my laptop...
But this makes me wonder:
What are the most compatible laptops on the market these days for running a Linux distro? Any brand that's famous for good Linux support? I heard Lenovo Thinkpad were pretty good but I've been disappointed with my w520 and its Nvidia Optimus setup...
If you give a bit more information about what you're looking for in a laptop (portability, power, battery life, etc...) and/or what you're likely to use it for, I could give you some more specific recommendations.
Something that can have a simple multiple monitors setup / hook to the TV setup. Something that's not overheating, but that would be powerful enough (not sure if those 2 are compatible!) to compile C++ programs full of templates. (i.e. good multicore setup, 16+ gb of RAM, and a large enough SSD), and a 14 or 15 inch monitor
These days though I'm wondering if I should simply get a desktop and a tablet for everyday browsing. The reason I favor laptops is because I'm assuming Linux support of the different drivers there would be better than a custom made desktop, I might be wrong there! I'll do more research as my w520 gets obsolete, but after easily replacing its DVD drive bay with a second SSD, and disabling the Nvidia GPU, I get a good enough experience right now.
https://arstechnica.co.uk/gadgets/2017/01/dell-xps-13-ubuntu...
The Nvidia settings gui (comes with drivers) allows me to switch between Nvidia and intel graphics. With intel graphics card selected and the tlp package (apt install tlp, no additional setup, should be installed by default imho), I get 60-90 minutes more than reviewers got on windows.
As for end-products: I've heard good things about Dell's XPS-series (especially "Developer Edition")[2], Purism Libre-series[3], and System76[4] laptops. Lenovo ThinkPads[5] are traditionally also well supported.
Generally it's always good to check Linux support on ArchWiki[6], LinuxWireless[7] and other resources before buying any hardware.
[1] https://news.ycombinator.com/item?id=15564611
[2] https://news.ycombinator.com/item?id=13359588
[3] https://puri.sm
[4] https://system76.com/laptops
[5] https://www.thinkwiki.org/wiki/ThinkWiki
Small vendor Linux models will obviously work, but build quality isn't as good last I heard: they use medium quality OEM chassis. Correct me if I'm wrong - these companies are worth supporting.
Even on Windows it's not perfect. Some programs will stop rendering properly or just hang when switching between AC and battery, for example. Presumably those are bugs in those programs not properly handling some kind of rendering context invalidation, but it's still a hassle.
> It feels like half of all Linux developers use Thinkpad business models like T and X series
These are also very popular among OpenBSD developers [1], likely for similar reasons.
They officially support Linux, and you can even choose to have a keyboard with Tux instead of Windows logo :)
all sorts of applications take the tick count (rdtsc) times cpu frequency + boot time in order to get some approximation of the current time (cheaper than doing a syscall). In windows they even have an api function QueryPerformanceFrequency for getting the frequency. Now that of course is all wrong because of 'dynamic scaling of voltage and frequency' feature of the cpu.
Whatever you do in software, it will be wrong in due time because of some significant changes in a lower level...
http://code.metager.de/source/xref/gnu/glibc/sysdeps/unix/sy...
- you need to make sure that the thread has switched from executing on one CPU to another one, different packages have different counters. (can do it by setting thread affinity) - you need to see if CPU supports invariant TSC (cpuid reports TscInvariant = True )