nvidia driver 340 problem(solved)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

I did

Code: Select all

apt purge *nvidia*; reboot
from a answer from roblm is that ok?
User avatar
Michael_Hathaway
Level 4
Level 4
Posts: 313
Joined: Sat Oct 09, 2021 2:27 am
Location: Shebang, USA
Contact:

Re: nvidia driver 340 problem

Post by Michael_Hathaway »

Your computer shows you have:
Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]
vendor: Lenovo driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:1140
Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa
resolution: 1366x768~60Hz


This page shows which drivers are compatible:

https://linux-hardware.org/index.php?id ... -17aa-380e

Shows Linux kernel support up to 5.14 :D
Enterprise Dual Xeon 8081 (112) @3.8Ghz, 16TB NVMe Raid, 387Gb ECC, AMD Pro W7700 16Gb
Debian Support. Deb 12/13 Trixie 6.7.9
Image
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Thu Oct 14, 2021 1:39 pm
sunil992 wrote: Thu Oct 14, 2021 1:37 pm Help I can't get into startup screen I am on grub menu
Then go to Advanced Options and select the kernel with (recovery mode) after it.
I did

Code: Select all

apt purge *nvidia*; reboot
and it booted it's an answer from roblm is that ok or I messed another thing I don't know?
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

Michael_Hathaway wrote: Thu Oct 14, 2021 1:49 pm Your computer shows you have:
Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]
vendor: Lenovo driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:1140
Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa
resolution: 1366x768~60Hz


This page shows which drivers are compatible:

https://linux-hardware.org/index.php?id ... -17aa-380e

Shows Linux kernel support up to 5.14 :D
Can you tell me which one I should Install at this point I am totally fine with the open source one I have been trying it since 2 days and Today I learnt I can recover from nvidia driver issue without formatting 🤣🤣 at this point I have formatted the pc atleast 20 Times my all time record
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

sunil992 wrote: Thu Oct 14, 2021 1:47 pm I did

Code: Select all

apt purge *nvidia*; reboot
from a answer from roblm is that ok?
That is old information which is not correct for LM20. We will have to see if we can fix the files.

You have the option of the Nvidia-340 or the nouveau driver. Those are your only two options for that graphics card.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Thu Oct 14, 2021 2:02 pm
sunil992 wrote: Thu Oct 14, 2021 1:47 pm I did

Code: Select all

apt purge *nvidia*; reboot
from a answer from roblm is that ok?
That is old information which is not correct for LM20. We will have to see if we can fix the files.

You have the option of the Nvidia-340 or the nouveau driver. Those are your only two options for that graphics card.
So how do I Undo it did I mess something up? I can't understand why the nvidia doesn't ?
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

sunil992 wrote: Thu Oct 14, 2021 2:28 pmI can't understand why the nvidia doesn't ?
Your computer has more than one graphics driver. Installing the nvidia driver should give you options of either Intel or Nvidia which can be changed by the nvidia-prime-applet. However, you probably removed the applet when you removed nvidia files.

Let's start with you telling us what you are doing right now. Please provide the output of inxi -SMCGx and the output of dpkg -l | grep -i nvidia. It is possible the second command may produce no results. Just let us know if that happens.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Thu Oct 14, 2021 2:32 pm
sunil992 wrote: Thu Oct 14, 2021 2:28 pmI can't understand why the nvidia doesn't ?
Your computer has more than one graphics driver. Installing the nvidia driver should give you options of either Intel or Nvidia which can be changed by the nvidia-prime-applet. However, you probably removed the applet when you removed nvidia files.

Let's start with you telling us what you are doing right now. Please provide the output of inxi -SMCGx and the output of dpkg -l | grep -i nvidia. It is possible the second command may produce no results. Just let us know if that happens.
playing some chess on lichess right now but what it has to do with the problem ? .

Code: Select all

inxi -SMCGx
System:
  Host: zoro-Lenovo-G400s-Touch Kernel: 5.4.0-88-generic x86_64 bits: 64 
  compiler: gcc v: 9.3.0 Desktop: Xfce 4.16.0 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: LENOVO product: 20262 v: Lenovo G400s Touch 
  serial: <superuser/root required> 
  Mobo: LENOVO model: INVALID v: 31900004Std 
  serial: <superuser/root required> UEFI: LENOVO v: 7BCN38WW(V2.04) 
  date: 12/10/2013 
CPU:
  Topology: Dual Core model: Intel Core i5-3230M bits: 64 type: MT MCP 
  arch: Ivy Bridge rev: 9 L2 cache: 3072 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20752 
  Speed: 1197 MHz min/max: 1200/3200 MHz Core speeds (MHz): 1: 1197 2: 1197 
  3: 1197 4: 1197 
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo 
  driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 
  620M/625M/630M/720M] 
  vendor: Lenovo driver: nouveau v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: modesetting 
  unloaded: fbdev,vesa resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 21.0.3 direct render: Yes 

Code: Select all

dpkg -l | grep -i nvidia
ii  libcuda1-340                               340.108-0ubuntu5.20.04.2              amd64        NVIDIA CUDA runtime library
ii  screen-resolution-extra                    0.18build1                            all          Extension for the nvidia-settings control panel
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

You can re-install the Nvidia-prime applet with sudo apt-get install nvidia-prime-applet.

There might be several reasons the Nvidia driver is not working properly. Is secure boot on? You can check with mokutil --sb-state.

Please also provide the output of cat /var/log/gpu-manager.log and enclose the results within code tags so we can see if maybe something is blocking the nvidia files.

And finally, lets check the results of the X Server which runs the graphics. Use this command in a terminal to upload the X Server log file to termbin:
cat /var/log/Xorg.0.log | nc termbin.com 9999
It will return with a url address that you should post in your next reply.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Thu Oct 14, 2021 3:43 pm You can re-install the Nvidia-prime applet with sudo apt-get install nvidia-prime-applet.

There might be several reasons the Nvidia driver is not working properly. Is secure boot on? You can check with mokutil --sb-state.

Please also provide the output of cat /var/log/gpu-manager.log and enclose the results within code tags so we can see if maybe something is blocking the nvidia files.

And finally, lets check the results of the X Server which runs the graphics. Use this command in a terminal to upload the X Server log file to termbin:
cat /var/log/Xorg.0.log | nc termbin.com 9999
It will return with a url address that you should post in your next reply.
ran the nvidia applet command

Code: Select all

mokutil --sb-state
SecureBoot disabled
Platform is in Setup Mode

Code: Select all

log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.4.0-88-generic/kernel
Looking for nvidia modules in /lib/modules/5.4.0-88-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/5.4.0-88-generic/kernel
Looking for amdgpu modules in /lib/modules/5.4.0-88-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? yes
Is nouveau blacklisted? no
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:166
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1140
BusID "PCI:1@0:0:0"
can't open /sys/bus/pci/devices/0000:01:00.0/boot_vga
Is boot vga? no
can't open /sys/bus/pci/devices/0000:01:00.0/boot_vga
can't access /etc/u-d-c-nvidia-runtimepm-override file
can't open /sys/module/nvidia/version
Warning: cannot check the NVIDIA driver major version
Support for runtimepm not detected.
You can override this check at your own risk by creating the /etc/u-d-c-nvidia-runtimepm-override file.
Is nvidia runtime pm supported for "0x1140"? no
Checking power status in /proc/driver/nvidia/gpus/0000:01:00.0/power
Error while opening /proc/driver/nvidia/gpus/0000:01:00.0/power
Is nvidia runtime pm enabled for "0x1140"? no
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card1", driven by "nouveau"
Number of connected outputs for /dev/dri/card1: 0
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card0", driven by "i915"
output 0:
	card0-LVDS-1
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
Intel IGP detected
Desktop system detected
or laptop with open drivers
Nothing to do

Code: Select all

https://termbin.com/yl5q
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

Do you know if there is a setting in your computer's BIOS/UEFI for graphics? If there is one, what is its current setting?

Please describe the steps you were using to install the nvidia driver?

For your earlier question about getting grub to show, you can change the setting as described here this post so you see it on each boot.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Thu Oct 14, 2021 5:13 pm Do you know if there is a setting in your computer's BIOS/UEFI for graphics? If there is one, what is its current setting?

Please describe the steps you were using to install the nvidia driver?

For your earlier question about getting grub to show, you can change the setting as described here this post so you see it on each boot.
there is one setting in bios configuration as graphics driver and its set to switchable .

booting to system -> checking compatable driver in drive manager -> choosing btw nvidia or opensourse -> going with the recommended nvidia -> apply -> restart -> getting a black screen after mint logo -> panic -> trying to reinstall os from usb - > not getting boot menu of the usb -> changing secure boot status to enable(but keeing secure boot disabled) -> getting the usb boot menu -> installing with doing own partition with creating efi ,root and installing os on root -> download all update apply and restart -> the go to bios and disable secure boot status and disable it -> reboot to os and apply the driver ->restart -> same black screen . its been like three days of same process
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

sunil992 wrote: Thu Oct 14, 2021 10:48 pmthere is one setting in bios configuration as graphics driver and its set to switchable .
Switchable should mean you can use either Intel or Nvida.
sunil992 wrote: Thu Oct 14, 2021 10:48 pmchanging secure boot status to enable(but keeing secure boot disabled
I do not understand what this means. Secure boot is either enabled or disabled. How are you enabling it but keeping it disabled?

Having Secure Boot enabled or disabled is a separate setting from booting in EFI mode or Legacy BIOS mode. Maybe you are meaning these two different functions which each have their own setting?

Mint and Nvidia drivers can be installed when Secure Boot is enabled. Nvidia drivers can also be loaded if Secure Boot is enabled, but you would have to set MOK values to do that.

If you take a Timeshift snapshot of when your system has graphics (ie when nouveau is installed), then you can always use the install usb to boot to a live session of Mint and use Timeshift to restore to the snapshot. You would not have to reinstall Mint and run all the updates. You can take a one-time snapshot (on-demand snapshot) before you install the nvidia drivers. (You do not have to set up Timeshift to run all the time.) In fact, we recommend taking snapshots before making graphic driver changes.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Thu Oct 14, 2021 11:09 pm
sunil992 wrote: Thu Oct 14, 2021 10:48 pmthere is one setting in bios configuration as graphics driver and its set to switchable .
Switchable should mean you can use either Intel or Nvida.
sunil992 wrote: Thu Oct 14, 2021 10:48 pmchanging secure boot status to enable(but keeing secure boot disabled
I do not understand what this means. Secure boot is either enabled or disabled. How are you enabling it but keeping it disabled?

Having Secure Boot enabled or disabled is a separate setting from booting in EFI mode or Legacy BIOS mode. Maybe you are meaning these two different functions which each have their own setting?

Mint and Nvidia drivers can be installed when Secure Boot is enabled. Nvidia drivers can also be loaded if Secure Boot is enabled, but you would have to set MOK values to do that.

If you take a Timeshift snapshot of when your system has graphics (ie when nouveau is installed), then you can always use the install usb to boot to a live session of Mint and use Timeshift to restore to the snapshot. You would not have to reinstall Mint and run all the updates. You can take a one-time snapshot (on-demand snapshot) before you install the nvidia drivers. (You do not have to set up Timeshift to run all the time.) In fact, we recommend taking snapshots before making graphic driver changes.
Read a tutorial posted by a fellow member here on my thread . In some Lenovo laptop you have to reset the reset the secure set up key to disable the boot status or elsr even after disabling the secure boot the boot status will stay enabled .
So what do you suggest I do make a timeshift and apply again the nvidia driver . But I know it won't work for sure should I change anything?
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

sunil992 wrote: Thu Oct 14, 2021 11:27 pmIn some Lenovo laptop you have to reset the reset the secure set up key to disable the boot status or elsr even after disabling the secure boot the boot status will stay enabled .
I did not understand this so I went through some of your posts on this forum and found screenshots you made of the BIOS here and in a different thread here and then another one here. The middle link is where you talk about the setup mode and the date on that post seems to be the most recent image. In it, the Secure Boot Mode is set to custom and the Platform is in Setup Mode.

Hopefully, you are done making new threads until we get this issue resolved. It is difficult to help you when you keep posting all over the place and using different settings each time.

Can you let us know what the current settings in the BIOS are for Secure Boot, Secure Boot Status, Platform Mode, and Secure Boot Mode?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

these are my settings . This article shows how to disable the secure boot mode and reset setup mode https://linuxbsdos.com/2015/07/27/how-t ... 50-laptop/
Attachments
WhatsApp Image 2021-10-16 at 8.48.19 AM(2).jpeg
WhatsApp Image 2021-10-16 at 8.48.19 AM(1).jpeg
WhatsApp Image 2021-10-16 at 8.48.18 AM.jpeg
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

boot manger
Attachments
WhatsApp Image 2021-10-16 at 8.48.19 AM.jpeg
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia driver 340 problem

Post by SMG »

That article is dated July 27, 2015 which means it is six years old. While your computer is in that age range, Linux Mint 20 is not. Generally speaking, you can run into issues using outdated information.

The statement from the article "Linux Mint does not use digital signatures and does not register to be certified by Microsoft as being a “secure” OS." is no longer true. Linux Mint (through Ubuntu) does have the signatures, so the premise that Secure Boot must be turned off is false.

While the article describes disabling Secure Boot, it also describes changing the 'Reset to Setup Mode' so the 'Secure Boot mode' becomes 'Custom' and leaves the 'Platform Mode' in 'Setup Mode'. The 'Setup Mode' lets you clear the preset keys from the manufacturer and define your own.

This link Disabling Secure Boot on the Lenovo IdeaPad U530 Touch Laptop has a BIOS that looks like yours and only requires changing the Secure Boot to Disabled. In that screenshot, you will see that Platform Mode and Secure Boot Mode were never changed.

I'm going to go with the hope the 'Platform Mode and Setup Mode setting does not matter and the fact Secure Boot is disabled is all we need.

While doing more searching, I came across this post where someone else with switchable graphics ran into the black screen issue after installing the Nvidia-340 Driver. That person indicated:
AndrewKotez wrote: Sun Jun 27, 2021 3:25 am I had the same issue with Mint 20.1. Installed nvidia-340 for my GeForce 710M and met with a black screen after reboot.
What worked for me was going into Ctrl + Alt + F1, running

Code: Select all

sudo apt install nvidia-prime
(after trying to switch back to intel with sudo prime-select intel).
Rebooted and it worked fine
So I suggest installing the Nvidia driver and then if you run into the black screen on the next boot, switch to a terminal with Ctl-Alt-F1 and run the command listed above and reboot.

If that does not work and you get a black screen again, switch to a terminal with Ctl-Alt-F1 and try sudo prime-select intel and reboot.

Let us know if either of those options work.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

SMG wrote: Sat Oct 16, 2021 3:14 pm That article is dated July 27, 2015 which means it is six years old. While your computer is in that age range, Linux Mint 20 is not. Generally speaking, you can run into issues using outdated information.

The statement from the article "Linux Mint does not use digital signatures and does not register to be certified by Microsoft as being a “secure” OS." is no longer true. Linux Mint (through Ubuntu) does have the signatures, so the premise that Secure Boot must be turned off is false.

While the article describes disabling Secure Boot, it also describes changing the 'Reset to Setup Mode' so the 'Secure Boot mode' becomes 'Custom' and leaves the 'Platform Mode' in 'Setup Mode'. The 'Setup Mode' lets you clear the preset keys from the manufacturer and define your own.

This link Disabling Secure Boot on the Lenovo IdeaPad U530 Touch Laptop has a BIOS that looks like yours and only requires changing the Secure Boot to Disabled. In that screenshot, you will see that Platform Mode and Secure Boot Mode were never changed.

I'm going to go with the hope the 'Platform Mode and Setup Mode setting does not matter and the fact Secure Boot is disabled is all we need.

While doing more searching, I came across this post where someone else with switchable graphics ran into the black screen issue after installing the Nvidia-340 Driver. That person indicated:
AndrewKotez wrote: Sun Jun 27, 2021 3:25 am I had the same issue with Mint 20.1. Installed nvidia-340 for my GeForce 710M and met with a black screen after reboot.
What worked for me was going into Ctrl + Alt + F1, running

Code: Select all

sudo apt install nvidia-prime
(after trying to switch back to intel with sudo prime-select intel).
Rebooted and it worked fine
So I suggest installing the Nvidia driver and then if you run into the black screen on the next boot, switch to a terminal with Ctl-Alt-F1 and run the command listed above and reboot.

If that does not work and you get a black screen again, switch to a terminal with Ctl-Alt-F1 and try sudo prime-select intel and reboot.

Let us know if either of those options work.
Its not working and the Ctrl alt F1 looks like it recovery mode but after some ok checks it's giving me black screen .. I am tired of doing this over and over again I don't want to mess up again jus tell me how to fix this I don't need nvidia driver
sunil992
Level 3
Level 3
Posts: 154
Joined: Sun Aug 15, 2021 3:52 am

Re: nvidia driver 340 problem

Post by sunil992 »

Under recovery I ran those command but it told me I install nvidia prime but when I tried it it couldn't install cuz lack of internet in recovery mode I guess
Locked

Return to “Graphics Cards & Monitors”