Announcement

Collapse
No announcement yet.

New computer build and new to kubuntu, struggling with Nvidia drivers

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] New computer build and new to kubuntu, struggling with Nvidia drivers

    So I just built a new gaming computer and decided to put Kubuntu on my second SSD so I can start to avoid Windows more as the deadline for 11 comes up. I had trouble getting hardware for the build and had a used 7900XT in it that was working just fine with generic drivers and could even game decently for anything with Linux support. I finally got my 5090 last night and am having serious trouble getting it to work. I will admit I only really understand about half of what I'm trying based on google searches and other forum and reddit posts so please bear with me.

    What is happening: when I first put the 5090 in it only used one of my monitors. I used the GUI driver manager to install the latest open driver (570) and it installed but with and error and "exit status 11" showing. I tried reverting to the generic one and it also said "exit status 11." I went back to 570 and rebooted. It was normal at the login screen but once I entered my password it showed a black screen with the kubuntu logo and a gear below, cugged away for 30-90 seconds and loaded into my desktop, but it was *insanely* slow. every inch of mouse travel takes 10-15 seconds, terminal is borderline unusable due to the lag and it holds button presses no matter what I do. It is seriously broken. I restarted, used whatever the recovery option in my boot menu is (I forget the exact name) to get a terminal and tried a few things I found on the forums. Namely removing all Nvidia packages and installs and reinstalling them fresh. Got the exact same issue with exit status 11.

    What I have found that I think is the right path but is beyond my full understanding of Linux: When booting I had two options that I think were kernel versions? The older one 6.11.xx allowed me to boot to a usable desktop, but it appears to be running off my on integrated graphics with a single monitor (even though it's still plugged into the 5090). Tried "sudo apt -f install" based on my google-fu and got:
    "Summary:
    Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 4
    1 not fully installed or removed.
    Space needed: 0 B / 1,018 GB available"

    "
    Building module:
    Cleaning build area...(bad exit status: 2)
    . /tmp/amd.r7XMpei6/.env && make -j32 KERNELRELEASE=6.14.0-15-generic TTM_NAME=amdttm SCHED_NAME=amd-sched -C
    /lib/modules/6.14.0-15-generic/build M=/tmp/amd.r7XMpei6...(bad exit status: 2)
    ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
    Error! Bad return status for module build on kernel: 6.14.0-15-generic (x86_64)
    Consult /var/lib/dkms/amdgpu/6.10.5-2109964.22.04/build/make.log for more information.
    dkms autoinstall on 6.14.0-15-generic/x86_64 succeeded for nvidia r8125
    dkms autoinstall on 6.14.0-15-generic/x86_64 failed for amdgpu(10)
    Error! One or more modules failed to install during autoinstall.
    Refer to previous errors for more information.
    * dkms: autoinstall for kernel 6.14.0-15-generic
    ...fail!
    run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
    dpkg: error processing package linux-image-6.14.0-15-generic (--configure):
    installed linux-image-6.14.0-15-generic package post-installation script subprocess returned error exit statu
    s 11
    Errors were encountered while processing:
    linux-image-6.14.0-15-generic
    Error: Sub-process /usr/bin/dpkg returned an error code (1)"


    This is now the limit of my linux abilities so here I am asking for help. I need to go into work soon so I might not respond until tonight but I have a 4 day weekend to mess around. Thanks for any help in advance!




  • Answer selected by Snowhog at Yesterday, 09:06 AM.

    A question to ask is if there is any need for the manual installation of the AMD drivers at all. The closed source version of theses are for professional workstation use, not desktops, and can be a pita to install sometimes.

    The stock kernel and mesa drivers are better, especially for gaming. If one needs OpenCL or rocm these can be installed separately.

    To uninstall
    https://amdgpu-install.readthedocs.i...e-amdgpu-stack

    The stock kernel driver and mesa don't need to be reinstalled. I doubt it is necessary to disable the onboard gpu
    Last edited by claydoh; May 22, 2025, 04:00 PM.

    Comment


      #2
      It looks like the system is trying to install both the AMD drivers and the nVidia drivers:
      Code:
      dkms autoinstall on 6.14.0-15-generic/x86_64 succeeded for nvidia r8125
      dkms autoinstall on 6.14.0-15-generic/x86_64 failed for amdgpu(10)
      ​I don't know if that's possible. Since you didn't give any system specs, I assume you have an AMD CPU with built-in graphics?

      The error is shown on the screen for you:
      Code:
      ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
      Error! Bad return status for module build on kernel: 6.14.0-15-generic (x86_64)​
      Consult /var/lib/dkms/amdgpu/6.10.5-2109964.22.04/build/make.log for more information.
      So what does the log say?

      If you have a second video card that's AMD, you'll need to search on how to install both sets of drivers if it's even possible.

      If the AMD GPU is built-in and you're not using it, you should try to go into your BIOS and turn it off and/or select "Discrete" graphics as the primary video.

      If that doesn't work, you may be able to blacklist the amd driver so DKMS doesn't try and install it.

      Please Read Me

      Comment


        #3
        Will post the crash file once I get home.
        Last edited by theyoyomaster; May 22, 2025, 10:07 AM.

        Comment


          #4
          Originally posted by oshunluvr View Post
          It looks like the system is trying to install both the AMD drivers and the nVidia drivers:
          Code:
          dkms autoinstall on 6.14.0-15-generic/x86_64 succeeded for nvidia r8125
          dkms autoinstall on 6.14.0-15-generic/x86_64 failed for amdgpu(10)
          ​I don't know if that's possible. Since you didn't give any system specs, I assume you have an AMD CPU with built-in graphics?

          The error is shown on the screen for you:
          Code:
          ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
          Error! Bad return status for module build on kernel: 6.14.0-15-generic (x86_64)​
          Consult /var/lib/dkms/amdgpu/6.10.5-2109964.22.04/build/make.log for more information.
          So what does the log say?

          If you have a second video card that's AMD, you'll need to search on how to install both sets of drivers if it's even possible.

          If the AMD GPU is built-in and you're not using it, you should try to go into your BIOS and turn it off and/or select "Discrete" graphics as the primary video.

          If that doesn't work, you may be able to blacklist the amd driver so DKMS doesn't try and install it.
          Thanks for the fast reply.

          Yes, it's a Ryzen CPU with an AMD chipset.

          Any suggestions of how to look for a way to install both drivers? The integrated one works with whatever existing generic drivers were already here. I also would prefer not to disable it in BIOS since it is used by my case RGB/AIO controller in my windows install. Any suggestions on where to start with blacklisting the AMD drivers as a backup?

          Heading in to work now, will be home in the evening.

          Comment


            #5
            Post #3. It is considered poor form to directly post a entire log files output. Please just provide the log file as an attachment.
            Windows no longer obstruct my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #6
              Originally posted by Snowhog View Post
              Post #3. It is considered poor form to directly post a entire log files output. Please just provide the log file as an attachment.
              Sorry, I actually tried that first and it didn't work but I was in a rush before work. I'll try again when I get home.

              Comment


                #7
                Ah, the welcome email actually says that you can’t attach files until you make an unspecified number of posts. It makes sense as a protective measure but isn’t ideal when you join to solve a specific problem.

                Comment


                  #8
                  A quick search reveals it can be done but the example I saw used the dkms package for nvidia only and the open source driver for AMD. I have only an AMD card and the open source drivers work fine.

                  https://www.reddit.com/r/linuxhardwa...hine_it_works/

                  In theory , you would just uninstall the AMD dkms drivers and install the open source instead.

                  Please Read Me

                  Comment


                    #9
                    Would it work just as well if I just didn’t have drivers for the on board graphics? I don’t use them with kubuntu so I wouldn’t be losing anything. Is there a straight forward way to blacklist them or do a custom install of the nvidia drivers?

                    Comment


                      #10
                      Originally posted by theyoyomaster View Post
                      Sorry, I actually tried that first and it didn't work but I was in a rush before work. I'll try again when I get home.
                      Not a problem. Yes, we enforce a 'no attachment' rule to new users. The 'minimum' number of posts before that rule no longer applies is 3. This helps to greatly minimize 'drive by' registrants from posting spam.

                      And welcome to KFN!
                      Windows no longer obstruct my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #11
                        Originally posted by theyoyomaster View Post
                        just as well if I just didn’t have drivers for the on board graphics? I don’t use them with kubuntu so I wouldn’t be losing anything. Is there a straight forward way to blacklist them or do a custom install of the nvidia drivers?
                        AFAIK, the drivers for AMD apply to both onboard and discrete video. Same for nvidia and intel. I suppose if you tried to mix nvidia video that required two different versions of drivers, it might not work.

                        Please Read Me

                        Comment


                          #12
                          So maybe finding a way to disable the onboard in kubuntu is the way to go?

                          Comment


                            #13
                            IIRC it's sort of automatically disconnected is there no monitor connected to it. I don't think the on-board video is your issue. The issue is trying to install both sets of video kernel modules. Remove the AMD dkms packages and it should install the open source drivers instead and you should be fine.

                            I disabled my on-board HDMI port so the BIOS splash screen would show on my main monitor connected to my RX580 AMD card. I do not have the AMD kernel modules installed. Just using the open source Ubuntu supplied ones.
                            Last edited by oshunluvr; May 22, 2025, 02:04 PM.

                            Please Read Me

                            Comment


                              #14
                              A question to ask is if there is any need for the manual installation of the AMD drivers at all. The closed source version of theses are for professional workstation use, not desktops, and can be a pita to install sometimes.

                              The stock kernel and mesa drivers are better, especially for gaming. If one needs OpenCL or rocm these can be installed separately.

                              To uninstall
                              https://amdgpu-install.readthedocs.i...e-amdgpu-stack

                              The stock kernel driver and mesa don't need to be reinstalled. I doubt it is necessary to disable the onboard gpu
                              Last edited by claydoh; May 22, 2025, 04:00 PM.

                              Comment


                                #15
                                Originally posted by claydoh View Post
                                A question to ask is if there is any need for the manual installation of the AMD drivers at all. The closed source version of theses are for professional workstation use, not desktops, and can be a pita to install sometimes.

                                The stock kernel and mesa drivers are better, especially for gaming. If one needs OpenCL or rocm these can be installed separately.

                                To uninstall
                                https://amdgpu-install.readthedocs.i...e-amdgpu-stack

                                The stock kernel driver and mesa don't need to be reinstalled. I doubt it is necessary to disable the onboard gpu
                                This did it, thanks for all the help everyone!

                                Comment

                                Working...
                                X