#StackBounty: #linux-mint #drivers #nvidia #proprietary-drivers #compatibility Nvidia drivers won't work on linux mint

Bounty: 50

My nvidia drivers won’t work. They worked just fine before my last update. I have been trying to get them to work again but with no success.

if I run:

nvidia-settings

I get this error:

ERROR: NVIDIA driver is not loaded

if I run:

nvidia-smi

I get this error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I tried to install the default drivers using: sudo ubuntu-drivers autoinstall, which installs the 390 version. However i read somewhere that this driver isn’t compatible with the more up to date linux kernel.

Then i tried installing the ppa and a more updated nvidia driver (after purging the old nvidia packages)

sudo apt-get remove --purge '^nvidia-.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-driver-430

But this won’t work as well. I actually read that this drivers don’t support my graphics card. Is there anything i can do to get my card working again?

My card is a GeForce GT 635M and am using Linux Mint Ulyssa


Get this bounty!!!

#StackBounty: #linux-mint #drivers #nvidia #proprietary-drivers #compatibility Nvidia drivers won't work on linux mint

Bounty: 50

My nvidia drivers won’t work. They worked just fine before my last update. I have been trying to get them to work again but with no success.

if I run:

nvidia-settings

I get this error:

ERROR: NVIDIA driver is not loaded

if I run:

nvidia-smi

I get this error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I tried to install the default drivers using: sudo ubuntu-drivers autoinstall, which installs the 390 version. However i read somewhere that this driver isn’t compatible with the more up to date linux kernel.

Then i tried installing the ppa and a more updated nvidia driver (after purging the old nvidia packages)

sudo apt-get remove --purge '^nvidia-.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-driver-430

But this won’t work as well. I actually read that this drivers don’t support my graphics card. Is there anything i can do to get my card working again?

My card is a GeForce GT 635M and am using Linux Mint Ulyssa


Get this bounty!!!

#StackBounty: #linux-mint #drivers #nvidia #proprietary-drivers #compatibility Nvidia drivers won't work on linux mint

Bounty: 50

My nvidia drivers won’t work. They worked just fine before my last update. I have been trying to get them to work again but with no success.

if I run:

nvidia-settings

I get this error:

ERROR: NVIDIA driver is not loaded

if I run:

nvidia-smi

I get this error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I tried to install the default drivers using: sudo ubuntu-drivers autoinstall, which installs the 390 version. However i read somewhere that this driver isn’t compatible with the more up to date linux kernel.

Then i tried installing the ppa and a more updated nvidia driver (after purging the old nvidia packages)

sudo apt-get remove --purge '^nvidia-.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-driver-430

But this won’t work as well. I actually read that this drivers don’t support my graphics card. Is there anything i can do to get my card working again?

My card is a GeForce GT 635M and am using Linux Mint Ulyssa


Get this bounty!!!

#StackBounty: #linux-mint #drivers #nvidia #proprietary-drivers #compatibility Nvidia drivers won't work on linux mint

Bounty: 50

My nvidia drivers won’t work. They worked just fine before my last update. I have been trying to get them to work again but with no success.

if I run:

nvidia-settings

I get this error:

ERROR: NVIDIA driver is not loaded

if I run:

nvidia-smi

I get this error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I tried to install the default drivers using: sudo ubuntu-drivers autoinstall, which installs the 390 version. However i read somewhere that this driver isn’t compatible with the more up to date linux kernel.

Then i tried installing the ppa and a more updated nvidia driver (after purging the old nvidia packages)

sudo apt-get remove --purge '^nvidia-.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-driver-430

But this won’t work as well. I actually read that this drivers don’t support my graphics card. Is there anything i can do to get my card working again?

My card is a GeForce GT 635M and am using Linux Mint Ulyssa


Get this bounty!!!

#StackBounty: #linux-mint #drivers #nvidia #proprietary-drivers #compatibility Nvidia drivers won't work on linux mint

Bounty: 50

My nvidia drivers won’t work. They worked just fine before my last update. I have been trying to get them to work again but with no success.

if I run:

nvidia-settings

I get this error:

ERROR: NVIDIA driver is not loaded

if I run:

nvidia-smi

I get this error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I tried to install the default drivers using: sudo ubuntu-drivers autoinstall, which installs the 390 version. However i read somewhere that this driver isn’t compatible with the more up to date linux kernel.

Then i tried installing the ppa and a more updated nvidia driver (after purging the old nvidia packages)

sudo apt-get remove --purge '^nvidia-.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-driver-430

But this won’t work as well. I actually read that this drivers don’t support my graphics card. Is there anything i can do to get my card working again?

My card is a GeForce GT 635M and am using Linux Mint Ulyssa


Get this bounty!!!

#StackBounty: #linux-mint #drivers #nvidia #proprietary-drivers #compatibility Nvidia drivers won't work on linux mint

Bounty: 50

My nvidia drivers won’t work. They worked just fine before my last update. I have been trying to get them to work again but with no success.

if I run:

nvidia-settings

I get this error:

ERROR: NVIDIA driver is not loaded

if I run:

nvidia-smi

I get this error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I tried to install the default drivers using: sudo ubuntu-drivers autoinstall, which installs the 390 version. However i read somewhere that this driver isn’t compatible with the more up to date linux kernel.

Then i tried installing the ppa and a more updated nvidia driver (after purging the old nvidia packages)

sudo apt-get remove --purge '^nvidia-.*'
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get install nvidia-driver-430

But this won’t work as well. I actually read that this drivers don’t support my graphics card. Is there anything i can do to get my card working again?

My card is a GeForce GT 635M and am using Linux Mint Ulyssa


Get this bounty!!!

#StackBounty: #boot #grub2 #nvidia #kernel #backup Restore specific kernel & modules (nvidia drivers)

Bounty: 150

Background: I’ve been running Ubuntu for years (started at 16.04, now at 20.04), and been constantly fighting with NVIDA drivers which I need as I use CUDA. As recently as yesterday, my NVIDIA 460 drivers were working fine, and an apt upgrade broke them again: Ubuntu 20.4 update broke my Nvidia 460 driver config


What I want to achieve:

  • Create a restore point of a kernel and its modules (eg nvidia drivers) I’m happy with
  • Whenever NVIDIA drivers break (or something else breaks badly), restore it

What I already have:

  • GRUB which seems to allow choosing specific kernels to boot from

(screenshots for illustration, not reflecting latest version)
enter image description here
enter image description here


Questions:

  • Restore point containing kernel+modules: is it possible to create (if so how), or am I simply misunderstanding how kernels & modules are managed on linux (ie a kernel wouldn’t include the nvidia drivers) ?

  • Restoring from grub: It seems /etc/grub.d/40_custom is the file I want to modify as it’s designed specifically for custom menu entries. Do you confirm this is the intended way of booting custom kernels or should I be looking at another file?

/etc/grub.d/40_custom:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.


Get this bounty!!!

#StackBounty: #server #nvidia #power-management #gpu #headless How to turn off Nvidia GPU on a headless server?

Bounty: 200

I am running a headless server with an Nvidia GPU.
Even when the GPU is not doing any work, it is consuming about 25 Watts of power:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.26       Driver Version: 430.26       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 950     Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   61C    P0    26W / 110W |      0MiB /  2001MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Is there a way to completely turn off power delivery to the GPU when it is not in use?

I tried
sudo prime-select intel
Which does cause nvidia-smi to stop working, but a power meter connect to the wall shows exactly the same power consumption with either intel or nvidia selected.

Completely removing the GPU reduces the power consumption by about 30 Watts as expected.

The main purpose is to save power and costs during idle operations, with an option to spin up the GPU when it is needed (remotely via ssh).


Get this bounty!!!

#StackBounty: #arch-linux #nvidia #i3 #multi-monitor #monitors Second monitor doesn't wake after going to standby (without annoying…

Bounty: 50

Background

I’ve had this issue in one way or another for a long time now (years), and in multiple configurations. I’ve updated the driver & kernel on multiple occasions, and at this point I’m really at a loss as to where the culprit is.

It seems to be some kind of race condition where if one monitor is ‘ready’ before the other, the other just gets ‘No Input’, despite xrandr (and i3) thinking it’s connected and should be working.

Old setup

  • One 4K monitor
  • One 1080p monitor

Behavior: Both monitors goes to sleep (from inactivity), and upon moving the mouse only one of them (the 1080p monitor) correctly wakes. The other one wakes a few seconds later, but then shows ‘No Input’.

Workaround:

  • Run xrandr.sh (old version, see below for the new version)
    • I can’t say for certain if I had to do something else to get it working (the whole process became muscle memory more or less…)

New setup

  • One 4K monitor (same as previous setup)
  • One 4K monitor (new)

Behavior: Similar behavior, but now the behavior applies to the new monitor. The old one behaves just fine (just like the old 1080p monitor).

Workaround 1 (remembering to wake the monitor first):

  • (before waking screens by moving mouse/keyboard) Wake ‘slow’ screen by using menu buttons on monitor
  • When monitor has completed resume from standby and shows menu items, move mouse/keyboard to wake monitors.
  • Both monitors work correctly!

Workaround 2 (forgetting to wake the monitor first):

  • (move mouse/keyboard) Both monitors wake. One works correctly, the other takes more time to wake from suspend and then just shows ‘No Input’.
  • Run xrandr --output HDMI-0 --off, which puts the monitor back in standby.
  • Apply workaround 1.
  • Both monitors work correctly!

Details

Nvidia driver version (from Arch repos): 455.45.01-6

$ lspci | grep NV
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
$ xrandr
Screen 0: minimum 8 x 8, current 7680 x 2160, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 621mm x 341mm
   3840x2160     60.00*+  59.94    50.00    30.00    29.97    25.00    23.98    23.98
   2560x1600     59.97
   2560x1440     59.95
   1920x1080     60.00    59.94    50.00    60.00    50.04
   1680x1050     59.95
   1440x900      59.89
   1440x576      50.00
   1440x480      59.94
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x800      59.81
   1280x720      60.00    59.94    50.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x576       50.00
   720x480       59.94
   640x480       75.00    72.81    59.94
   640x350       70.07
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected 3840x2160+3840+0 (normal left inverted right x axis y axis) 1280mm x 720mm
   4096x2160     29.97 +  25.00    24.00    23.98
   3840x2160     29.97*   25.00    23.98    23.98
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98    60.00    50.04
   1280x1024     60.02
   1280x720      59.94    50.00
   1024x768      60.00
   800x600       60.32
   720x576       50.00
   720x480       59.94
   640x480       59.95    59.93    59.94
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

dmesg shows nothing out of the ordinary.

xrandr.sh:

# This used to be uncommented, but doesn't cut it anymore with the new setup
#xrandr --output HDMI-0 --off

sleep 0.5

xrandr --output HDMI-0 --primary --mode 3840x2160 --panning 0x0
xrandr --output DP-1 --mode 3840x2160 --right-of HDMI-0

Attempted solutions

Over the years, I’ve googled several times for similar issues, and I’ve never really found anything promising. I used to think it was something weird with the old 4K monitor (like a bad EDID), but now that I’m having the same issue with the new monitor I’ve discarded that suspicion.

I’ve found a lot of threads about screens failing to resume after suspend (usually fixed with modeset), but in my case there’s no real suspend happening, it’s simply a screen off/blanking (and it only happens for one of the monitors!). Furthermore, I’ve also not found any issue similar to mine with respect to the ‘race condition’-like nature of the issue/workaround.


Get this bounty!!!