Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Nvidia drivers on xubuntu 18.04.5

  1. #1
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    218
    Distro
    Xubuntu

    Question Nvidia drivers on xubuntu 18.04.5

    HI Guys.. I had a post on here yesterday with the problem of my laptop failing to boot to the desktop. After spending a while trying to boot back into my desktop I gave up & opted for a reinstall. I reinstalled xubuntu 20.04.2 but again kept getting stuck at the same place & couldn't access the desktop. Reinstalled yet again thid time using xubuntu 18.04.5 & now I can access the desktop & do a bunch of things (all-be-it with a good amount of screen tearing).

    My problem now is that whenever I install any nvidia drivers my laptop will fail to boot & sit at a black screen with a solid cursor in the top left of the screen. Sometimes I'll get as far as lightdm, before it locks up or I'll even get as far as the desktop, but it'll then decide to lockup several seconds later. I've also tried installing the latest nvidia drivers from the ppa, but they just leave me with the same black screen & solid cursor.

    I've booted into recovery mode & ran "sudo apt-get remove --purge '^nvidia-.*'" to remove all nvidia drivers & rebooted using noveau drivers. To install drivers I go to Settings >> Additional Drivers. This is what I see.

    I've run the following..
    + ubuntu-drivers list >> https://termbin.com/z9u5
    + sudo ubuntu-drivers devices">> https://termbin.com/d65k

    Could someone please help me becuase I'm not that great when it comes to debugging or fixing things & I would love to get my graphics card working again & have a stable xubuntu desktop experience. Many thanks in advanced....
    Last edited by Furycd001; May 14th, 2021 at 09:25 AM.
    [ d:Tour // Reviziis ]

  2. #2
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    218
    Distro
    Xubuntu

    Re: Nvidia drivers on xubuntu 18.04.5

    Ok so I removed the ppa & installed the standard nvidia-driver-460 & can get to a desktop using kernel 5.4.0-42-generic. Screen tearing is still a thing & when I try to fix it using "this post" I receive this error in my terminal....

    Code:
    cat: /sys/module/nvidia_drm/parameters/modeset: No such file or directory
    I uninstalled kernel linux-image-5.4.0-73-generic using apt-get purge & I can boot straight to the desktop now. My NVIDIA X Server Settings now has way less options and looks "like this". I've probably screwed something up for my Nvidia setting to now look like that. Anyway now that I can boot straight to my desktop I just need someone to help with the screen tearing issue....
    Last edited by Furycd001; May 14th, 2021 at 02:02 PM.

  3. #3
    Join Date
    Jun 2007
    Beans
    14,486

    Re: Nvidia drivers on xubuntu 18.04.5

    What model laptop? Are there any Optimus settings in BIOS? I'd recommend using "ondemand" mode and only run heavy 3D programs on the Nvidia GPU: https://ubuntuforums.org/showthread....5#post14004415

  4. #4
    Join Date
    Jun 2007
    Beans
    14,486

    Re: Nvidia drivers on xubuntu 18.04.5

    Also, be sure to disable Secure Boot in the BIOS/EFI.

  5. #5
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    218
    Distro
    Xubuntu

    Re: Nvidia drivers on xubuntu 18.04.5

    The laptop is a ThinkPad E470. There is no Optimus settings in the bios that I can see, but secure boot & uefi have been disabled. I decided to start fresh this morning using the netinstall to install a minimal xubuntu. Once booted to the desktop I installed the Nvidia 460 tested driver & now after rebooting I can't access the desktop again....


    [ EDIT ]

    I got back to the desktop by booting into recovery mode & uninstalling all nvidia stuff....
    Last edited by Furycd001; May 17th, 2021 at 12:15 PM.

  6. #6
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,905
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Nvidia drivers on xubuntu 18.04.5

    Quote Originally Posted by Furycd001 View Post
    installed the standard nvidia-driver-460 ...
    Are you sure that this is the correct driver for the Nvidia chip in your laptop? I ask this because some Nvidia chips (especially older models) might require a different driver package (a different "nvidia-driver-xxxx" something-number) because the new Nvidia driver packages no longer support them.

  7. #7
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    218
    Distro
    Xubuntu

    Re: Nvidia drivers on xubuntu 18.04.5

    Quote Originally Posted by scorp123 View Post
    Are you sure that this is the correct driver for the Nvidia chip in your laptop? I ask this because some Nvidia chips (especially older models) might require a different driver package (a different "nvidia-driver-xxxx" something-number) because the new Nvidia driver packages no longer support them.
    How do I know which driver is the correct one ??
    This is the output for ubuntu-drivers devices >> https://termbin.com/z927
    I also get the following output in the terminal....

    Code:
     WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
    Hereś a current screen shot of what my Additional Drivers looks like >> https://i.imgur.com/YOOGj4X.png
    Last edited by Furycd001; May 17th, 2021 at 12:59 PM.
    [ d:Tour // Reviziis ]

  8. #8
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,905
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Nvidia drivers on xubuntu 18.04.5

    Quote Originally Posted by Furycd001 View Post
    How do I know which driver is the correct one ??
    I usually check with the nvidia.com web site: DRIVERS > ALL NVIDIA DRIVERS

    If you go there to the "All Nvidia drivers" page you can search for and/or select your exact chip model and it will tell you which driver you need.
    So if we search for "GeForce 940MX" (as per your screenshot) we get this answer: "460.80".

    Code:
    ... Supported products:
    
    (... cut off ...)
    
    GeForce 900M Series (Notebooks):
    GeForce GTX 980, GeForce GTX 980M, GeForce GTX 970M, GeForce GTX 965M, GeForce GTX 960M, GeForce GTX 950M, GeForce 945M, GeForce 940MX, GeForce 930MX, GeForce 920MX, GeForce 940M, GeForce 930M
    
    (... cut off ...)
    so your initial choice of installing the "nvidia-driver-460" package was actually correct. It should work!?

    My bad, I was on the wrong track.

    I own several old Apple MacBook, some of which have old Nvidia chips inside. Mac OS stopped being compatible with these laptops a long long time ago. But Linux works tip top here. Sometimes it happens that a Linux installer detects those old Nvidia chips in there and then tries to install the absolutely newest Nvidia driver ... and it fails in my case because the chip I have is one of those that's no longer supported in those new packages. I always have to select one of the older alternatives.

    Sorry, I assumed that this is what might be causing your problems too... but that's not the case at all, you picked the right driver.

  9. #9
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    218
    Distro
    Xubuntu

    Re: Nvidia drivers on xubuntu 18.04.5

    Quote Originally Posted by scorp123 View Post
    I usually check with the nvidia.com web site: DRIVERS > ALL NVIDIA DRIVERS

    If you go there to the "All Nvidia drivers" page you can search for and/or select your exact chip model and it will tell you which driver you need.
    So if we search for "GeForce 940MX" (as per your screenshot) we get this answer: "460.80".

    Code:
    ... Supported products:
    
    (... cut off ...)
    
    GeForce 900M Series (Notebooks):
    GeForce GTX 980, GeForce GTX 980M, GeForce GTX 970M, GeForce GTX 965M, GeForce GTX 960M, GeForce GTX 950M, GeForce 945M, GeForce 940MX, GeForce 930MX, GeForce 920MX, GeForce 940M, GeForce 930M
    
    (... cut off ...)
    so your initial choice of installing the "nvidia-driver-460" package was actually correct. It should work!?

    My bad, I was on the wrong track.

    I own several old Apple MacBook, some of which have old Nvidia chips inside. Mac OS stopped being compatible with these laptops a long long time ago. But Linux works tip top here. Sometimes it happens that a Linux installer detects those old Nvidia chips in there and then tries to install the absolutely newest Nvidia driver ... and it fails in my case because the chip I have is one of those that's no longer supported in those new packages. I always have to select one of the older alternatives.

    Sorry, I assumed that this is what might be causing your problems too... but that's not the case at all, you picked the right driver.
    I have a 2009 standard white macbook with an nvidia card. Been running Linux on it since purchase without ever having any problems. My last ever Linux installation on actual hardware was in 2017 whenever I bought this Thinkpad E470. Back then I remember installing nvidia drivers the same way I am today & never having any problems other than having to issue two or three simple commands to fix screen tearing. I´ve tried installing a few different nvidia-driver this morning, but they all lead to the same black screen with solid cursor. Is there a log file of any sort that I could share here that may help show what my problem might be ?? Also many thanks for replying and trying to help me
    [ d:Tour // Reviziis ]

  10. #10
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    218
    Distro
    Xubuntu

    Re: Nvidia drivers on xubuntu 18.04.5

    I tried install hwe kernel but ẗhat didnt do anything....

    Code:
     sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
    [ d:Tour // Reviziis ]

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