English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

4 Posts

10-05-2020

LT

4 Signins

70 Page Views

  • Posts: 4
  • Registered: ‎10-05-2020
  • Location: LT
  • Views: 70
  • Message 1 of 7

NVIDIA GPU support in Linux

2020-10-05, 19:42 PM

First of all, I'd like to say a huge thank you to Lenovo for supporting Linux on laptops. Being able to buy a laptop that works well with Linux means a lot to me and many people I know.

 

Now, onto the question. Higher-specced laptop models usually include an NVIDIA GPU but its support is a major pain point in Linux. Are there any official suggestions on how Linux should be set up to make it work well? Any plans to release powerful laptops with Intel-only graphics? (I know there's the P1 with iGPU only, but it's really hard to find in Europe.) Or at least, any plans to wire external outputs to the iGPU instead for dGPU, so NVIDIA GPU can be powered down most of the time?

Reply
Options

587 Posts

05-14-2020

US

238 Signins

2915 Page Views

  • Posts: 587
  • Registered: ‎05-14-2020
  • Location: US
  • Views: 2915
  • Message 2 of 7

Re:NVIDIA GPU support in Linux

2020-10-08, 16:05 PM

Hello,

 

I am a user of Lenovo products, the last statement in your post seemed to say you desired a way to disable nvidia graphics card while using Linux.  I think the nvidia graphics are offered as an extra cost option, so why would a user pay extra for equipment that the user would intentionally disable?

 

edited for content - mod 

 

Sincerely,

Usedtoberich

Reply
Options

6 Posts

03-04-2020

DE

6 Signins

30 Page Views

  • Posts: 6
  • Registered: ‎03-04-2020
  • Location: DE
  • Views: 30
  • Message 3 of 7

NVIDIA GPU support in Linux

2020-10-08, 20:37 PM
I just wanted to let you know that I am interested in the same topic. Few weeks ago I got an answer from one of the Fedora guys that developers are looking into how to better support the switchable graphics. I too suffer from having nvidia in my p1gen2 and had to honestly switch back to windows since I could not get predicable behavior in linux out of it.
Reply
Options

6 Posts

03-04-2020

DE

6 Signins

30 Page Views

  • Posts: 6
  • Registered: ‎03-04-2020
  • Location: DE
  • Views: 30
  • Message 4 of 7

Re:NVIDIA GPU support in Linux

2020-10-08, 20:37 PM

deleted

Reply
Options

4 Posts

10-05-2020

LT

4 Signins

70 Page Views

  • Posts: 4
  • Registered: ‎10-05-2020
  • Location: LT
  • Views: 70
  • Message 5 of 7

Re:NVIDIA GPU support in Linux

2020-10-09, 14:47 PM

The problem is that there are very few options for laptops with 8 CPU cores and 32 GB RAM that don't also have hybrid Intel/NVIDIA graphics. X1 Extreme models all have hybrid graphics, P1 only has one option without NVIDIA, but it's rare.

 

So if I'm getting a model with the dGPU anyway, I would need to disable the dGPU to make the laptop work well under Linux. If you do that with X1 Extreme, you can't use external monitors, because monitors can't be connected to the internal GPU directly.

Reply
Options

7 Posts

10-26-2020

US

10 Signins

55 Page Views

  • Posts: 7
  • Registered: ‎10-26-2020
  • Location: US
  • Views: 55
  • Message 6 of 7

Re:NVIDIA GPU support in Linux

2020-10-26, 15:18 PM

I've got a working setup for xorg on a P1 Gen2 with hybrid graphics using the intel modesetting driver and the nvidia properitary driver.

It automatically powers down the Nvidia card when no external monitors are attached, and running on battery.

 

Applications can still choose to use the Nvidia accelerated graphics (vulcan or GL), and will power on the Nvidia GPU as needed.

 

The setup is more or less following the directions on how to setup Prime render offloading: (See https://download.nvidia.com/XFree86/Linux-x86_64/455.28/README/primerenderoffload.html)

I've attached a reduced (untested) xorg.conf configuration.

 

For this to work, and to let the nvidia GPU powerdown when unused, you need: 

 

options nvidia_drm "modeset=1"

options nvidia "NVreg_DynamicPowerManagement=0x02"

 

to /etc/modprobe.d/nvidia.conf

 

Note That I'm using Linux kernel 5.9.1, and Nvidia driver 455.23.04-1.

 

 

 

Reply
Options

7 Posts

10-26-2020

US

10 Signins

55 Page Views

  • Posts: 7
  • Registered: ‎10-26-2020
  • Location: US
  • Views: 55
  • Message 7 of 7

Re:NVIDIA GPU support in Linux

2020-10-27, 8:05 AM

 

I've attached a reduced (untested) xorg.conf configuration.

Seems lenovo has problems with attachments. The configuration file can be found here.

 

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete