#StackBounty: #nvidia #display #hdmi #display-resolution Connecting Ubuntu Machine to New Display Does Not Recognise Display

Bounty: 50

I have a machine running Ubuntu 20.04 which was connected to a 4K display (Samsung), and is now connected to a different 4K display (Dell). Since rebooting the machine, just before it gets to the login screen, the display goes blank and the display notifies me

No HDMI 1 Cable. The display will go into standby mode

Why would a different display cause this and how do I fix it?

Note : I’ve just inserted an Ubuntu Live USB device. Afer checking the disks I get the same thing, just a blank screen and the message:

No HDMI 1 Cable. The display will go into standby mode.


Get this bounty!!!

#StackBounty: #nvidia #20.04 #multiple-monitors #xorg #display saving a X config file for nvidia setting disables my PRIME internal dis…

Bounty: 50

I’m on ubuntu 20.04. I’m using an external monitor with a laptop as shown in nvidia-settings here:
enter image description here

nominally this works. But, to get rid of tearing on the external display, I need to select "Force Composition Pipeline" under Advanced. This is fine, but when I try to save the X config file, a restart would remove my PRIME display completely. Only my external monitor works.

I would have to delete /etc/X11/xorg.conf to get the display back.

Is there a way to save this config and keep the prime display?


Get this bounty!!!

#StackBounty: #nvidia #multiple-monitors #display #suspend How to get external monitor to reconnect after sleep or power off

Bounty: 50

Problem:
On an Ubuntu based laptop, when I sleep or disconnect power to my external monitor then power up the system or reconnect the monitor again, the display doesn’t come on.

Poor man’s solution:
The only way I’ve found to get the external display to work (aside from reboot) is to switch from Joined Display to Mirror Display. As soon as the monitor comes alive I can simply cancel the change to Mirror Displays, monitor settings revert, and the external monitor works as usual.

Grievance:
Unfortunately this causes windows that were on my external monitor to be misarranged across desktop workspaces (PopOS here, Ubuntu 20.10). It’s a fair bit of effort to re-arrange workspaces after the mirror/cancel process.

Hopeful question:
Are there any command line utilities that might force the external monitor to reset without the need to change from Joined Display to Mirror?


Get this bounty!!!

#StackBounty: #grub2 #nvidia #tty #uefi #resolution Low resolution in GRUB and tty

Bounty: 50

After upgrading from Fedora 33 to 34, the resolution in GRUB and ttys is low resolution and the wrong aspect ratio, seemingly 1024×768, instead of the native 1920×1080.

Tried adding nvidia-drm.modeset=1 in grub’s linux command line, and while that fixes plymouth’s resolution partway into the booting process (after entering the LUKS passphrase), the grub menu, early part of booting, and tty (after booting is completed) are all still stuck with the low resolution.

  • motherboard is set to UEFI mode with CSM and fastboot disabled
  • system uses LUKS encryption
  • proprietary nvidia drivers and akmod installed from negativo17’s repo

sudo hwinfo --framebuffer produces no output.

fbset -i strangely shows only one resolution at 1024×768:

# fbset -i

mode "1024x768-76"
    # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz
    geometry 1024 768 1024 768 32
    timings 12714 128 32 16 4 128 4
    rgba 8/16,8/8,8/0,8/24
endmode

Frame buffer device information:
    Name        : EFI VGA
    Address     : 0xe0000000
    Size        : 3145728
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 4096
    Accelerator : No

At grub’s command prompt, the often suggested vbeinfo does not work:

grub> vbeinfo
error: ../../grub-core/script/function.c:119:can't find command `vbeinfo`.

Original /etc/default/grub contents which used to provide native resolution in tty with Fedora 33:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_CMDLINE_LINUX="rd.lvm.lv=[...]/root rd.luks.uuid=luks-[...] rhgb quiet rd.driver.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL_INPUT="console"
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_GFXMODE="1920x1080x32"
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_ENABLE_BLSCFG=true

Any suggestions of what to try to maintain native 1920×1080 resolution in GRUB and ttys?


Get this bounty!!!

#StackBounty: #drivers #nvidia #20.04 #graphics #obs-studio Quadro K2100M OBS Studio not working

Bounty: 50

Before I updated (clean install) from 18.04 to 20.04, OBS worked fine on my Nvidia Quadro K2100M. After updating, I am met with the below messages. This happens in the launchpad and unofficial snap versions. I have the nvidia-driver-418-server package installed from "Additional Drivers". Any help would be appreciated.

OBS failed to open NVENC codec error.

When run from the terminal, I get this message:

info: ---------------------------------
info: [NVENC encoder: 'streaming_h264'] settings:
    rate_control: CBR
    bitrate:      2500
    cqp:          0
    keyint:       60
    preset:       hq
    profile:      high
    width:        1280
    height:       720
    2-pass:       false
    b-frames:     2
    GPU:          0

[h264_nvenc @ 0x563aff391b00] Driver does not support the required nvenc API version. Required: 9.1 Found: 9.0
[h264_nvenc @ 0x563aff391b00] The minimum required Nvidia driver for nvenc is 435.21 or newer
warning: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Function not implemented


Get this bounty!!!

#StackBounty: #windows-subsystem-for-linux #cuda #wsl2 #nvidia WSL 2 cannot see NVIDIA GPU drivers

Bounty: 50

I have Windows 10 along with Ubuntu 20.04.01 GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64 installed (latest for WSL2). I’m a Windows Insider user and my Win10 distribution is Dev 21376.1 (as required for the NVIDIA drivers to be recognized in WSL2 – please see documentation in link below).

My GPU is an NVIDIA Quadro RTX 4000 with the latest driver: 470.14 (latest).

I have installed the Cuda-toolkit version 11.0.3-1 (latest) inside WSL2.

However, despite following everything on the NVIDIA in WSL2 instructions, I can’t say for sure that my NVIDIA cardis being recognised by Ubuntu instructions in WSL2. For example, my distribution of Gromacs 2021.2 say it can’t see a GPU.

When I execute nvidia-smi in WSL2 I get:

ubuntu@DESKTOP-L2JG9M2:~$ nvidia-smi 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 have been following these instructions: https://docs.nvidia.com/cuda/wsl-user-guide/index.html#installing-nvidia-drivers

I have not installed Docker (please see the link above, there may be multiple things called Docker) as (a) I don’t know whether it is needed, (b) I don’t know what it is.

I’m really not sure where to go from here. How do I get WSL2 to recognise my Windows 10 NVIDIA driver (do not install a Linux display driver in WSL2, see the documentation in the link) and how do I know it works?

I have just finished installing Docker etc as per the instruction. I’m not sure what the next step is. I still can’t see nvidia drivers in WSL2 via nvidia-smi.

edit #1

wsl cat /proc/version
Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021


Get this bounty!!!

#StackBounty: #nvidia #graphics #cuda #nvidia-geforce #gpu-drivers Possible to install distinct drivers for two dissimilar nvidia GPUs …

Bounty: 50

I have had a Geforce GTX 470 in my ubuntu rig for some time. I was unable to get it working with CUDA because apparently nvidia dropped support for old Fermi cards. Note that I tried uninstalling/reinstalling various driver options and was unable to get a display better than 1024×768 using the nvidia-driver-460 with the GTX 470. The only nvidia driver that would work properly with it was nvidia-driver-390, but even with this driver, there was apparently no CUDA. This was the output of nvidia-smi before I put the GTX 1050 in the machine.

$ nvidia-smi
Mon Apr 12 10:15:04 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.141                Driver Version: 390.141                   |
|-------------------------------+----------------------+----------------------+
| 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 470     Off  | 00000000:02:00.0 N/A |                  N/A |
| 40%   58C    P0    N/A /  N/A |    506MiB /  1216MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

So I bought and installed a GeForce GTX 1050 Ti. After effort installing drivers and nvidia-cuda-toolkit, I am now using this GTX 1050 card for my display and it also is working properly with Blender, significantly speeding up render operations. Unfortunately, the GTX 470, which is still in the computer, seems to be unusable, and the card is no longer recognized by nvidia-smi. That command doesn’t even acknowledge the GTX 470, and only lists the GTX 1050:

$ nvidia-smi -L
GPU 0: GeForce GTX 1050 Ti (UUID: GPU-89930378-de2a-cf96-b00a-693446ccda2c)

I cannot change the driver in use for the GTX 470 using the Additional Divers tab of the Software & Update window. The radio buttons are stuck on Continue using a manually installed driver and cannot be changed:
enter image description here

The GTX 1050, however, seems to do just fine with nvidia-driver-460:

$ nvidia-smi
Fri Apr 16 15:16:52 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.67       Driver Version: 460.67       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0  On |                  N/A |
| 30%   34C    P5    N/A /  75W |    536MiB /  4032MiB |      5%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1597      G   /usr/lib/xorg/Xorg                 35MiB |
|    0   N/A  N/A      2416      G   /usr/lib/xorg/Xorg                259MiB |
|    0   N/A  N/A      2543      G   /usr/bin/gnome-shell              140MiB |
|    0   N/A  N/A      3960      G   /usr/lib/firefox/firefox            1MiB |
|    0   N/A  N/A      4126      G   /usr/lib/firefox/firefox            1MiB |
|    0   N/A  N/A      4133      G   /usr/lib/firefox/firefox            1MiB |
|    0   N/A  N/A      4150      G   /usr/lib/firefox/firefox            1MiB |
|    0   N/A  N/A     26149      G   blender                            79MiB |
|    0   N/A  N/A     26833      G   /usr/lib/firefox/firefox            1MiB |
|    0   N/A  N/A     32571      G   /usr/lib/firefox/firefox            1MiB |
+-----------------------------------------------------------------------------+

Curiously, the CUDA version reported there (11.2) doesn’t match the CUDA version reported for nvcc (10.1.243):

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

Despite the CUDA version mismatch, I’m pretty pleased with the GTX 1050’s behavior. It appears to be using the full 8GT/s speed of PCI-E 3 and helps my blender rendering speed a LOT.

I’ve got a few questions:

  1. Is it possible to install different drivers for the respective video cards? The GTX 470 won’t work with the nvidia-driver-460 which is always installed with nvidia-cuda-toolkit and seems to be working just great with the GTX 1050 and Blender. Would there be any point in using the X.org X server for the GTX 470 if I can manage such a thing?

  2. Should I try and update/upgrade nvcc to CUDA 11.2? I’m worried I might break something and wonder if there’s even any advantage in doing so. I’m most worried that blender won’t recognize the card any more.

  3. Is it even worth keeping the GTX 470 in the machine? While I doubt I can get the GTX 470 to help with Blender rendering, it might be able to handle display-related duties for Ubuntu, allowing the GTX 1050 to focus all its efforts on my blender renderings.

  4. If I were to install a second GTX 1050 Ti, would that provide further speed increases in Blender?


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!!!