Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: Installing nvidia drivers and using nvidia graphic card

  1. #1
    Join Date
    Nov 2020
    Beans
    16

    Installing nvidia drivers and using nvidia graphic card

    Hi,

    I have a Dell Precision 7750 under ubuntu 18 and a Quadro T1000 Mobile.

    I realized that nouveau drivers were used by default, and activating the second (intel) graphic card (see lshw outcome below) which is much less efficient.

    I tried uninstalling the nouveau drivers and blacklising them (see /etc/modprobe.d/blacklist-nvidia-nouveau.conf below) then installing nvidia driver from aptitude : didn't work, then by compiling the driver using NVIDIA-Linux-x86_64-450.80.02.run : didn't work either, at reboot, it is still the intel graphic card which is on with intel driver (see modinfo below). The secure boot mode option is not enabled in the bios and i tried prime-select nvidia with no result... And yet, prime-select pretends nvidia is selected :

    (ST-2019003060 Bureau) > prime-select query
    nvidia


    Also, I work under xfce and many setting menus are just not working...

    Would anyone know how to install nvidia driver and switch to nvidia graphic card ? Any help would be greatly appreciated, even if only moral one

    Have a great day,

    Marc

    lshw -numeric -C display
    WARNING: you should run this program as super-user.
    *-display UNCLAIMED
    description: VGA compatible controller
    product: TU117GLM [Quadro T1000 Mobile] [10DE:1FB9]
    vendor: NVIDIA Corporation [10DE]
    physical id: 0
    bus info: pci@0000:01:00.0
    version: a1
    width: 64 bits
    clock: 33MHz
    capabilities: vga_controller cap_list
    configuration: latency=0
    resources: memory:b3000000-b3ffffff memory:70000000-7fffffff memory:80000000-81ffffff ioport:3000(size=128) memory:b4000000-b407ffff
    *-display
    description: VGA compatible controller
    product: Intel Corporation [8086:9BF6]
    vendor: Intel Corporation [8086]
    physical id: 2
    bus info: pci@0000:00:02.0
    version: 05
    width: 64 bits
    clock: 33MHz
    capabilities: vga_controller bus_master cap_list rom
    configuration: driver=i915 latency=0
    resources: iomemory:600-5ff iomemory:400-3ff irq:151 memory:604a000000-604affffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff





    more /etc/modprobe.d/blacklist-nvidia-nouveau.conf
    1 blacklist nouveau
    2 blacklist vga16fb
    3 blacklist rivafb
    4 blacklist nvidiafb
    5 blacklist rivatv
    6 alias nouveau off
    7 alias lbm-nouveau off
    8 options nouveau modeset=0




    (11:30 bletry@ST-2019003060 Bureau) > modinfo i915
    filename: /lib/modules/5.0.0-1070-oem-osp1/kernel/drivers/gpu/drm/i915/i915.ko
    license: GPL and additional rights
    description: Intel Graphics
    author: Intel Corporation
    author: Tungsten Graphics, Inc.
    Last edited by marcb2; November 6th, 2020 at 11:57 AM.

  2. #2
    Join Date
    Aug 2006
    Beans
    13,178
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Installing nvidia drivers and using nvidia graphic card

    Just use the Additiona Drivers utility, or its CLI alternative, <ubuntu-drivers>.
    There is no need to download anything from nvidia.com.

  3. #3
    Join Date
    Nov 2020
    Beans
    16

    Re: Installing nvidia drivers and using nvidia graphic card

    Thanks for your answer ! To be honest, I am new to ubuntu (used to work with fedora) : do you mean to use the graphical interfaces to add drivers ? I already tried that solution. And I really need the nvidia proprietary drivers as, apparently, Scilab won't work with the open source drivers...

  4. #4
    Join Date
    Aug 2006
    Beans
    13,178
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Installing nvidia drivers and using nvidia graphic card

    Yes, the Additional Drivers utility is preinstalled in all of *buntus. It is usually used to install Nvidia's graphics or Broadcom's wireless proprietary drivers.

  5. #5
    Join Date
    Jun 2020
    Beans
    185

    Re: Installing nvidia drivers and using nvidia graphic card

    i'm also on xfce ,and my additional drivers GUI shows this option

    Attachment 287321

    the selected one works just great
    xubuntu 20.04.2 LTS (focal fossa)

  6. #6
    Join Date
    Nov 2020
    Beans
    16

    Re: Installing nvidia drivers and using nvidia graphic card

    Thanks a lot for your answers ! How do you start the additional drivers GUI ? Seems to me I tried that with no success, already...

  7. #7
    Join Date
    Jun 2020
    Beans
    185

    Re: Installing nvidia drivers and using nvidia graphic card

    well what desktop environment u on? i'm on xubuntu which is a xfce like u said u on.
    i click on the little mouse icon on toolbar and start typing "additional drivers"...
    xubuntu 20.04.2 LTS (focal fossa)

  8. #8
    Join Date
    Nov 2020
    Beans
    16

    Re: Installing nvidia drivers and using nvidia graphic card Merge Posts

    OK, thanks for the tip ! That's what I already tried... I am going to give another shot as I changed a bunch of things since then.

    Hi,
    So, I am on xubuntu as well (18). I retried the GUI install as you suggested and it came back to my mind : problem of broken dependencies which is why I tried to install from the nvidia shell in the second place. After running the GUI, it does not work and aptitude upgrade says this :

    Code:
    root@ST-2019003060:~# aptitude upgrade
    Resolving dependencies...                
    The following NEW packages will be installed:
      libnvidia-gl-450-server{a} 
    The following partially installed packages will be configured:
      libnvidia-ifr1-450-server nvidia-driver-450-server 
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/60.5 MB of archives. After unpacking 217 MB will be used.
    Do you want to continue? [Y/n/?] Y
    (Reading database ... 413682 files and directories currently installed.)
    Preparing to unpack .../libnvidia-gl-450-server_450.80.02-0ubuntu0.18.04.3_amd64.deb ...
    diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
    dpkg-divert: error: mismatch on package
      when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-450-server'
      found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
    dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-450-server_450.80.02-0ubuntu0.18.04.3_amd64.deb (--unpack):
     new libnvidia-gl-450-server:amd64 package pre-installation script subprocess returned error exit status 2
    Errors were encountered while processing:
     /var/cache/apt/archives/libnvidia-gl-450-server_450.80.02-0ubuntu0.18.04.3_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    dpkg: dependency problems prevent configuration of libnvidia-ifr1-450-server:amd64:
     libnvidia-ifr1-450-server:amd64 depends on libnvidia-gl-450-server; however:
      Package libnvidia-gl-450-server:amd64 is not installed.
    
    dpkg: error processing package libnvidia-ifr1-450-server:amd64 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of nvidia-driver-450-server:
     nvidia-driver-450-server depends on libnvidia-gl-450-server (= 450.80.02-0ubuntu0.18.04.3); however:
      Package libnvidia-gl-450-server:amd64 is not installed.
     nvidia-driver-450-server depends on libnvidia-ifr1-450-server (= 450.80.02-0ubuntu0.18.04.3); however:
      Package libnvidia-ifr1-450-server:amd64 is not configured yet.
    
    dpkg: error processing package nvidia-driver-450-server (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for libc-bin (2.27-3ubuntu1.3) ...
    Errors were encountered while processing:
     libnvidia-ifr1-450-server:amd64
     nvidia-driver-450-server
    From there, I don't know what to do...
    Last edited by howefield; November 8th, 2020 at 05:40 PM. Reason: posts merged and code tags added.

  9. #9
    Join Date
    May 2013
    Location
    Galiza
    Beans
    4,010
    Distro
    Ubuntu

    Re: Installing nvidia drivers and using nvidia graphic card

    What a mess...

    First uninstall what you have installed with the Nvidia binary. Some procedure as installing but add the '--uninstall' parameter.
    Next try to clean everything installed from the repositories:
    Code:
    sudo apt-get purge nvidia*
    Now - very important - do NOT try to install anything else before correcting the "broken" packages. You may want to try the usual commands:
    Code:
    sudo apt install -f
    sudo dpkg --configure -a
    and lastly make sure the system is fully updated:
    Code:
    sudo apt update && sudo apt full-upgrade
    Assuming that now the system is fine and fully updated, then proceed with the previous instructions to install the drivers with Additional Drivers.

  10. #10
    Join Date
    Nov 2020
    Beans
    16

    Re: Installing nvidia drivers and using nvidia graphic card Merge Posts

    Thanks a lot for your help ! Unfortunately I had also already tried along those lines and just did it again to be sure, removing all nvidia* and with --uninstall from the shell installation, and get this (that is quite a mess...) :

    Code:
    root@ST-2019003060:~# apt install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
      libnvidia-gl-450-server
    The following NEW packages will be installed:
      libnvidia-gl-450-server
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    Need to get 0 B/60.5 MB of archives.
    After this operation, 217 MB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    (Reading database ... 413682 files and directories currently installed.)
    Preparing to unpack .../libnvidia-gl-450-server_450.80.02-0ubuntu0.18.04.3_amd64.deb ...
    diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
    dpkg-divert: error: mismatch on package
      when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-450-server'
      found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
    dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-450-server_450.80.02-0ubuntu0.18.04.3_amd64.deb (--unpack):
     new libnvidia-gl-450-server:amd64 package pre-installation script subprocess returned error exit status 2
    Errors were encountered while processing:
     /var/cache/apt/archives/libnvidia-gl-450-server_450.80.02-0ubuntu0.18.04.3_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    OK, I already tried that approach and had some broken dependencies... I tried following this :

    https://askubuntu.com/questions/1035...ivers-on-18-04

    which looks very similar to my situation. So I tried

    Code:
    apt-get purge *nvidia*
    apt-get update
    apt-get upgrade
    apt autoremove
    dpkg-divert --list '*nvidia-340*' | sed -nre 's/^diversion of (.*) to .*/\1/p' | xargs -rd'\n' -n1 -- sudo dpkg-divert --remove
    ubuntu-drivers devices
    apt install nvidia-driver-450-server (=> which ran smoothly for the first time)
    I get :

    Code:
    root@ST-2019003060:~# prime-select query
    nvidia
    
    lshw -numeric -C display
    WARNING: you should run this program as super-user.
      *-display UNCLAIMED       
           description: VGA compatible controller
           product: TU117GLM [Quadro T1000 Mobile] [10DE:1FB9]
           vendor: NVIDIA Corporation [10DE]
           physical id: 0
           bus info: pci@0000:01:00.0
           version: a1
           width: 64 bits
           clock: 33MHz
           capabilities: vga_controller cap_list
           configuration: latency=0
           resources: memory:b3000000-b3ffffff memory:70000000-7fffffff memory:80000000-81ffffff ioport:3000(size=128) memory:b4000000-b407ffff
      *-display
           description: VGA compatible controller
           product: Intel Corporation [8086:9BF6]
           vendor: Intel Corporation [8086]
           physical id: 2
           bus info: pci@0000:00:02.0
           version: 05
           width: 64 bits
           clock: 33MHz
           capabilities: vga_controller bus_master cap_list rom
           configuration: driver=i915 latency=0
           resources: iomemory:600-5ff iomemory:400-3ff irq:151 memory:604a000000-604affffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff
    so nvidia-settings tells me nvidia card is on but lshw thinks differently...
    Last edited by howefield; November 8th, 2020 at 05:42 PM. Reason: posts merged and code tags added.

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •