Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

  1. #1
    Join Date
    Jan 2024
    Beans
    13

    Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    Hi,

    I am new to Ubuntu. Built a desktop with X7950+Nvidia 4070 Super and installed Ubuntu. Had to use the "nomodeset" trick to get pass the "config failed, hub doesnt have any ports!(err -19)" error. Anyway, finally completed the install and was able to log into Ubuntu, however, Ubuntu didn't detect the graphic card so I ran the following commands I searched in this forum.
    The installation seemed to successful but when I launched Nvidia app it shows "NVIDIA Graphics Device" in the Graphics Processor. The Unigine benchmark for my graphic card was below 3000...obviously something is wrong...NEED HELP PLEASE!

    sudo apt update
    sudo at remove --purge --yes nvidia* libnividia*
    sudo apt install --yes nvidia-driver-535 nvidia-dkms-535

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    You, if you are up-to-date are running on kernel 6.5.0-14, gcc-11, and g++-11.

    Here is the instruction you need to do "before" you install your driver: https://ubuntuforums.org/showthread....4#post14175164

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Jan 2024
    Beans
    13

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    Thank you.
    This is what mine currently shows:

    chrisliu@chrisliu-mine:~/crypto/zeph/xmrig$ uname -r
    6.5.0-14-generic
    chrisliu@chrisliu-mine:~/crypto/zeph/xmrig$ grep -e 'linux-gnu-gcc' /proc/version
    Linux version 6.5.0-14-generic (buildd@lcy02-amd64-110) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2
    chrisliu@chrisliu-mine:~/crypto/zeph/xmrig$ gcc --version | grep -e 'gcc'
    gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

    I am not sure if that means I have gcc 11 or 12... sorry for being a completely newbie here...
    Do you mean I need to get gcc-11 and g++-11?
    The other post you showed is an example of getting gcc -12 and gcc++-12. Should I get that version?

    Thanks in advance!

  4. #4
    Join Date
    Jan 2024
    Beans
    13

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    Quote Originally Posted by MAFoElffen View Post
    You, if you are up-to-date are running on kernel 6.5.0-14, gcc-11, and g++-11.

    Here is the instruction you need to do "before" you install your driver: https://ubuntuforums.org/showthread....4#post14175164
    I ran through the steps reinstalling the driver with gcc 12 and still having the same issue. The 4070 Super card still show up as "NVIDIA Graphics Device" and the benchmark is horrible...(lower than 3000..while it should be at least 30k+)
    One thing I still have is the "hub 8-0:1.0: config failed, hub doesn't have any ports! (err -19)" at boot . It wait a few second still log me into Ubuntu. I am not sure if it have any impact,,

    Any advise would be greatly appreciated!!

  5. #5
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    Did you downgrade the kernel?
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  6. #6
    Join Date
    Jan 2024
    Beans
    13

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    Quote Originally Posted by 1fallen View Post
    Did you downgrade the kernel?
    Ohhh!! I must misunderstood the steps..

    can you confirm that I should run Ubuntu in kernel 6.2.0.39 after installing the drivers in kernel 6.5.0.14 for it to recognize the 4070s?

    so the following should be my last step ??

    sudo apt remove --purge --yes linux-headers-6.5.0-14-generic linux-image-6.5.0-14-generic linux-modules-6.5.0-14-generic linux-modules-extra-6.5.0-14-generic
    sudo apt install --reinstall --yes linux-headers-6.2.0-39-generic linux-image-6.2.0-39-generic linux-modules-6.2.0-39-generic linux-modules-extra-6.2.0-39-generic
    sudo apt-mark hold linux-headers-6.2.0-39-generic linux-image-6.2.0-39-generic linux-modules-6.2.0-39-generic linux-modules-extra-6.2.0-39-generic

  7. #7
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    Yep that should get you going.
    Also there was folks mentioning that the card you have now was not recognized by Ubuntu.
    There is a mistake in the list Nvidia provided, whereby the exact match for the 4070 is missing. Hence Ubuntu-drivers does not find anything and the card is identified as "unknown".
    If the driver is still installed it might get picked up by the older kernel.
    If not completely remove the nvidia-driver, and try again.
    I prefer a hand install ie:
    Code:
    sudo apt install nvidia-driver-535 nvidia-dkms-535
    If you prefer the 525 version then just substitute 535 with 525.
    And Reboot is needed to load the driver.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  8. #8
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,616
    Distro
    Ubuntu

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    sudo apt remove --purge --yes linux-headers-6.5.0-14-generic linux-image-6.5.0-14-generic linux-modules-6.5.0-14-generic linux-modules-extra-6.5.0-14-generic
    Cut out remove --purge --yes and just use purge -y
    Code:
    sudo apt purge -y linux-headers-6.5.0-14-generic linux-image-6.5.0-14-generic linux-modules-6.5.0-14-generic linux-modules-extra-6.5.0-14-generic
    sudo apt-mark hold linux-headers-6.2.0-39-generic linux-image-6.2.0-39-generic linux-modules-6.2.0-39-generic linux-modules-extra-6.2.0-39-generic
    This is useless.

    You'd be better off to holding the meta package like so
    Code:
    sudo apt-mark hold linux-generic-hwe-22.04 linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04
    Understanding how the linux meta-package works:
    linux-generic-hwe-22.04 depends on the linux-image-generic-hwe-22.04 and linux-headers-generic-hwe-22.04 meta-packages.
    And the linux-image-generic-hwe-22.04 and linux-headers-generic-hwe-22.04 meta-packages depends on the latest kernel image ( in this case they depend on the 6.5.0-14-generic image and headers packages).

    Note: (The linux-image-generic-hwe-22.04 package also depends on the linux-modules package which does not have it's own meta-package.
    Which is why the module package isn't listed in the command I post here.)

    Whenever they update the kernel they always first update the meta-packages to reflect that the packages has new dependencies.
    When that is done, the system automatically downloads and installs the new kernel package to satisfy the new dependency requirements.

    Can seem confusing, but it's rather simple.


    I post that little breakdown so you might understand why you'd want to hold the meta-package and not he specific kernel package.
    As holding the meta-package will prevent it from updating and subsequently installing the new kernel.

    The original command is useless since it's telling the system not to update something that will never be updated anyway.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  9. #9
    Join Date
    Jan 2024
    Beans
    13

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    So I am not sure if I did the right thing.
    With 535 installed in Kernel 6.5.0.14 with gcc 12, I did the following to switch the kernel to 6.2.0.39:
    sudo apt remove --purge --yes linux-headers-6.5.0-14-generic linux-image-6.5.0-14-generic linux-modules-6.5.0-14-generic linux-modules-extra-6.5.0-14-generic
    sudo apt install --reinstall --yes linux-headers-6.2.0-39-generic linux-image-6.2.0-39-generic linux-modules-6.2.0-39-generic linux-modules-extra-6.2.0-39-generic
    sudo apt-mark hold linux-generic-hwe-22.04 linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04


    After rebooting, nothing changed, as it still shows "Nvidia Graphics Device" instead of 4070 Super.

    So I ran the following again (in kernel 6.2.0.39 and gcc 12):

    sudo apt remove --purge --yes nvidia* libnvidia*
    sudo apt install --yes nvidia-driver-535 nvidia-dkms-535

    Reboot again, the Nvidia app still shows "NVIDIA Graphics Device" instead of the actual model name. Good thing is now the Unigine benchmark is close to 4070..not as good as advertise but way better than before.


    I understand that I need to be in 6.2.0.39 after installing the driver, but just want to confirm one thing...
    when running the command:
    sudo apt install --yes nvidia-driver-535 nvidia-dkms-535

    Should I be in 6.5.0.14 or 6.2.0.39?

  10. #10
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Need help setting up Nvidia 4070 Super in Ubuntu 22.04.3 LTS

    6.2.0.39 is the correct kernel for now.
    What will this show currently:
    Code:
    nvidia-smi
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

Page 1 of 3 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
  •