News for hackers. Stuff that matters.
Re:Xiaomi’s first laptop is a Macbook Air rival by merb on Wednesday July 27, 2016 @04:49AM (#12171366)
pretty naive. especially since it has a dual graphics with nvidia. which is really akward to "correctly" install on linux. and then there are drivers. pretty sure that there won't be many stuff that directly works on linux.
Re:Xiaomi’s first laptop is a Macbook Air rival by personjerry on Wednesday July 27, 2016 @04:50AM (#12171372)
In my experience nvidia has always been much easier to install than amd (fglrx).
Re:Xiaomi’s first laptop is a Macbook Air rival by xorcist on Wednesday July 27, 2016 @05:03AM (#12171407)
That there even worse alternatives isn't helping. Avoid third party binary modules. Sure, they might work right now but you'll have no guarantees it'll work in the future. You also risk interactions with other subsystems (sleep etc.). It would be like Windows, where your printer might prevent you from upgrading your operating system.

If you intend to run Linux on the thing, buy things that Linux supports out of the box. That probably means sticking to the working Intel stuff for now. You'll thank me later (or not, because you won't miss the problems you don't have).

Re:Xiaomi’s first laptop is a Macbook Air rival by emp_zealoth on Wednesday July 27, 2016 @05:29AM (#12171512)
Go nvidia all the way. Ive got GT460 and it still gets up-to-date drivers (look how old that thing is!)
Re:Xiaomi’s first laptop is a Macbook Air rival by oblio on Wednesday July 27, 2016 @06:13AM (#12171658)
While your theoretical point of view is solid, reality kind of disagrees with it.

The binary blob provided by Nvidia have been quite reliable across the years (and I think they've been available for more than 10 years) while the open source ATI/AMD drivers have frequently failed to deliver.

Re:Xiaomi’s first laptop is a Macbook Air rival by Aeolos on Wednesday July 27, 2016 @08:10AM (#12172108)
Nvidia drivers do fail quite regularly, especially on laptops. Brightness control randomly stops working, suspend/resume is extremely unreliable, there are login issues on systems with both Intel and Nvidia graphics (supposedly solved with Mesa 12, which can only be found on Arch and Gentoo right now.) It's certainly not a panacea.

In my experience, the open-source radeon drivers are significantly more stable. Fglrx was a stinking pile of crap that has officially been abandoned - the whole driver team has switched to the open-source drivers, now.

Re:Xiaomi’s first laptop is a Macbook Air rival by lqdc13 on Wednesday July 27, 2016 @10:05AM (#12172833)
Binary blobs provided by Nvidia are extremely unreliable. I've had to ssh to a machine because the graphics don't work at all after some kernel upgrades.

Linking to Theano-CUDA is always a nightmare.

Forget about optimus. That has never worked correctly on Linux.

The only reason I can see someone wanting nvidia on linux is for CUDA. And in that case, you can't just use the ubuntu pre-built version of the drivers.

If you are not doing neural nets locally on Linux, you shouldn't get a discrete graphics card. And if you do get a discrete one, make sure it's not Nvidia since their open source drivers are much inferior to AMD's.

Re:Xiaomi’s first laptop is a Macbook Air rival by lmns on Wednesday July 27, 2016 @08:03AM (#12172078)
Quite reliable with Optimus? I'd bet your experience is based on desktop GPUs, but Optimus is painful with Linux.
Re:Xiaomi’s first laptop is a Macbook Air rival by Aeolos on Wednesday July 27, 2016 @08:11AM (#12172117)
Extremely so.

My current (and only) working solution is to disable the Nvidia GPU on a host and use it PCIe passthrough to assign it to another Linux or Windows VM. That's the only stable solution that doesn't break the world when enabling/disabling the discrete GPU.

We shouldn't have to revert to such extreme measures...

Re:Xiaomi’s first laptop is a Macbook Air rival by Nullabillity on Wednesday July 27, 2016 @12:56PM (#12174451)
At the moment my only two issues with Optimus are that they crash X on wakeup if loaded, and that DPMS doesn't seem to disable properly after the screensaver ends. For the earlier you can add an a suspend hook to unload the nvidia modules, and for the latter you just need to switch to a tty and back to get the screen working again.

Both are somewhat annoying, but far less than only being able to use it in a VM. That said, I'm curious about how you manage the VM output, considering that PCIe passthrough requires a dedicated screen.

Re:Xiaomi’s first laptop is a Macbook Air rival by Aeolos on Wednesday July 27, 2016 @05:24PM (#12176620)
I normally run the GPU headless for machine learning. In the rare case I need to access the desktop shell of the VM, I just connect via Chrome Remote Desktop.

In the even rarer case that I wish to play a game, I have an HDMI connection between the GPU and my projector, which I can enable with a remote control.

Learning how to use qemu is a bit of a pain (hint: use qemu directly, virus is a huge waste of time) but after the initial learning curve the setup is seamless for my use case - and I feel safer without the GPU drivers having access to my normal desktop. I much prefer this setup to dual-booting Windows for gaming. The VM spins up in a few seconds and shuts down when not in use (turning off the GPU in the process).

Re:Xiaomi’s first laptop is a Macbook Air rival by Nullabillity on Wednesday July 27, 2016 @06:12AM (#12171648)
Not anymore, these days radeon is far better than fglrx and works great straight out of the box.
Re:Xiaomi’s first laptop is a Macbook Air rival by Shorel on Wednesday July 27, 2016 @11:05PM (#12178084)
For what GPUs?

This is an honest question, and I appreciate your answer in advance.

I have a desktop with an HD 6850 and the radeon driver has always worked well, I used to play DOTA2 on it.

But this is a very old GPU now, and all newer models (HD7xxx and up) were having performance issues with the radeon driver last time I was reading the forums.

Re:Xiaomi’s first laptop is a Macbook Air rival by Nullabillity on Thursday July 28, 2016 @10:12AM (#12180279)
R9 270X in my case. The Rx 3xx and newer (and they're slowly porting it to older devices) use the newer AMDGPU driver stack, which is supposed to be even better, but I haven't tried that myself yet.
Re:Xiaomi’s first laptop is a Macbook Air rival by Nullabillity on Wednesday July 27, 2016 @06:11AM (#12171647)
Install nvidia, install bumblebee, add yourself to the bumblebee group. Not really that hard...
Re:Xiaomi’s first laptop is a Macbook Air rival by looki on Wednesday July 27, 2016 @08:04AM (#12172083)
Until you realize you want to connect a monitor or projector: https://github.com/Bumblebee-Project/Bumblebee/wiki/Multi-mo...
Re:Xiaomi’s first laptop is a Macbook Air rival by Nullabillity on Wednesday July 27, 2016 @09:44AM (#12172658)
I've connected both of my Optimus-running ASUS laptops to projectors multiple times with no issues. But, as the article says, YMMV.
Re:Xiaomi’s first laptop is a Macbook Air rival by IshKebab on Wednesday July 27, 2016 @11:46AM (#12173756)
That's actually stupidly hard. Why do you need to do anything at all?
Re:Xiaomi’s first laptop is a Macbook Air rival by Nullabillity on Wednesday July 27, 2016 @12:14PM (#12174048)
As opposed to the Windows approach (unless you enjoy being stuck with preloaded malware, such as Superfish, McAfee, or Mac OS X):

* WTF, why isn't my NIC registering? I thought we had a standard for this stuff by now.

* Download NIC drivers from secondary computer

* Put NIC drivers on a USB stick

* Install NIC drivers

* Nothing happened, turns out you found the drivers for the wrong revision of the chipset, go back to square one

* Download Nvidia drivers

* Try to install, nope, you need to find the Intel drivers first

* Download and install Intel drivers

* Install the Nvidia drivers again

* It's 2AM already, go to sleep

* You forgot to turn off Windows Update, and now you're stuck with Windows 10

* Reformat again, and start over

As opposed to:

$ sudo pacman -S nvidia bumblebee && sudo usermod -aG bumblebee $(whoami) && reboot

Re:Xiaomi’s first laptop is a Macbook Air rival by Ezhik on Wednesday July 27, 2016 @04:38PM (#12176329)
You are comparing a 7 year old version of Windows to a recent Linux release. Obviously Windows 7 will not have all the drivers.
Re:Xiaomi’s first laptop is a Macbook Air rival by pritambaral on Thursday July 28, 2016 @04:38AM (#12179090)
Windows may have been released 7 years ago, but it gets updates pretty frequently. Windows 7 has had the ability to install drivers from Windows updates for a few years now.

The linux comparison isn't recent either. That was the exact same procedure I had to do on an nVidia-stricken laptop (thankfully not mine) four years ago.

Re:Xiaomi’s first laptop is a Macbook Air rival by MichaelGG on Wednesday July 27, 2016 @06:00AM (#12171603)
Use Windows for the metal OS, then run Linux on top (VMware or WSL). Best of both worlds.
Re:Xiaomi’s first laptop is a Macbook Air rival by iagooar on Wednesday July 27, 2016 @06:04AM (#12171623)
How is that best of both worlds? That sounds more like a Frankenstein to me.
Re:Xiaomi’s first laptop is a Macbook Air rival by MichaelGG on Wednesday July 27, 2016 @06:35AM (#12171741)
You get Windows driver/graphics and power support. You get the applications that need Linux. No screwing with blobs and updates and whatnot.
Re:Xiaomi’s first laptop is a Macbook Air rival by Shorel on Wednesday July 27, 2016 @11:12PM (#12178106)
Not really, a modern Linux will do a real boot faster than Windows does its fake-boot-it-really-was-hibernation-wake-up thing.

If you do web development it is also a much better development experience than using Windows.

Bluetooth devices work much better in Linux than Windows (at least the ones I have).

USB devices are also much better handled in Linux. I never see an 'Installing device driver for this USB stick' message.

I plug my kindle in Ubuntu, it opens Calibre. I plug my kindle in Windows, it shows a folder.

I lose all these niceties if I run Linux inside a VM.

Re:Xiaomi’s first laptop is a Macbook Air rival by raihansaputra on Wednesday July 27, 2016 @06:18AM (#12171674)
i'm curious, do a lot of people run this setup? does the overhead of running in vm for your daily tasks worth it?
Re:Xiaomi’s first laptop is a Macbook Air rival by Const-me on Wednesday July 27, 2016 @07:23AM (#12171911)
I was running OSX in VMWare every day for a couple of years, did iOS development. With 8 GB RAM and fast Intel SSD in my Windows laptop, the VM was faster then hardware MacBooks I saw. Modern hardware-assisted virtualization is very efficient, BTW that's exactly what allowed those cloud computing.
Re:Xiaomi’s first laptop is a Macbook Air rival by Ezhik on Wednesday July 27, 2016 @04:39PM (#12176345)
Doesn't VMware have really lacking graphics support? I remember Yosemite and on with their fancy effects are barely usable.
Re:Xiaomi’s first laptop is a Macbook Air rival by Const-me on Wednesday July 27, 2016 @06:03PM (#12176843)
VmWare’s virtualized 3D accelerated GPU is IMO very good.

Not sure about compatibility with the recent OSX, though. I used lion and mountain lion, and those worked well. AFAIR I’ve used vmware tools from Fusion.

Re:Xiaomi’s first laptop is a Macbook Air rival by raihansaputra on Wednesday July 27, 2016 @09:06PM (#12177702)
if i knew a few weeks ago i would probably think a bit more of buying another macbook. osx allows vm installs?
Re:Xiaomi’s first laptop is a Macbook Air rival by Const-me on Thursday July 28, 2016 @08:26AM (#12179744)
Technically yes. Not sure about the latest OSX, but when I used that, everything worked fine for me.

Legally no. VM or not, the real hardware needs to be made by Apple.

Re:Xiaomi’s first laptop is a Macbook Air rival by raihansaputra on Thursday July 28, 2016 @09:13PM (#12184461)
no need to tweak kexts like you do with a hackintosh?
Re:Xiaomi’s first laptop is a Macbook Air rival by Const-me on Sunday July 31, 2016 @03:39PM (#12198479)
No need to tweak kexts.

In the host machine, you need reasonably fast Intel CPU, hardware-assisted virtualization enabled in BIOS/UEFI, enough RAM, also unofficial VMWare patch to unlock OSX guests on PC hosts.

In the guest OS, you need VMWare tools for OSX, they exist because VMWare supports OSX guests when running on OSX hosts.

Re:Xiaomi’s first laptop is a Macbook Air rival by dr1337 on Wednesday July 27, 2016 @07:34AM (#12171950)
Or just wait for Windows 10 Redstone on Aug 2 and run the Bash on Linux Subsystem for Windows. No overhead and you get full speed with unmodified debs.
Re:Xiaomi’s first laptop is a Macbook Air rival by zouhair on Wednesday July 27, 2016 @08:11AM (#12172119)
Not having cron is a deal breaker. Cygwin is still better in that aspect.