LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-22-2019, 07:23 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
nvidia gpu and linux


Hi,

I found a new laptop at a good price on taobao.

It has an NVIDIA GeForce 940MX GPU. Will this work OK with Ubuntu?

I know nvidia has some proprietary software.

Last edited by Pedroski; 10-22-2019 at 07:31 PM.
 
Old 10-22-2019, 08:14 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I'd say so, reading this: https://certification.ubuntu.com/cat...nent/10de:134d.
 
1 members found this post helpful.
Old 11-16-2019, 09:19 AM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Pedroski View Post
Hi,

I found a new laptop at a good price on taobao.

It has an NVIDIA GeForce 940MX GPU. Will this work OK with Ubuntu?

I know nvidia has some proprietary software.
Q: What laptop architecture? 32-bit? 64-bit?

The nouveau driver may work fine for general purpose use. If you want to get more out of the Nvidia chip, you'll have to go to their web site and find a driver that handles that chip. Their web site has a somewhat simple way of finding the latest and greatest driver for chip "XYZ". Try starting with "Drivers->All Nvidia Drivers". The attached image is what you'll see once you select your GPU chip AND select "All operating systems". You'll need to specify whether you need the 32-bit or 64-bit version. I found drivers 390.87 and 440.31 for your chip. Verify which is correct for the laptop.

If you go this route, you're going to have to build the driver module yourself. It's not that scary but you'll need to have, at a minimum, the C compiler and the kernel sources installed. (No... you're not compiling the kernel---just the nvidia module. The graphics driver build needs the kernel header files.) You need to jump through a couple of hoops to keep the nouveau driver from installing at boot time (not too difficult). You only need to do that part once, though, and, if memory serves, the Nvidia build script did it for me. Obviously, the driver build and hoop jumping requires that you be working in the "root" account.

The downside of using Nvidia's proprietary driver (other than it "tainting" the kernel which bugs some Linux purists no end) is that, occasionally, a kernel upgrade will break the driver. The system will try to boot to graphical mode and never loads your desktop. If you're using Xorg for your graphical subsystem, the Xorg.log file will contain an error message about not finding a "Screen". (I'm not a Wayland user so I can't tell you what sort of error message you might see if the kernel and nvidia driver mismatch occurs.) At that point, you merely reboot into single user mode, re-compile the driver, and reboot. It takes maybe a minute to do this. TIP: Save the driver file in a place like "/usr/local/src/nvidia_driver" so it's easy to find when the rebuild is necessary.

If I were doing this on a new laptop -- and all the other parts of the laptop are compatible with Linux (probably the first thing you need to check out, BTW) -- I'd do a minimal graphical install but do include the C compiler and kernel sources. Then grab the Nvidia driver and try to get it to work. Once it works, install all the other packages you want/need.

If you do decide to use the Nvidia driver, post your progress/experience here. I'll try and help you out.

Good luck...
Attached Thumbnails
Click image for larger version

Name:	nvidia_driver_menu.png
Views:	20
Size:	78.7 KB
ID:	31875  
 
Old 11-17-2019, 01:28 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,878
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by Pedroski View Post
It has an NVIDIA GeForce 940MX GPU. Will this work OK with Ubuntu?
Does it have only a 940MX, or does it also have an Intel GPU? Laptops with both are termed Optimus. Optimus means extra work getting and keeping video drivers working, using extra packages called Bumblebee or Prime.

There are actually two ostensibly competent FOSS DDX (X video driver) available for NVidia GPUs. The older technology, reverse-engineered DDX is provided for Ubuntu by a package named xserver-xorg-video-nouveau, which is optional. The newer technology, automatically used when supported by the GPU, and an optional DDX is not available, is named modesetting. I recommend using either of these FOSS DDX long enough to be familiar with their behavior before considering to complicate your updates by using the proprietary tainting drivers provided by NVidia.

Do not be confused by the term nouveau. There is a nouveau kernel driver that provides modesetting functionality, as well as the nouveau DDX, which depends on the functionality the kernel nouveau driver provides for competently functioning X.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Handbrake GPU Acceleration - Inexpensive AMD GPU for Old PC Mr. Macintosh Linux - Software 8 01-03-2018 03:11 PM
Does blacklisting discrete GPU driver completely disables discrete GPU, or using acpi_call is better decision? SuperPrower Linux - Hardware 2 08-21-2017 08:32 PM
how can I setup the amd GPU as a default gpu instead of intel graphics? divinefishersmith Linux - Newbie 33 08-22-2015 06:03 PM
Tried to swap GPU in HP workstation. GPU not working good. LexMK Linux - Hardware 1 06-21-2013 06:59 PM
Laptop with nvidia GPU but there is no nvidia badge on it !! wanas Linux - Laptop and Netbook 2 08-01-2010 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration