News for hackers. Stuff that matters.
Re:Chromium blacklists Nouveau by StreamBright on Saturday January 05, 2019 @06:31PM (#18835093)
#year-of-the-linux-desktop

On a more serious note what is the motivation for Nouveau? The drivers provided by Nvidia are not good enough or we just need an opensource alternative?

Re:Chromium blacklists Nouveau by willtim on Saturday January 05, 2019 @06:47PM (#18835191)
We have Thinkpad Linux laptops running with NVidia at work. The proprietary driver has quality issues, the biggest of which for us is power management and poor battery life. Nouveau performs much better in this regard, even though they had to reverse engineer the hardware (!) I will be advising my IT department not to continue to buy NVidia.
Re:Chromium blacklists Nouveau by saltcured on Saturday January 05, 2019 @09:30PM (#18836083)
Not sure if this is relevant to you, but I thought I'd share an experience with my T440p that uses a quad-core Kaby Lake CPU and optimus graphics. I run Fedora on it. I am using the HD 4600 gpu which is wired to the LCD, and I occasionally use the nvidia gpu w/ proprietary drivers via optirun.

I'd always seen terrible power efficiency on battery with Fedora. It was much worse than any previous Thinkpad. I mostly treat it like a luggable, always plugged into the wall. I wasn't sure if it was the CPU or chipset, but it never got into deeper package-level idle states like other machines.

However, I recently discovered that if I suspend and resume the laptop right after I switch from AC to battery power, the laptop runs in a much more efficient mode. It gets into those deeper idle states and can get almost 6 hours of life out of its aging batteries for basic office/communication tasks with wifi. If I don't suspend it once, it will only get close to 2.5 hours even if almost completely idle the whole time.

Re:Chromium blacklists Nouveau by zlynx on Saturday January 05, 2019 @07:01PM (#18835265)
I have a Dell XPS with an Nvidia 1050, running Fedora 29.

The Nouveau driver was so bad here that I blacklisted all the drivers and just use the Intel GPU. It's the difference between 3 hours or 6 hours of battery.

It apparently ran the Nvidia power on even when no program wanted to use it.

Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @08:21PM (#18835662)
>It apparently ran the Nvidia power on even when no program wanted to use it.

Are you sure you didn't install nvidia drivers? That is a common symptom with nvidia binary drivers. Nouveau on the other hand is fine with powering the device off when not used. For nvidia drivers, the bbswitch method is more reliable, but is apparently deprecated by distros these days.

Re:Chromium blacklists Nouveau by izacus on Saturday January 05, 2019 @07:05PM (#18835280)
On all my laptops, nouveau never outperformed the proprietary driver in battery life. It didn't even support power management on most GPUs - when did that change?
Re:Chromium blacklists Nouveau by willtim on Saturday January 05, 2019 @07:15PM (#18835346)
We have the T480 running Ubuntu 18.04 LTS. Perhaps it is an issue related to our configuration. Not impressed though.
Re:Chromium blacklists Nouveau by bubblethink on Saturday January 05, 2019 @06:57PM (#18835248)
That is extremely difficult. Lenovo doesn't make any high end laptops without nvidia. You'll be restricted to the X series and the T series. Dell is also quite similar, although at one point they had intel only options for their precision lineup. Basically, all vendors tack on the nvidia card once you get into high end (i.e., real i7 with 4-6 cores, xeon etc.).
Re:Chromium blacklists Nouveau by zozbot123 on Sunday January 06, 2019 @05:39AM (#18837667)
> Basically, all vendors tack on the nvidia card once you get into high end

Yup. By adding a Nvidia card (or, far less commonly, an ATI/AMD one) they can sell that laptop as a specialty "Gaming" machine - and with margins on commodity hardware being so razor-thin these days, that's exactly what shrewd marketers need!

Re:Chromium blacklists Nouveau by larozin on Saturday January 05, 2019 @06:54PM (#18835238)
Afaik 10 years ago nvidia drivers were most stable and performant on linux. But yes they are proprietary and implemented in userspace for Xorg. Today Linux graphics stack architecture have been significantly revamped and it requires more kernel code than before for DRM/DRI API and Wayland. nVidia just can't fit into this architecture with its proprietary/nda model without violating GPL for kernel modules.
Re:Chromium blacklists Nouveau by izacus on Saturday January 05, 2019 @07:06PM (#18835286)
So it sounds like that the kernel team implemented the APIs in a way that prevent nVidia from integrating with them without opensourcing the driver? Were those changes made as a political statement?
Re:Chromium blacklists Nouveau by gdwatson on Saturday January 05, 2019 @09:40PM (#18836148)
I'm well out of my depth here and welcome corrections:

Managing and multiplexing access to hardware is a core responsibility of the kernel. When video drivers are implemented in user space as X11 has traditionally done there are a bunch of issues: the program that includes them has to be setuid root to have the right access to the hardware, opening up the possibility of security bugs; only one such program can run at a time; and if something goes wrong in user space, it can bring down the system.

The newer kernel subsystem responsible for handling video cards is the Direct Rendering Manager, with the unfortunately confusing acronym DRM. [1] nVidia declined to support DRM in its proprietary driver for quite some time but eventually chose to do so.

They have some quibbles with GBM, one of the parts of the kernel API, but they didn't raise them until after the API was implemented in the kernel, was implemented in the AMD and Intel drivers, and had become a dependency for the Wayland reference compositor Weston. They refused to implement GBM and instead implemented their own alternative, EGLStreams, which is far more complicated. The open source world believes this is the wrong architecture and has had a lot of discussion about how to (reluctantly) support it. The current KDE and Gnome approach seems to be to accept patches from nVidia for EGLStreams support [2][3], but not everyone feels the same way. [4]

nVidia has implemented DRM already. They could implement GBM if they wanted to. I'm sure that having their proprietary driver in kernel space instead of user space makes licensing more complicated, but it hasn't stopped them yet.

[1] https://en.wikipedia.org/wiki/Direct_Rendering_Manager

[2] https://blog.martin-graesslin.com/blog/2017/10/plasmawayland...

[3] https://www.phoronix.com/scan.php?page=news_item&px=NVIDIA-K...

[4] https://drewdevault.com/2017/10/26/Fuck-you-nvidia.html

Re:Chromium blacklists Nouveau by Macha on Saturday January 05, 2019 @06:47PM (#18835184)
1. Lacking support for old GPUs in a maintained driver. nvidia drivers approach for old gpu is "use an old driver" for cards as recent as the 6xx.

2. People like to run fully open source systems

3. Adding support for things like kms and wayland are really up to the whims of nVidia as to when it happens with the closed driver, while an open driver is more likely to do so (or at least can be forked to do so). In the past features like config-less X were also much later coming to nvidia drivers which made it harder for people to get started on Linux.

Re:Chromium blacklists Nouveau by frabbit on Sunday January 06, 2019 @09:20AM (#18838417)
Your point #2 is especially important: with all the commotion surrounding the various "management engines" (in effect a completely independent system with privileged access to the carefully secured main system) it is surely obvious that a powerful GPU running unverified code is a foolish thing.

Point #3 is also really good. Who wants to wait around at the mercy of a corporation which has an active interest in NOT being transparent about "its" IP (as speculated elsewhere most of the GPUs probably infringe on some or other patent)?

Anyone buying an nvidia card for Linux should know exactly what they are doing: funding an anti-Free Software company, deeply entrenched in the ethos of secrecy, patents and bullshit; saddling themselves with a white elephant which will suck hours of their precious time.

Re:Chromium blacklists Nouveau by anfilt on Saturday January 05, 2019 @06:44PM (#18835169)
lets see there is wayland. The peopitery drivers do not work with that. Moreover there are issues.

Further, its not open source the nvidia drivers. Although, I dont understand why anyone would buy hardware from nividia and feel good about it

Re:Chromium blacklists Nouveau by MereInterest on Saturday January 05, 2019 @06:50PM (#18835210)
As I understand it, the latter, and it is completely justifiable to do so. Requiring users to run binary blobs in order to use their hardware is non-free.