[SOLVED] Cannot get past login screen;login loop - nvidia?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

[SOLVED] Cannot get past login screen;login loop - nvidia?

Postby eljaywasi on Wed Apr 10, 2013 4:24 am

My system has been running great for several months now but the other day I installed the latest CUDA SDK and Samples but unfortunately I selected 'yes' when it asked if I wanted the video card driver updated also. At the end of the install there was a warning about a version mismatch between the NVIDIA driver and API but it wasn't clear if it installed in spite of this and everything appeared to be running correctly. The computer ran fine for 2 days afterwards (including several reboots).

Today when I tried to login the desktop showed briefly (ie my wallpaper and the menu bar, which appeared as the default rather than my usual theme), then the screen went black, then the shell login (ie console) showed briefly, and then I ended up back at the login screen.

The resolution of the screen is the same as always so at first I didn't suspect the video card but given that's the only thing that's been changed recently it was the natural suspect. After booting into recovery mode and typing inxi -Fxz into the console I get the following regarding the video card (my typing; no c&p available obv):


Graphics: Card: Failed to Detect Video Card! X-Vendor: N/A drivers: (unloaded: fbdev, vesa, nouveau) FAILED: nvidia tty size: 80x25 Advanced Data: N/A for root out of X


There is nothing else interesting in the output but the culprit is pretty clear. So far the closest topic I have found is: http://forums.linuxmint.com/viewtopic.php?f=46&t=125427 but there's not really any help there.

So the question is: What do I do now? Probably I just need to reinstall the proprietary nvidia drivers to overwrite whatever damage I did with the CUDA package and maybe update X, but how do I do those things?

Video card is an nvidia GT 520 and I'm running Mint 14 Nadia Cinnamon 64bit and I had been successfully using the proprietary drives from nvidia-current package before this.

Thanks for the help!


UPDATE 1:
Should also mention: When I add the nomodeset xforcevesa boot parameters and reboot the loop is interrupted at the console login (ie just before returning me to the login screen) and I get something like

Code: Select all
Buffer I/O error on device fd0, logical block 0
end_request: I/O error, dev fd0, sector 0


UPDATE 2:

I purged and reinstalled the nvidia drivers with

Code: Select all
sudo apt-get purge nvidia-current
sudo apt-get install nvidia-current


and restarted. Now X (X.Org X Server 1.13.0) fails and I get to see the failure message where it once again tells me that the NVIDIA kernel module has version 304.54 but this NVIDIA driver component has version 304.43. Seems like I'm getting somewhere, now I need to figure out how to roll back the one or upgrade the other.

When I check the /var/log/Xorg.0.log output the fatal error I get is 'no screens found' and scrolling through the text I see that it claims 'Screen(s) found, but none have a usable configuration'. All little further up I see a line relating to Update 1, it reads 'open /dev/fb0: No such file or directory', there are similar errors relating to /dev/dri/card0. Further up are some warning about modules not existing.

Probably it would be useful to just post the whole log file, but I'm not sure how to get it off that machine and to my laptop so I can post it here, so if you want to see the log file please also tell me how I can get it to you.
Last edited by eljaywasi on Wed Apr 10, 2013 8:37 am, edited 3 times in total.
eljaywasi
Level 1
Level 1
 
Posts: 23
Joined: Tue Feb 05, 2013 3:40 am

Linux Mint is funded by ads and donations.
 

Re: Cannot get past login screen; stuck in login loop - nvid

Postby kc1di on Wed Apr 10, 2013 6:10 am

have you tried
Code: Select all
sudo apt-get upgrade
?
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1211
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot get past login screen; stuck in login loop - nvid

Postby eljaywasi on Wed Apr 10, 2013 6:34 am

have you tried
CODE: SELECT ALL
sudo apt-get upgrade
?


Just tried it, no luck :(
eljaywasi
Level 1
Level 1
 
Posts: 23
Joined: Tue Feb 05, 2013 3:40 am

Re: Cannot get past login screen; stuck in login loop - nvid

Postby eljaywasi on Wed Apr 10, 2013 6:39 am

UPDATE 3:

After running the purge, install and update when i run inxi -Fxz I get:

Graphics: Card: NVIDIA GF119 [GeForce GT 520] bus-ID 01:00.0
X.org: 1.13.0 drivers: FAILED: nvidia, fbdev, vesa, nouveau tty size: 80x25 Advanced Data: N/A out of X
eljaywasi
Level 1
Level 1
 
Posts: 23
Joined: Tue Feb 05, 2013 3:40 am

Re: Cannot get past login screen; stuck in login loop - nvid

Postby kc1di on Wed Apr 10, 2013 6:44 am

try this then
Code: Select all
sudo apt-get dist-upgrade

if that does not work either the purge the nvidia drivers again and install
nouveau driver with the command :
Code: Select all
sudo apt-get install nouveau

It may already be installed if it is then reboot see if it will allow you to get to a desktop login. if it does then try reinstalling nvidia current-updates.
Good luck
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1211
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot get past login screen; stuck in login loop - nvid

Postby eljaywasi on Wed Apr 10, 2013 8:01 am

try this then
CODE: SELECT ALL
sudo apt-get dist-upgrade



That got me back in to the system, so now I can c&p the inxi -Fxz output as it stands:

System: Host: deskbox-mint Kernel: 3.5.0-27-generic x86_64 (64 bit, gcc: 4.7.2)
Desktop: Gnome Distro: Linux Mint 14 Nadia
Machine: Mobo: ASUSTeK model: P5K/EPU version: Rev 1.xx Bios: American Megatrends version: 0203 date: 02/12/2008
CPU: Dual core Intel Pentium Dual CPU E2200 (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 ssse3) bmips: 8833.12
Clock Speeds: 1: 2200.00 MHz 2: 2200.00 MHz

Graphics: Card: NVIDIA GF119 [GeForce GT 520] bus-ID: 01:00.0
X.Org: 1.13.0 drivers: (unloaded: fbdev,vesa,nouveau) FAILED: nvidia Resolution: 1280x1024@60.0hz, 1920x1080@60.0hz
GLX Renderer: GeForce GT 520/PCIe/SSE2 GLX Version: 4.2.0 NVIDIA 304.43 Direct Rendering: Yes

Audio: Card-1: NVIDIA GF119 HDMI Audio Controller driver: snd_hda_intel bus-ID: 01:00.1 Sound: ALSA ver: 1.0.25
Card-2: Intel 82801I (ICH9 Family) HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
Network: Card-1: Atheros AR5212/AR5213 Wireless Network Adapter driver: ath5k bus-ID: 05:01.0
IF: wlan0 state: up mac: <filter>
Card-2: Marvell 88E8056 PCI-E Gigabit Ethernet Controller driver: sky2 ver: 1.30 port: c800 bus-ID: 02:00.0
IF: eth0 state: down mac: <filter>
Drives: HDD Total Size: 500.1GB (4.9% used) 1: id: /dev/sda model: ST3500320AS size: 500.1GB
Partition: ID: / size: 20G used: 9.8G (54%) fs: ext4 ID: /home size: 23G used: 14G (64%) fs: ext4
ID: swap-1 size: 2.10GB used: 0.00GB (0%) fs: swap
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors: System Temperatures: cpu: 46.0C mobo: 43.0C gpu: 0.0:52C
Fan Speeds (in rpm): cpu: 1985 psu: 0 sys-1: 0 sys-2: 0
Info: Processes: 159 Uptime: 1 min Memory: 1344.6/3262.6MB Runlevel: 2 Gcc sys: 4.7.2 Client: Shell inxi: 1.8.4




And also the part of the Xorg log that relates to the drivers:

[ 26.591] (II) LoadModule: "glx"
[ 26.602] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglx.so
[ 27.390] (II) Module glx: vendor="NVIDIA Corporation"
[ 27.390] compiled for 4.0.2, module version = 1.0.0
[ 27.390] Module class: X.Org Server Extension
[ 27.390] (II) NVIDIA GLX Module 304.43 Sun Aug 19 20:34:01 PDT 2012
[ 27.390] Loading extension GLX
[ 27.390] (==) Matched nvidia as autoconfigured driver 0
[ 27.390] (==) Matched nouveau as autoconfigured driver 1
[ 27.390] (==) Matched nv as autoconfigured driver 2
[ 27.390] (==) Matched vesa as autoconfigured driver 3
[ 27.390] (==) Matched modesetting as autoconfigured driver 4
[ 27.390] (==) Matched fbdev as autoconfigured driver 5
[ 27.390] (==) Assigned the driver to the xf86ConfigLayout
[ 27.390] (II) LoadModule: "nvidia"
[ 27.390] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[ 27.391] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 27.391] compiled for 4.0.2, module version = 1.0.0
[ 27.391] Module class: X.Org Video Driver
[ 27.391] (II) LoadModule: "nouveau"
[ 27.392] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 27.392] (II) Module nouveau: vendor="X.Org Foundation"
[ 27.392] compiled for 1.13.0, module version = 1.0.2
[ 27.392] Module class: X.Org Video Driver
[ 27.392] ABI class: X.Org Video Driver, version 13.0
[ 27.392] (II) LoadModule: "nv"
[ 27.402] (WW) Warning, couldn't open module nv
[ 27.402] (II) UnloadModule: "nv"
[ 27.402] (II) Unloading nv
[ 27.402] (EE) Failed to load module "nv" (module does not exist, 0)
[ 27.402] (II) LoadModule: "vesa"
[ 27.402] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 27.403] (II) Module vesa: vendor="X.Org Foundation"
[ 27.403] compiled for 1.12.99.902, module version = 2.3.2
[ 27.403] Module class: X.Org Video Driver
[ 27.403] ABI class: X.Org Video Driver, version 13.0
[ 27.403] (II) LoadModule: "modesetting"
[ 27.403] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 27.403] (II) Module modesetting: vendor="X.Org Foundation"
[ 27.403] compiled for 1.13.0, module version = 0.5.0
[ 27.403] Module class: X.Org Video Driver
[ 27.403] ABI class: X.Org Video Driver, version 13.0
[ 27.403] (II) LoadModule: "fbdev"
[ 27.403] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 27.404] (II) Module fbdev: vendor="X.Org Foundation"
[ 27.404] compiled for 1.12.99.902, module version = 0.4.3
[ 27.404] Module class: X.Org Video Driver
[ 27.404] ABI class: X.Org Video Driver, version 13.0
[ 27.404] (==) Matched nvidia as autoconfigured driver 0
[ 27.404] (==) Matched nouveau as autoconfigured driver 1
[ 27.404] (==) Matched nv as autoconfigured driver 2
[ 27.404] (==) Matched vesa as autoconfigured driver 3
[ 27.404] (==) Matched modesetting as autoconfigured driver 4
[ 27.404] (==) Matched fbdev as autoconfigured driver 5
[ 27.404] (==) Assigned the driver to the xf86ConfigLayout
[ 27.404] (II) LoadModule: "nvidia"
[ 27.404] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[ 27.404] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 27.404] compiled for 4.0.2, module version = 1.0.0
[ 27.404] Module class: X.Org Video Driver
[ 27.404] (II) UnloadModule: "nvidia"
[ 27.404] (II) Unloading nvidia
[ 27.404] (II) Failed to load module "nvidia" (already loaded, 32595)
[ 27.404] (II) LoadModule: "nouveau"
[ 27.404] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 27.404] (II) Module nouveau: vendor="X.Org Foundation"
[ 27.404] compiled for 1.13.0, module version = 1.0.2
[ 27.404] Module class: X.Org Video Driver
[ 27.404] ABI class: X.Org Video Driver, version 13.0
[ 27.404] (II) UnloadModule: "nouveau"
[ 27.404] (II) Unloading nouveau
[ 27.404] (II) Failed to load module "nouveau" (already loaded, 32595)
[ 27.404] (II) LoadModule: "nv"
[ 27.405] (WW) Warning, couldn't open module nv
[ 27.405] (II) UnloadModule: "nv"
[ 27.405] (II) Unloading nv
[ 27.405] (EE) Failed to load module "nv" (module does not exist, 0)
[ 27.405] (II) LoadModule: "vesa"
[ 27.405] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 27.405] (II) Module vesa: vendor="X.Org Foundation"
[ 27.405] compiled for 1.12.99.902, module version = 2.3.2
[ 27.405] Module class: X.Org Video Driver
[ 27.405] ABI class: X.Org Video Driver, version 13.0
[ 27.405] (II) UnloadModule: "vesa"
[ 27.405] (II) Unloading vesa
[ 27.405] (II) Failed to load module "vesa" (already loaded, 0)
[ 27.405] (II) LoadModule: "modesetting"
[ 27.405] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 27.405] (II) Module modesetting: vendor="X.Org Foundation"
[ 27.405] compiled for 1.13.0, module version = 0.5.0
[ 27.405] Module class: X.Org Video Driver
[ 27.405] ABI class: X.Org Video Driver, version 13.0
[ 27.405] (II) UnloadModule: "modesetting"
[ 27.405] (II) Unloading modesetting
[ 27.405] (II) Failed to load module "modesetting" (already loaded, 0)
[ 27.405] (II) LoadModule: "fbdev"
[ 27.405] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 27.405] (II) Module fbdev: vendor="X.Org Foundation"
[ 27.405] compiled for 1.12.99.902, module version = 0.4.3
[ 27.405] Module class: X.Org Video Driver
[ 27.405] ABI class: X.Org Video Driver, version 13.0
[ 27.405] (II) UnloadModule: "fbdev"
[ 27.405] (II) Unloading fbdev
[ 27.406] (II) Failed to load module "fbdev" (already loaded, 0)
[ 27.406] (II) NVIDIA dlloader X Driver 304.43 Sun Aug 19 20:15:32 PDT 2012
[ 27.406] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 27.406] (II) NOUVEAU driver Date: Wed Sep 12 13:42:43 2012 +0200
[ 27.406] (II) NOUVEAU driver for NVIDIA chipset families :
[ 27.406] RIVA TNT (NV04)
[ 27.406] RIVA TNT2 (NV05)
[ 27.406] GeForce 256 (NV10)
[ 27.406] GeForce 2 (NV11, NV15)
[ 27.406] GeForce 4MX (NV17, NV18)
[ 27.406] GeForce 3 (NV20)
[ 27.406] GeForce 4Ti (NV25, NV28)
[ 27.406] GeForce FX (NV3x)
[ 27.406] GeForce 6 (NV4x)
[ 27.406] GeForce 7 (G7x)
[ 27.406] GeForce 8 (G8x)
[ 27.406] GeForce GTX 200 (NVA0)
[ 27.406] GeForce GTX 400 (NVC0)
[ 27.406] (II) VESA: driver for VESA chipsets: vesa
[ 27.406] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 27.406] (II) FBDEV: driver for framebuffer: fbdev
[ 27.406] (++) using VT number 8



There are still lines in the log referring to fb0 and /dev/dri/card0:
[ 27.411] (EE) open /dev/dri/card0: No such file or directory
[ 27.411] (EE) open /dev/dri/card0: No such file or directory
.
.
.
[ 27.412] (EE) open /dev/fb0: No such file or directory

but since I'm in the desktop now they are probably irrelevant for this issue.


I'll try and get the proprietary drivers working again and I'll mark the topic as solved if I'm successful
eljaywasi
Level 1
Level 1
 
Posts: 23
Joined: Tue Feb 05, 2013 3:40 am

Re: Cannot get past login screen; stuck in login loop - nvid

Postby eljaywasi on Wed Apr 10, 2013 8:13 am

Interestingly, I've just switched to nouveau in the Software Sources manager and restarted, now when I run inxi -Fxz I get:

Graphics: Card: NVIDIA GF119 [GeForce GT 520] bus-ID: 01:00.0
X.Org: 1.13.0 drivers: (unloaded: fbdev,vesa) FAILED: nouveau Resolution: 1920x1080@60.0hz, 1280x1024@60.0hz
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 0x301) GLX Version: 2.1 Mesa 9.0.3 Direct Rendering: Yes



So now nouveau fails whereas before it was nvidia? I'm writing this from the system right now, so it must not have really failed, right?
eljaywasi
Level 1
Level 1
 
Posts: 23
Joined: Tue Feb 05, 2013 3:40 am

Re: Cannot get past login screen; stuck in login loop - nvid

Postby eljaywasi on Wed Apr 10, 2013 8:35 am

I've switched back to the nvidia-current drivers now and on the surface everything appears to be working normally. I still get a FAILED in my inxi -Fxz output:

Graphics: Card: NVIDIA GF119 [GeForce GT 520] bus-ID: 01:00.0
X.Org: 1.13.0 drivers: (unloaded: fbdev,vesa,nouveau) FAILED: nvidia Resolution: 1280x1024@60.0hz, 1920x1080@60.0hz
GLX Renderer: GeForce GT 520/PCIe/SSE2 GLX Version: 4.2.0 NVIDIA 304.43 Direct Rendering: Yes


but since things are running I'm inclined to just ignore it.

If anyone has some insight here, I'd love to know more what's going on, but otherwise I'll mark the topic as solved

Thanks for your help kc1di, I'm not exactly sure why an upgrade helped but afterwards the driver version is still the older one (304.43) but I'm glad it's working!
eljaywasi
Level 1
Level 1
 
Posts: 23
Joined: Tue Feb 05, 2013 3:40 am

Re: Cannot get past login screen; stuck in login loop - nvid

Postby kc1di on Wed Apr 10, 2013 8:39 am

eljaywasi wrote:Interestingly, I've just switched to nouveau in the Software Sources manager and restarted, now when I run inxi -Fxz I get:

Graphics: Card: NVIDIA GF119 [GeForce GT 520] bus-ID: 01:00.0
X.Org: 1.13.0 drivers: (unloaded: fbdev,vesa) FAILED: nouveau Resolution: 1920x1080@60.0hz, 1280x1024@60.0hz
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 0x301) GLX Version: 2.1 Mesa 9.0.3 Direct Rendering: Yes



So now nouveau fails whereas before it was nvidia? I'm writing this from the system right now, so it must not have really failed, right?

it failed to work at the two resolutions listed.

At least you have the DE back and can use it.
The problem your running into is I believe that the GT520 card is considered legacy now and I think you may need the 295 or the 310 drivers for that card.
in any event glad it's at least working for you.
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1211
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: [SOLVED] Cannot get past login screen;login loop - nvidi

Postby kc1di on Wed Apr 10, 2013 8:43 am

just found this article that may be of help aslo.
http://community.linuxmint.com/tutorial/view/824
it a bit dated but still may help.
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1211
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 12 guests